Skip to content

Instantly share code, notes, and snippets.

View ook's full-sized avatar
🚀
Making great things…

Thomas Lecavelier ook

🚀
Making great things…
View GitHub Profile

Keybase proof

I hereby claim:

  • I am ook on github.
  • I am ook99 (https://keybase.io/ook99) on keybase.
  • I have a public key whose fingerprint is EED0 A0A1 56F7 C76D 1D28 31D8 1CEA D2CC 91EB EABD

To claim this, I am signing this object:

@ook
ook / HTTP.persistent and cookies issue
Last active November 12, 2015 21:22
HTTP has a #persistent mechanism, but cookies are not preserved between two calls
require 'http'
HTTP.persistent('https://www.service-client.veoliaeau.fr') do |http|
resp = http.get('/home/connexion-espace-client.html')
resp.to_s
puts resp.cookies.inspect
resp = http.get('/home/connexion-espace-client.html')
resp.to_s
puts resp.cookies.inspect
end
@ook
ook / TheOne
Created March 9, 2012 09:11
Every web dev did it at least once…
function bindTheOne() {
// One checkbox to rule them all,
// One checkbox to find them,
// One checkbox to bring them all,
// And in the controller export them
// In the land of the server, where the datas lies…
$('#theOne').bind('change', function(e) {
...
}
}