(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
I hereby claim:
To claim this, I am signing this object:
require 'rubygems' | |
require 'net/ldap' | |
time = Time.new | |
p time.localtime | |
ldap = Net::LDAP.new :host => '<hostname>', | |
:port => 636, | |
:auth => { | |
:method => :simple, |
{ | |
"messageId":9999, | |
"importToken":"the-import-token", | |
"getterId":"the-unique-getter-job-id", | |
"urls":[ | |
"file.relay.gracenote.com?id=123", | |
"file.relay.gracenote.com?id=124", | |
"file.relay.gracenote.com?id=125" | |
] | |
} |
Rails flash messages with AJAX requests & twitter-bootstrap 2.3
Forked from https://gist.github.com/linjunpop/3410235 Based on Stackoverflow answer: http://stackoverflow.com/a/10167659/656428
License: MIT
#!/usr/bin/python | |
def water(levels, second_pass = False): | |
# sanity check | |
if len(levels) < 2: | |
return 0 | |
# state machine | |
filling = False | |
h = 0 |
//Script to find elements with duplicate ids in html dom | |
$('[id]').each(function(){ | |
var ids = $('[id="'+this.id+'"]'); | |
if(ids.length>1 && ids[0]==this) | |
console.warn('Multiple IDs #'+this.id); | |
}); |
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
package com.mojolly.backchat | |
package redis | |
package resque | |
import com.mojolly.backchat.redis.resque.Resque.{ResqueWorkerActor} | |
import net.liftweb.json._ | |
import JsonAST._ | |
import JsonDSL._ | |
import java.net.InetAddress | |
import com.redis.ds.{ RedisDeque, RedisDequeClient } |
# More comprehensive list can be found at | |
# http://techpatterns.com/forums/about304.html | |
USER_AGENT_LIST = [ | |
'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.36 Safari/535.7', | |
'Mozilla/5.0 (Windows NT 6.2; Win64; x64; rv:16.0) Gecko/16.0 Firefox/16.0', | |
'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_3) AppleWebKit/534.55.3 (KHTML, like Gecko) Version/5.1.3 Safari/534.53.10' | |
] | |
DOWNLOADER_MIDDLEWARES = { | |
'myproject.middlewares.RandomUserAgentMiddleware': 400, | |
'myproject.middlewares.ProxyMiddleware': 410, |