https://github.com/felixge/node-ar-drone https://github.com/bkw/nodecopter-stream https://github.com/nesQuick/nodecopter-hacks https://github.com/substack/matador-copter https://github.com/brianleroux/phonegap-android-speech-to-ardrone https://github.com/maxogden/nodecopter-hacks https://github.com/notmatt/gruntcopter
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
sphinx: bundle exec rake ts:run_in_foreground |
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
Gem::Specification.new do |s| | |
# totally generic | |
version_file = Dir['lib/*/{*/,}version.rb'].first | |
s.name = version_file.split('/')[1..-2].join('-') | |
s.files = `git ls-files`.split("\n") | |
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n") | |
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } | |
s.authors = `git shortlog -sn`.scan(/[^\d\s].*/) | |
s.email = `git shortlog -sne`.scan(/[^<]+@[^>]+/) | |
s.require_paths = ["lib"] |
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
> ab -n 10000 -c 100 http://127.0.0.1:8080/ | |
This is ApacheBench, Version 2.3 <$Revision: 1139530 $> | |
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/ | |
Licensed to The Apache Software Foundation, http://www.apache.org/ | |
Benchmarking 127.0.0.1 (be patient) | |
Completed 1000 requests | |
Completed 2000 requests | |
Completed 3000 requests | |
Completed 4000 requests |
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
//from https://github.com/christkv/node-mongodb-native | |
var p_client = new Db('integration_tests_20', new Server("127.0.0.1", 27017, {}), {'pk':CustomPKFactory}); | |
p_client.open(function(err, p_client) { | |
p_client.dropDatabase(function(err, done) { | |
p_client.createCollection('test_custom_key', function(err, collection) { | |
collection.insert({'a':1}, function(err, docs) { | |
collection.find({'_id':new ObjectID("aaaaaaaaaaaa")}, function(err, cursor) { | |
cursor.toArray(function(err, items) { | |
test.assertEquals(1, items.length); |
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
#content-wrapper | |
+container | |
#about | |
// Default (smallest screens) | |
+column(100%) | |
background-color: #ccc | |
// Respond to other screen widths |
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
HAI | |
CAN HAS STDIO? | |
I HAS A VAR IZ 0 | |
IM IN YR LOOP | |
UPZ VAR!!1 | |
IZ VAR BIGR THAN 100? | |
GTFO. | |
KTHX | |
IZ VAR LEFTOVAR 15 LIEK 0? | |
VISIBLE "FIZZBUZZ" |
- Download WebKit build r121872: http://builds.nightly.webkit.org/files/trunk/mac/WebKit-SVN-r121872.dmg
- Right-click on WebKit.app and choose
Show Package Contents
- Navigate to
./Contents/Frameworks/10.x/WebCore.framework/Versions/Current/Resources/
and you will find a folder calledinspector
. This contains the HTML/CSS/JavaScript for the Web Inspector, awesome! Keep this Finder window open! - Open a new Finder window and navigate to
/System/Library/PrivateFrameworks/WebInspector.framework/Versions/Current/Resources
. This is where the 'new' Web Inspector is located. - Now copy the contents from the WebKit Web Inspector folder (from Step 3.) to the new Web Inspector folder from Step 4. Do not remove anything, but when it prompts to 'keep newer' files press the Replace button.
- Now there is only one thing left to do, remove of rename the
Main.html
file (this is the main frame for the new Web Inspector) and renameinspector.html
to `Main.ht
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
module ABHelper | |
def split_test(name) | |
experiment = YAML.load_file("config/experiments.yml")[name] | |
given_probability, num_with_probability = experiment[:variants].inject([0,0]) do |a,v| | |
p, n = a | |
if v.kind_of?(Hash) && v[:percent] | |
[p + v[:percent], n + 1] | |
else | |
a |
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
slugify = (text) -> | |
text = text.replace(/[^-a-zA-Z0-9,&\s]+/g, "") | |
text = text.replace(/-/g, "_") | |
text = text.replace(/\s/g, "-") | |
text.toLowerCase() | |
$ -> | |
$('h1,h2,h3,h4').each (i, elm) -> | |
heading = $(elm) | |
anchor = slugify(heading.text()) |