Skip to content

Instantly share code, notes, and snippets.

@staltz
staltz / introrx.md
Last active June 29, 2024 15:58
The introduction to Reactive Programming you've been missing
@justinwsmith
justinwsmith / heartbleed.rb
Last active August 29, 2015 13:58
A Ruby exploit of the heartbleed OpenSSL vulnerability
# Copyright (c) 2014 Justin W. Smith
# Don't be evil!
require 'base64'
require 'socket'
require 'optparse'
options = {port: 443}
optparser = OptionParser.new do |opts|
anonymous
anonymous / gist:5808272
Created June 18, 2013 19:05
var ck = document.cookie;
function getcookie(n) {
var ar = n + "=";
var al = ar.length;
var cl = ck.length;
var i = 0;
while (i < cl) {
j = i + al;
if (ck.substring(i, j) == ar) {