Skip to content

Instantly share code, notes, and snippets.

View juliosantos's full-sized avatar

web the third juliosantos

View GitHub Profile
@juliosantos
juliosantos / okcupid.rb
Last active August 29, 2015 14:17
Douche-B-Gone: forcing an API upon OkCupid to bulk block users
# DEMO: https://douche-b-gone.herokuapp.com/
require "httparty"
class Okcupid
def initialize(username: nil, password: nil)
@username = username
@password = password
@juliosantos
juliosantos / inheritance.js
Last active August 29, 2015 14:16
Versatile prototypical inheritance in JavaScript (+ underscore.js for convenience)
var App = {
Models : {}
}
// App.Models.Model
// Contains methods to be inherited by all other models
App.Models.Model = Object.create( {}, {
// no model ids shall be reassignable
new : {value : function (options, properties) {
var id = options.id; // required for get/set to work

Keybase proof

I hereby claim:

  • I am juliosantos on github.
  • I am juliosantos (https://keybase.io/juliosantos) on keybase.
  • I have a public key whose fingerprint is E5DC E3B5 C2D9 9DC5 0557 08CC EC08 13D5 B1E0 FC0C

To claim this, I am signing this object: