- Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
- rabl - General ruby templating with json, bson, xml, plist and msgpack support
- Thin - Very fast and lightweight Ruby web server
- Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
- SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
- Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
- [factory_girl](h
- 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 <decklin@red-bean.com> | |
| # 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 |