- jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
- Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
- AngularJS - Conventions based MVC framework for HTML5 apps.
- Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
- lawnchair - Key/value store adapter for indexdb, localStorage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def getkey(): | |
"get key press without Enter" | |
import termios, sys, os | |
fd = sys.stdin.fileno() | |
old = termios.tcgetattr(fd) | |
new = termios.tcgetattr(fd) | |
new[3] = new[3] & ~TERMIOS.ICANON & ~TERMIOS.ECHO | |
new[6][TERMIOS.VMIN] = 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# | |
#author: rex | |
#blog: http://iregex.org | |
# | |
import re | |
from os.path import dirname as dirname |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### mysql | |
A "/etc/my.cnf" from another install may interfere with a Homebrew-built | |
server starting up correctly. | |
To connect: | |
mysql -uroot | |
To have launchd start mysql at login: | |
ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents | |
Then to load mysql now: |
###Browsers
- Chrome
- Firefox
###Editors && IDE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; rex zone | |
;; show linum by default | |
(global-linum-mode t) | |
(setq linum-format " %03d ") | |
(setq display-time-day-and-date t) | |
(setq display-time-24hr-format t) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const URL_REGEXP_PROTOCOL = '(?:(http|https):\/\/)'; | |
const URL_REGEXP_USER = '(?:[^\/]+?(?::[^\/]+?)?@)?'; | |
const URL_REGEXP_HOST = '(?:(?:(www\.)?(?:[\w\-]+\.)+(?:[a-z]{2,4}))|(?:(?:\d{1,3}\.){3}\d{1,3}))'; | |
const URL_REGEXP_PORT = '(?::\d{1,5})'; | |
const URL_REGEXP_QUERY = '(?:\/[\w\-\?\.\=\&\+\%\[\]\/#;@:~!]*)'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Curlicue - an OAuth wrapper for curl | |
# | |
# Copyright © 2010 Decklin Foster <[email protected]> | |
# Please see README for usage information and LICENSE for license. | |
# Because HTTP responses from the OAuth "dance" will be percent-encoded, | |
# and we want to round-trip this data, we require that credentials files | |
# are also percent-encoded. Therefore, no decoding is done here. $1 is |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process: Gohan [49601] | |
Path: /Applications/Gohan.app/Contents/MacOS/Gohan | |
Identifier: me.imach.gohanmac | |
Version: 1.0 (1.0) | |
App Item ID: 735180013 | |
App External ID: 86782801 | |
Code Type: X86-64 (Native) | |
Parent Process: launchd [203] | |
Responsible: Gohan [49601] | |
User ID: 501 |