This file contains hidden or 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
mkdir vt | |
cd vt | |
ls -alh | |
git init | |
ls -ahl | |
cd .git/ | |
ls | |
rm -rf hooks | |
cd vt/.git/ | |
tree |
This file contains hidden or 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
source :rubygems | |
gem 'dotenv', :groups => [:development, :test] | |
gem "nokogiri" | |
gem "geocoder" |
This file contains hidden or 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
<?xml version="1.0"?> | |
<kml xmlns="http://www.opengis.net/kml/2.2"> | |
<Document> | |
<Placemark> | |
<name>Git / GitHub Session at NYU - Tech@NYU HackDays</name> | |
<description>Git / GitHub Session at NYU - Tech@NYU HackDays</description> | |
<Point> | |
<coordinates>-74.00597309999999,40.7143528</coordinates> | |
</Point> | |
</Placemark> |
This file contains hidden or 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
When the Master governs, the people | |
are hardly aware that he exists. | |
Next best is a leader who is loved. | |
Next, one who is feared. | |
The worst is one who is despised. | |
If you don't trust the people, | |
you make them untrustworthy. | |
The Master doesn't talk, he acts. |
This file contains hidden or 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
redblack:spreadreach john$ bundle install | |
Fetching source index for http://rubygems.org/ | |
Using i18n (0.6.0) | |
Using multi_json (1.0.4) | |
Using activesupport (3.2.1) | |
Using addressable (2.2.7) | |
Using bcrypt-ruby (3.0.1) | |
Using dm-core (1.2.0) | |
Using dm-aggregates (1.2.0) | |
Using dm-constraints (1.2.0) |
This file contains hidden or 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
use Rack::Static, :urls => ["/css", "/images"], :root => "public" | |
run lambda { |env| [200, { 'Content-Type' => 'text/html', 'Cache-Control' => 'public, max-age=86400' }, File.open('public/index.html', File::RDONLY)] } |
This file contains hidden or 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 'sinatra' | |
require 'builder' | |
require 'sunlight' | |
set :sunlight_key, ENV['sunlight_key'] | |
post '/' do | |
builder :welcome | |
end |
This file contains hidden or 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
<?php | |
header('Content-type: text/xml'); | |
$url = "http://en.wikipedia.org/w/api.php?action=parse&format=xml&prop=sections&page=".$_POST['Body']; | |
$ch = curl_init($url); | |
curl_setopt($ch, CURLOPT_USERAGENT, "Textipedia"); | |
curl_setopt($ch, CURLOPT_HEADER, 0); | |
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); | |
$response = curl_exec($ch); | |
curl_close($ch); |
This file contains hidden or 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
redblack:paperworks john$ rake | |
(in /Users/john/Sites/toys/paperworks) | |
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby test/tests.rb | |
Loaded suite test/tests | |
Started | |
........ | |
Finished in 0.001337 seconds. | |
8 tests, 16 assertions, 0 failures, 0 errors |
This file contains hidden or 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
<?php | |
/** | |
* "The contents of this file are subject to the Mozilla Public License | |
* Version 1.1 (the "License"); you may not use this file except in | |
* compliance with the License. You may obtain a copy of the License at | |
* http://www.mozilla.org/MPL/ | |
* Software distributed under the License is distributed on an "AS IS" | |
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the | |
* License for the specific language governing rights and limitations |