Skip to content

Instantly share code, notes, and snippets.

@jonezy
jonezy / console.log.js
Created February 11, 2013 14:52
makes console.log work in all browsers.
// make it safe to use console.log always
(function (a) { function b() { } for (var c = "assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(","), d; !!(d = c.pop()); ) { a[d] = a[d] || b; } })
(function () { try { console.log(); return window.console; } catch (a) { return (window.console = {}); } } ());
We Americans are really weak people. I don’t know if you’ve noticed this or not,
but we like to whine about ourselves and feel like we’re put upon, even though
we are destroying half the world just so that we can be comfortable. - Chris Ware
taskkill /IM WebDev.WebServer40.exe
taskkill /IM chrome.exe
C:\dev\RichmondDay\KioskDataExporter\KioskDataExporter\LeadGenExporter\bin\Release\DataExporter.exe
@jonezy
jonezy / startconfig.bat
Created December 18, 2012 18:56
Launches the visual studio web server w/ the MINI Configurator. Then opens chrome and navigates to the local site.
start "" "C:\Program Files (x86)\Common Files\Microsoft Shared\DevServer\10.0\WebDev.WebServer40.exe" /port:3900 /path:"C:\dev\RichmondDay\MiniConfigurator\src\MiniConfigurator.Api"
rundll32 url.dll,FileProtocolHandler http://localhost:3900
@jonezy
jonezy / .slate
Created November 22, 2012 17:26
Slate config
# This is the default .slate file.
# If no ~/.slate file exists this is the file that will be used.
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# Resize Bindings
bind right:alt resize +5% +0
bind left:alt resize -5% +0
@jonezy
jonezy / gist:2295324
Created April 3, 2012 20:38
update all git repos in a folder
for d in `/bin/ls -d */src`; do cd $d; ECHO;pwd; git status; cd ../../; done
@jonezy
jonezy / configu.ru
Created March 25, 2012 21:45
Config.ru for static site on heroku.com
# put this file in the root of a foler, then put index, c and j in ./public and deploy to heroku
use Rack::Static,
:urls => ["/stylesheets", "/images"],
:root => "public"
run lambda { |env|
[
200,
{
@jonezy
jonezy / gist:2140860
Created March 20, 2012 20:17
jQuery plugin boilerplate
// jQuery Plugin Boilerplate
// A boilerplate for jumpstarting jQuery plugins development
// version 1.1, May 14th, 2011
// by Stefan Gabos
(function($) {
$.pluginName = function(element, options) {
var plugin = this;
plugin.settings = {}
@jonezy
jonezy / _gvimrc
Created February 27, 2012 17:52
MY windows _gvimrv
" Font
set guifont=Consolas:h9.00
" No audible bell
set vb
" No toolbar
set guioptions-=T
@jonezy
jonezy / _vimrc
Created February 27, 2012 17:52
My Windows _vimrc
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
colorscheme zenburn
" CD to c:\dev\
:cd c:\dev\