Skip to content

Instantly share code, notes, and snippets.

View anabelle's full-sized avatar

Anabelle Handdoek anabelle

View GitHub Profile
@johnpolacek
johnpolacek / jquery-plugin-boilerplate
Created August 21, 2012 15:06
jQuery Plugin Boilerplate
/*
PluginName - Plug In Description
by John Polacek (@johnpolacek)
Dual licensed under MIT and GPL.
Dependencies: jQuery
*/
;(function($) {
@anabelle
anabelle / palaproxima.sh
Created September 13, 2012 01:35
Lo que hice para poner a andar pip y virtualenv en crunchbang
# Instala paquetes necesarios
sudo apt-get install postgresql
sudo apt-get install postgresql-server-dev-9.1
sudo apt-get install python-pip
sudo apt-get install python-dev
sudo pip install virtualenv
sudo pip install virtualenvwrapper
# Crea y activa entorno virtual
virtualenv <nombre_proyecto>
@preshing
preshing / sort1mb.cpp
Created October 25, 2012 11:28
Sort one million 8-digit numbers in 1MB RAM
#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
typedef unsigned int u32;
typedef unsigned long long u64;
//-------------------------------------------------------------------------
// WorkArea
//-------------------------------------------------------------------------
@sd
sd / gist:4186998
Created December 2, 2012 04:40
Pan de Jamón a la Echeverría

Pan de Jamón (a la Echeverría)

Masa

  • 1 taza de leche tibia
  • 1 sobrecito de levadura (Fleishmann ActiveDry Yeast) Esperar 10 minutos a ver si la levadura levanta
@buritica
buritica / gist:5105594
Last active December 14, 2015 15:09 — forked from JeffreyWay/gist:5105516
In browser ace editor. - Paste the whole tag in the url bar and press enter - Bookmark the page - Profit!!
data:text/html, <style type="text/css">#e{position:absolute;top:0;right:0;bottom:0;left:0;font-size:14px}</style><div id="e"></div><script src="http://d1n0x3qji82z53.cloudfront.net/src-min-noconflict/ace.js" type="text/javascript" charset="utf-8"></script><script>var e=ace.edit("e");e.setTheme("ace/theme/monokai");e.getSession().setMode("ace/mode/php");</script>
@colllin
colllin / backbone-auto-routing-example.html
Last active August 10, 2018 09:03
Automatic Backbone Routing - automatically capture links with relative URLs and route them through your Backbone Router. This method does not break any fallback server-side routing, because you're still using real URLs, i.e. `<a href="/my/app/page/4">See?</a>`. If a link can't be handled by any of your routers, it will fall through so the browse…
...
<nav>
<ul>
<li>
<a href="/my/app">Home</a>
</li><li>
<a href="/my/app/posts">Posts</a>
</li><li>
<a href="/my/app/posts/1">The First Post</a>
</li>
@anabelle
anabelle / mac2wep.py
Last active November 26, 2024 21:49
Script para averiguar claves de redes infinitum de 4 digitos.
#!/usr/bin/env python
#-*- encoding: utf-8 -*-
# mac2wepkey Huawei HG520 by [email protected] - 12/2010
# m2wkuvz (m2wkuvz ubuntu version) by [email protected] - 07/2012
import os, sys
def uso():
os.system("clear")
@Timmmm
Timmmm / lastfm_to_gmusic.py
Last active November 19, 2024 13:22
Convert Last.fm loved tracks to your Google Play Store Music Play All Access Subscription Service by Google™. It creates a new playlist rather than adding the tracks to your library willy-nilly. See code for more details.
#!/usr/bin/env python
# Lastfm loved tracks to Google Music All Access playlist. As noted in the comments you do need the All Access subscription thing otherwise it will always find 0 songs.
#
# Written by Tim Hutt, [email protected], based on this script:
#
# https://gist.github.com/oquno/3664731
#
# Today is the 15th of September 2013.
#
@uhho
uhho / node nginx configuration
Created October 4, 2013 01:16
Sample nginx configuration for NodeJS + SocketIO app
# Load balancer configuration
upstream exampleApp {
# Directs to the process with least number of connections.
least_conn;
# One failed response will take a server out of circulation for 20 seconds.
server 127.0.0.1:10080 fail_timeout=20s;
#server 127.0.0.1:10081 fail_timeout=20s;
#server 127.0.0.1:10082 fail_timeout=20s;
#server 127.0.0.1:10083 fail_timeout=20s;
var Twit = require('twit')
var twitterConnection = new Twit({
/**
* details go here
*/
})
var openStreams = {}