This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>author</key> | |
<string>Michael Sheets</string> | |
<key>name</key> | |
<string>Twilight</string> | |
<key>settings</key> | |
<array> |
This file contains 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
(function () { | |
"use strict"; | |
window.utils = window.utils || {}; | |
window.utils.ajaxFilters = { | |
initialize: function () { | |
$(document).ajaxError($.proxy(this, 'ajaxError')); | |
$(document).ajaxStart($.proxy(this, 'ajaxStart')); | |
$(document).ajaxComplete($.proxy(this, 'ajaxComplete')); | |
}, |
This file contains 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> | |
<meta name="description" content="[add your bin description]" /> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
</body> |
This file contains 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 'js-routes' | |
namespace :project do | |
namespace :assets do | |
desc "generate js routes in javascript" | |
task :js_routes => :environment do | |
JsRoutes.generate!("#{Rails.root}/public/javascripts/routes.js", exclude: [/.*admin.*/]) | |
end |
This file contains 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
config.generators do |g| | |
g.test_framework( | |
:rspec, | |
{ | |
:fixtures => true, | |
:view_specs => false, | |
:helper_specs => false, | |
:routing_specs => false, | |
:controller_specs => true, | |
:request_specs => true |
This file contains 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
(function() { | |
var beforePrint = function() { | |
console.log('Functionality to run before printing.'); | |
}; | |
var afterPrint = function() { | |
console.log('Functionality to run after printing'); | |
}; | |
if (window.matchMedia) { | |
var mediaQueryList = window.matchMedia('print'); |
This file contains 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
defaults write com.apple.dock expose-animation-duration -int 0 |
This file contains 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
SELECT SUM((SELECT COUNT(*) FROM `posts` WHERE `approved` = 1) / | |
(SELECT COUNT(*) FROM `posts`) * 100) AS 'Percentage Approved' |
This file contains 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
// there is no reason to ever do this. I think PHP folks do this | |
window["myVariable"]; | |
// why not just do this | |
window.myVariable; | |
// save the first for when it's actually a variable | |
var foo = "someVarName"; | |
window[foo]; |
This file contains 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
(function () { | |
"use strict"; | |
Handlebars.registerHelper('isSelected', function (optId, id) { | |
return optId === id ? 'selected="true"' : ''; | |
}); | |
Handlebars.registerHelper('classIf', function (val, className) { | |
return val ? className : ''; | |
}); | |
OlderNewer