Skip to content

Instantly share code, notes, and snippets.

View calderas's full-sized avatar
🎯
Focusing

edgar calderon calderas

🎯
Focusing
View GitHub Profile
[filter "media"]
clean = git-media-clean %f
smudge = git-media-smudge %f
[user]
email =
name = I
[credential]
helper = store
[alias]
ec = config --global -e
#!/bin/sh
echo "pre-push started"
files=("./app" "./tests")
if [ "$files" = "" ]; then
echo "\nNo files found:\n"
exit 0
fi
pass=true
/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --enable-logging --v=1 --enable-memory-info --js-flags="--expose-gc" --enable-precise-memory-info
tail -f ~/Library/Application\ Support/Google/Chrome\ Canary/chrome_debug.log
ls /usr/local/Cellar/watchman/3.1/var/run/watchman
total 48
drwxr-xr-x 6 ec staff 204 May 15 12:15 .
drwxr-xr-x 4 ec staff 136 May 18 22:21 ..
-rw-r--r-- 1 ec staff 0 Apr 5 23:02 .not-empty
srw-rw-rw- 1 ec 2110994482 0 May 15 12:15 ec
-rw------- 1 ec staff 17005 May 18 17:25 ec.log
-rw------- 1 ec staff 170 May 14 10:56 ec.state
@calderas
calderas / qunit-times.js
Created January 30, 2015 21:10
display qunit time tests on chrome console
var items = {};
$("#qunit-tests > li.pass").each(function(i, el) {
items[i] = {
"time": parseInt($(el).find(".runtime").text().split(" ")[0], 10),
"module": $(el).find(".module-name").text()
};
});
console.table(items);
beginInstrumentation = function(eventName) {
var styles;
if (eventName == null) {
eventName = "render";
}
styles = {
"render.render.metamorph": "color: #a47701;",
"render.render.boundHandlebars": "color: #0f51fe;",
"render.view": "color: #37be02;"
@calderas
calderas / preferences.sublime-settings
Last active December 17, 2015 01:59
preferences.sublime-settings
{
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"color_scheme": "Packages/User/base16-eighties.dark (SL).tmTheme",
"ensure_newline_at_eof_on_save": true,
"font_face": "Ubuntu Mono",
"font_options":
[
"no_bold",
"subpixel_antialias"
source 'http://rubygems.org'
gem 'rack'
gem 'em-websocket'
gem 'octokit'
gem 'sinatra'
gem 'thin'
@calderas
calderas / dalli_sinatra.rb
Created March 13, 2012 19:57
using dalli with sinatra
require "dalli"
set :cache, Dalli::Client.new
settings.cache.flush
settings.set(key,value)
settings.get(key)
settings.del(key)
@calderas
calderas / npm.js
Created October 6, 2011 18:57
npm setup
npm config set registry http://registry.npmjs.org/
npm config set proxy http://http-proxy.com:80
npm install -d