Skip to content

Instantly share code, notes, and snippets.

View passcod's full-sized avatar
On holiday until June.

Félix Saparelli passcod

On holiday until June.
View GitHub Profile
passcod / 0_reuse_code.js
Created October 1, 2015 22:46
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
import Twitter from 'twitter';
const client = new Twitter({
consumer_key: process.env.TWITTER_CONSUMER_KEY,
consumer_secret: process.env.TWITTER_CONSUMER_SECRET,
access_token_key: process.env.TWITTER_ACCESS_TOKEN_KEY,
access_token_secret: process.env.TWITTER_ACCESS_TOKEN_SECRET
let getFaves = function () {

Music for Making

Félix Saparelli

  • Anthony Gonzales
    • Tech 49
  • Antonín Dvořák
    • Allegro con fuoco ("From The New World")
  • Antonio Vivaldi
    • The Four Seasons: Concerto N°2 in G Minor, RV315, "Summer": I. Allegro non molto
  • Apocalyptica
passcod / -
Last active December 27, 2015 03:38 — forked from anonymous/-
~ Asciicast recording started. Hit ^D (that's Ctrl+D) or type "exit" to finis
4:09PM passcod ~/nanobot
≈ python -v
import _frozen_importlib # frozen
import imp # builtin
import sys # builtin
# installing zipimport hook
import 'zipimport' # <class '_frozen_importlib.BuiltinImporter'>
# -*- coding: utf-8 -*-
#!/usr/bin/env python
import sys
class Polyomino(object):
def __init__(self, iterable):
self.squares = tuple(sorted(iterable))
def __repr__(self):
passcod / gist:6350405
Created August 27, 2013 06:53 — forked from anonymous/-
[10:26:16] <devinus> phinze: apparently Oracle won't let you download the dmg until you have a cookie in your browser
[10:26:19] <devinus> grooosss
[10:26:31] <phinze> devinus: ewww
[10:27:25] <phinze> stupid oracle
[10:27:38] <phinze> here's somebody trying to work out how to script it
[10:27:53] <phinze> but then we're getting into annoyingly murky territory
[10:29:47] <devinus> phinze: should i give up or is there a way to pass a cookie along?
[10:45:24] <phinze> devinus: looking at CurlDownloadStrategy quick
[10:46:25] <devinus> phinze: in curl, this works: curl -b -O -L
[10:46:40] <phinze> so i guess theoretically we could subclass it and override CurlDownloadStrategy#_fetch
passcod / libwww.diff
Last active December 21, 2015 14:09 — forked from anonymous/-
Patches for LineMode (see
diff --git a/Library/src/ b/Library/src/
index be1857d..5139eca 100644
--- a/Library/src/
+++ b/Library/src/
@@ -405,7 +405,6 @@ BUILT_SOURCES = \
HTAtom.h \
HTBInit.h \
HTBTree.h \
- HTBind.h \
HTBind.h \
registerNewUser: ->
@session.flush().then (models)=>
newUser = @get('content')
@transitionToRoute('user', newUser)
, (response)->
console.log response
passcod / hookz.rb
Created August 15, 2013 04:10 — forked from anonymous/hookz.rb
Hookz: Lolcommits plugin to execute custom hooks. Place an executable (shell script, binary, something else with a shebang...) in ~/.lolcommits/project-name/Hookfile, and it will be called every time a commit picture is taken, with its path as argument. Use for anything you can't be bothered writing Ruby for: posting to tumblr, sending email, up…
module Lolcommits
class Hookz < Plugin
def initialize(runner)
super = 'hookz'
self.default = true
def run