This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 2010-10-01 | |
# | |
# Mac OS X 10.6.3 | |
# Homebrew 0.7 | |
# Xcode 3.2.4 | |
# Git 1.7.3.1 | |
# RVM 1.0.12 | |
# Ruby 1.8.7, 1.9.2 | |
# Passenger 2.2.15 | |
# MySQL 5.1.49 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Usage | |
* alert("Hi"); | |
* sleep(2000); // Sleep 2sec | |
* alert("Goodby"); | |
*/ | |
function sleep(milliseconds) { | |
var start = new Date().getTime(); | |
for (var i = 0; i < 1e7; i++) { | |
if ((new Date().getTime() - start) > milliseconds){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
youtubemovue-url http://www.youtube.com/watch?v=FisvRkkS1_w | |
image-url http://img.youtube.com/vi/<youtube-id>/<image-id>.jpg | |
--> | |
<img src="http://img.youtube.com/vi/FisvRkkS1_w/0.jpg"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } | |
require 'rubygems' | |
require 'railsless-deploy' | |
load 'config/deploy' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// main app.js | |
var client = require('ranger').createClient('ROOM', | |
'SECRET'); | |
var timestamp = require('./timestamp').timestamp; | |
var getWeatherWrapper = require('./weather').getWeatherWrapper; | |
var showMap = require('./map').showMap; | |
var getTweets = require('./tweets').getTweets; | |
client.room(ROOMID, function(room) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl -v -H 'Accept: application/xml' -F Filedata=@/path/to/file https://trevorturk.basecamphq.com/upload | |
curl -v -H 'Accept: application/xml' -H 'Content-Type: application/xml' -u TOKEN:X \ | |
-d " | |
<post> | |
<title>Test</title> | |
<body>Test</body> | |
<attachments> | |
<file> | |
<file>ID_FROM_FIRST_REQUEST</file> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Update, upgrade and install development tools: | |
apt-get update | |
apt-get -y upgrade | |
apt-get -y install build-essential | |
apt-get -y install git-core | |
# Install rbenv | |
git clone git://github.com/sstephenson/rbenv.git /usr/local/rbenv | |
# Add rbenv to the path: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Discovery | |
kickoff → discovery approval | |
Design | |
discovery approval → design approval | |
Development | |
design approval → beta | |
Beta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rubygems' | |
require 'hash' | |
require 'active_resource' | |
require 'basecamp' | |
require 'httparty' | |
require 'json' | |
class GithubIssues | |
include HTTParty | |
base_uri "https://api.github.com" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<area shape="poly" class="zones" href="#" data-nearby-zones="787,741,740,728,781" id="742" coords="387,331,388,361,381,371,369,376,365,391,352,398,349,410,324,419,321,413,318,412,316,400,311,401,306,384,324,324,338,332" /> | |
<area shape="poly" class="zones" href="#" data-nearby-zones="743,745,735,740,742" id="741" coords="252,339,291,325,300,308,324,322,305,382,301,380,252,372" /> | |
<area shape="poly" class="zones" href="#" data-nearby-zones="785,786,744,745,741,787" id="743" coords="231,372,291,381,291,384,286,395,262,409,266,414,260,440,249,438,239,432,231,440,208,455,199,452" /> | |
<area shape="poly" class="zones" href="#" data-nearby-zones="742,741,735,736,738,728" id="740" coords="363,230,366,240,380,260,393,263,392,271,390,275,389,286,385,289,385,294,394,314,389,318,389,330,341,330,326,320,317,250" /> | |
<area shape="poly" class="zones" href="#" data-nearby-zones="745,749,752,736,738,740,741" id="735" coords="222,266,284,264,315,250,322,317,299,305,288,322,252,338,220,309" /> | |
<area shape="poly" class="z |
OlderNewer