I hereby claim:
- I am lucagrulla on github.
- I am lucagrulla (https://keybase.io/lucagrulla) on keybase.
- I have a public key ASCbQRN_-ONzKQ6Gjkom4xyhKgI1vqIsVHtA-SMN2R-BtQo
To claim this, I am signing this object:
Tail = require('tail').Tail; | |
tail = new Tail("fileToTail"); | |
tail.on("line", function(data) { | |
console.log(data); | |
}); |
//for the original blog post check | |
//http://www.markhneedham.com/blog/2011/09/25/jquery-collecting-the-results-from-a-collection-of-asynchronous-requests/ | |
var people = ["Marc", "Liz", "Ken", "Duncan", "Uday", "Mark", "Charles"]; | |
var grid = []; | |
$.each(people, function(index, person) { | |
$.getJSON('/git/pairs/' + person, function(data) { | |
// parse data and create somethingCool | |
grid.push(somethingCool); |
// for the origina blog post check | |
// http://www.markhneedham.com/blog/2011/09/25/jquery-collecting-the-results-from-a-collection-of-asynchronous-requests/ | |
var people = ["Marc", "Liz", "Ken", "Duncan", "Uday", "Mark", "Charles"]; | |
asyncLoop(people, [], function(name, grid, callBackFn) { | |
// parse data and create something cool | |
grid.push(somethingCool); | |
callBackFn(); | |
}, function(grid) { | |
// do something with grid |
function fecthData() { | |
var people = ["Marc", "Liz", "Ken", "Duncan", "Uday", "Mark", "Charles"]; | |
var grid = []; | |
$.each(people, function(index, person) { | |
$.getJSON('/git/pairs/' + person, function(data) { | |
// parse data and create somethingCool | |
grid.push(data["name"]) | |
if (grid.length === people.length) { | |
$(document).trigger("gridFilled", [grid]); |
(->(cql/table db :switches) | |
(cql/aggregate [[:count/id :as :cnt]]) | |
(cql/select (cql/where (= :id 5)))) |
function getParamsFrom(url) { | |
var seq = url.split("?").pop().split("&") | |
var params = {}; | |
$.each(seq, function(k, v) { | |
tmp = v.split("="); | |
params[tmp[0]] = tmp[1]; | |
}); | |
return params; | |
} |
(alter-var-root #'clojureql.core/*debug* (constantly true)) |
image_path = "\images\foo\myimage.png" | |
image_path = image_path.dump.gsub(/\\\\/,"/").gsub("\"", "") | |
#total crazyness to cope with windows cut&paste url with backslashes instead of forward slashes:we convert to / just to avoid troubles... | |
#cover scenarios where Windows users find where a file is using windows explorer and copy the location from there(therefore with backslashes) |
I hereby claim:
To claim this, I am signing this object: