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
(function() { | |
var func, started; | |
function sync(fn) { | |
var running = false, | |
requested = []; | |
return function me(callback) { | |
if (running) { | |
requested.push(callback); |
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
% node | |
> url = require("url") | |
> url.format({protocol: "http:", host: "google.com", port: 123}) | |
'http://google.com' |
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
we're good! | |
we're good! | |
we failed | |
/Users/bobrik/projects/backpack-coordinator/test6.js:8 | |
throw error; | |
^ | |
Error: three | |
at /Users/bobrik/pew/test.js:23:9 | |
at Object.<anonymous> (/Users/bobrik/pew/test.js:24:3) |
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
(function() { | |
var http = require("http"), | |
child = require("child_process"), | |
url = require("url"), | |
stream = require("stream"); | |
http.createServer(function(req, res) { | |
var params = url.parse(req.url, true), | |
args = params.query.args ? JSON.parse(params.query.args) : [], | |
cmd = params.pathname.substr(1), |
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 | |
// download some country file (RU.zip for example), unzip it and run: | |
// php -d memory_limit=512M -f checker.php ~/RU.txt RU | |
// summary will appear in stderr, actual duplicates in stdout | |
if (count($argv) < 3) { | |
fwrite(STDERR, "please specify path to file with cities and country code\n"); | |
exit(1); | |
} |
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
diff --git a/example_test.go b/example_test.go | |
index c800734..1e97f9e 100644 | |
--- a/example_test.go | |
+++ b/example_test.go | |
@@ -2,16 +2,15 @@ | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
-package goes_test | |
+package goes |
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
package main | |
import "flag" | |
import "os" | |
import "strconv" | |
import "fmt" | |
var port *int | |
func init() { |
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
{ | |
"geos" : { | |
"mappings" : { | |
"point" : { | |
"properties" : { | |
"location" : { | |
"type" : "geo_point" | |
} | |
} | |
} |
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
{ | |
"static_field": 5, | |
"another_pretty_static_field": [1,2,5,6], | |
"my_name_is_so_random_hahahah": 8 | |
} |
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
[~] % curl -s http://archive.apache.org/dist/mahout/0.9/mahout-distribution-0.9-src.tar.gz | gunzip | fgrep -a cwiki | |
* https://cwiki.apache.org/confluence/display/MAHOUT/Stochastic+Singular+Value+Decomposition | |
* <a href=https://cwiki.apache.org/confluence/display/MAHOUT/Stochastic+Singular+Value+Decomposition>stochastic | |
See https://cwiki.apache.org/MAHOUT/quickstart.html | |
https://cwiki.apache.org/confluence/display/MAHOUT/How+To+Contribute |