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
#!/usr/bin/env ruby | |
require "redis" | |
redis = Redis.new | |
redis.keys("*").each do |key| | |
val = case redis.type(key) | |
when "string" | |
redis.get key | |
when "list" |
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
var httprequest = require('request'); | |
var page = 1; | |
var maxPage = 50; | |
function performAfterLoadAttempt(error, response, body) { | |
"use strict"; | |
//Log the Body | |
console.log(body); |
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
var async = require('async'); | |
function one(cb) { | |
console.log("one"); | |
cb(); | |
} | |
function two(cb) { | |
function three(callback){ | |
var a = []; |
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
var req = require('request'), | |
cheerio = require('cheerio'), | |
async = require('async'), | |
urls = ["http://google.com/", "http://test.de/", "http://bild.de/"]; | |
function crawlUrl(url, callback) { | |
"use strict"; | |
var array = []; |