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
| //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); | |
| }); |
| #!/usr/bin/python | |
| def water(levels, second_pass = False): | |
| # sanity check | |
| if len(levels) < 2: | |
| return 0 | |
| # state machine | |
| filling = False | |
| h = 0 |
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
| { | |
| "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" | |
| ] | |
| } |
| require 'rubygems' | |
| require 'net/ldap' | |
| time = Time.new | |
| p time.localtime | |
| ldap = Net::LDAP.new :host => '<hostname>', | |
| :port => 636, | |
| :auth => { | |
| :method => :simple, |
I hereby claim:
To claim this, I am signing this object:
(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.