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
| [user] | |
| name = | |
| email = | |
| [color] | |
| branch = auto | |
| diff = auto | |
| status = auto | |
| interactive = auto | |
| [alias] | |
| co = checkout |
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
| // Add a Mustache.js templating function to your JavaScript: | |
| Mustache.template = function(templateString) { | |
| return function() { | |
| return Mustache.to_html(templateString, arguments[0], arguments[1]); | |
| }; | |
| }; | |
| // And then, in assets.yml, you can set "template_function" to "Mustache.template". |
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
| ~/Desktop/document_cloud/jammit(master) > gem push jammit-0.1.1.gem | |
| Pushing gem to Gemcutter... | |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
| <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon"> | |
| <link href="/stylesheets/reset.css" media="screen" rel="stylesheet" type="text/css" /> | |
| <link href="/stylesheets/960.css" media="screen" rel="stylesheet" type="text/css" /> | |
| <link href="/stylesheets/screen.css" media="screen" rel="stylesheet" type="text/css" /> |
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
| package_assets: on # (on, off, always) | |
| embed_assets: on # (on, off, datauri) | |
| compress_assets: on # (on, off) | |
| gzip_assets: on # (on, off) | |
| template_function: _.template # (defaults to the built-in micro-templating) | |
| package_path: packages # (defaults to assets) | |
| javascript_compressor: closure # (yui, closure) | |
| compressor_options: | |
| compilation_level: ADVANCED_OPTIMIZATIONS |
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
| // Snagged from Prototype | |
| window.Inflector = { | |
| camelize: function(s) { | |
| var parts = s.split('-'), len = parts.length; | |
| if (len == 1) return parts[0]; | |
| var camelized = s.charAt(0) == '-' | |
| ? parts[0].charAt(0).toUpperCase() + parts[0].substring(1) | |
| : parts[0]; |
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
| require 'strscan' | |
| module DC | |
| module Import | |
| # Supported formats: | |
| # | |
| # 10/13/2009 (10-13-2009) | |
| # 10/13/09 (10-13-09) | |
| # 2009/10/13 (2009-10-13) |
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
| $.fn.extend({ | |
| // When the next click or keypress happens, anywhere on the screen, hide the | |
| // element. 'clickable' makes the element and its contents clickable without | |
| // hiding. The 'onHide' callback runs when the hide fires, and has a chance | |
| // to cancel it. | |
| autohide : function(options) { | |
| var me = this; | |
| options = _.extend({clickable : null, onHide : null}, options || {}); | |
| me._autoignore = true; |
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
| START_COORDS = [500, 500] | |
| def setup | |
| size 500, 500 | |
| no_fill | |
| smooth | |
| color_mode HSB, 255 | |
| @stop = false | |
| @step_counter = 0 | |
| @dj = DeJongAttractor.new |
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
| // Handles JavaScript history management and callbacks. To use, register a | |
| // regexp that matches the history hash with its corresponding callback: | |
| // | |
| // dc.history.register(/^#search/, controller.runSearch); | |
| // | |
| // And then you can save arbitrary history fragments. | |
| // | |
| // dc.history.save('search/freedom/p3'); | |
| // | |
| DV.history = { |
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
| $.fn.extend({ | |
| draggable : function() { | |
| this.each(function() { | |
| var drag = _.bind(function(e) { | |
| e.stopPropagation() && e.preventDefault(); | |
| this.style.left = this._drag.left + event.pageX - this._drag.x + 'px'; | |
| this.style.top = this._drag.top + event.pageY - this._drag.y + 'px'; | |
| }, this); |