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
| guard 'coffeescript', { | |
| :output => '.compiledJS', | |
| :bare => true | |
| } do | |
| watch %r{(.*/(.+\.coffee))} | |
| end |
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
| ################################################################# | |
| # # | |
| # A guide to setting up a linode Ubuntu VPS for # | |
| # Ruby on Rails hosting with nginx & passenger # | |
| # # | |
| # Compiled by Chris Toomey [ctoomey.com] on Sept. 9 2011 # | |
| # # | |
| ################################################################# | |
| # Start with base 10.04 image. Setup the DNS for any domains you |
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 | |
| ### BEGIN INIT INFO | |
| # | |
| # Source https://raw.github.com/jnstq/rails-nginx-passenger-ubuntu/master/nginx/nginx | |
| # | |
| # Provides: nginx | |
| # Required-Start: $remote_fs $syslog | |
| # Required-Stop: $remote_fs $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 |
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
| gem list | cut -d ' ' -f 1 | while read g; do gem uninstall -aIx $g; done |
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
| source :rubygems | |
| gem "middleman", ">=2.0" # Configure Sprockets | |
| gem "jquery-rails" # provide jquery in a rails engine | |
| gem "backbone-rails" # provides underscore as well | |
| gem "bourbon" # thoughtbot SASS mixins | |
| gem "ejs" # provide JST global access to templates | |
| gem "handlebars_assets" # use handlebars JS template engine | |
| gem "rb-fsevent" # OS notifications for file changes (rather than polling) |
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
| @Chris's searches | |
| @Chris's custom searches | |
| go https://duckduckgo.com/?q=%21%20%s Open first result (DuckDuckGo) | |
| gh http://github.com/search?q=%s&type=Everything&repo=&langOverride=&start_value=1 Search GitHub (everything) |
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
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <style> | |
| body { | |
| margin: auto; | |
| padding: 0px; | |
| } | |
| </style> | |
| <script> |
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
| preRender = -> | |
| canvas = document.getElementById 'preRender' | |
| context = canvas.getContext '2d' | |
| radius = 20 | |
| centerX = centerY = radius + 1 | |
| context.beginPath() | |
| context.arc centerX, centerY, radius, 0, (2 * Math.PI), false | |
| x = Math.floor(radius - (radius / 3)) |
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
| window.CJT or= {} | |
| class CJT.SpanWrapper | |
| STRING_NOT_FOUND: -1 | |
| constructor: (options={}) -> | |
| @tagname = options.tagname ? 'span' | |
| @classname = options.classname ? '' | |
| wrap: (target, searchString) => |
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
| // Compiled js version of spanWrapper library written in coffeescript. | |
| // Source code can be found in https://gist.github.com/4075843 | |
| var __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }; | |
| window.CJT || (window.CJT = {}); | |
| CJT.SpanWrapper = (function() { | |
| SpanWrapper.prototype.STRING_NOT_FOUND = -1; |