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
File.extname(File.basename(file_url)).gsub(/\./, '').gsub(/\?[0-9]*/, '') |
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
/* | |
* Display or remove a message in an element | |
*/ | |
(function($){ | |
var _add, _remove; | |
$.fn.messenger = function(action, options){ | |
opts = options ? $.extend({}, $.fn.messenger.defaults, options) : $.fn.messenger.defaults; | |
$this = this; |
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
// usage: log('inside coolFunc',this,arguments); | |
// paulirish.com/2009/log-a-lightweight-wrapper-for-consolelog/ | |
window.log = function(){ | |
log.history = log.history || []; // store logs to an array for reference | |
log.history.push(arguments); | |
if(this.console){ | |
console.log( Array.prototype.slice.call(arguments) ); | |
} | |
}; |
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(){ | |
window.setWindowMinMaxDimensions = function(){ | |
var min_height = 680; | |
var max_height = '100%'; | |
var min_width = 950; | |
var max_width = 'auto'; | |
window.onresize = function() { | |
var height = document.documentElement.clientHeight; | |
if (height < min_height) { | |
document.body.style.height = min_height + 'px'; |
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
case Etc.getpwuid(Process.uid).name | |
when 'your name' | |
# my config | |
when 'my name' | |
# my config | |
else | |
# everybody else | |
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
RAILS_ENV=production script/runner |
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
window.CEPHAS = { | |
init: function(){ | |
this.autoRefresh(10000); | |
this.statusUpdate(); | |
this.simonizer(); | |
}, | |
/* |
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
var report = { | |
project: { | |
api_token: "d43be74d5664b4c295b56bdb2c0ca798cf2206b5" | |
}, | |
error: { | |
hash_string: "1" | |
}, | |
occurence: { | |
name: "MethodNotFound tralalala", | |
reporter: "Javascript", |
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
SCM_THEME_PROMPT_PREFIX="" | |
SCM_THEME_PROMPT_SUFFIX="" | |
RVM_THEME_PROMPT_PREFIX="[" | |
RVM_THEME_PROMPT_SUFFIX="]" | |
SCM_THEME_PROMPT_DIRTY=' ${bold_red}✗${normal}' | |
SCM_THEME_PROMPT_CLEAN=' ${bold_green}✓${normal}' | |
SCM_GIT_CHAR='${bold_green}${normal}' | |
SCM_SVN_CHAR='${bold_cyan}${normal}' |
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 persistent-apps -array-add '{ "tile-type" = "spacer-tile"; }' | |
killall Dock |
OlderNewer