Skip to content

Instantly share code, notes, and snippets.

@MichaelMartinez
MichaelMartinez / Makefile
Created February 21, 2012 19:09 — forked from pamelafox/Makefile
Phonegap/App Engine Makefile
# Javascript/CSS Compressor Makefile - By Benjamin "balupton" Lupton (MIT Licenced)
MAKEFLAGS = --no-print-directory --always-make
MAKE = make $(MAKEFLAGS)
BUILDDIR = ./.build
# Tools and such
CLOSUREURL = http://closure-compiler.googlecode.com/files/compiler-latest.zip
CLOSUREDIR = $(BUILDDIR)/closure

Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command

Open/Goto


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
@MichaelMartinez
MichaelMartinez / api.js
Created April 2, 2012 19:16 — forked from fwielstra/api.js
An example NodeJS / Mongoose / Express application based on their respective tutorials
/* The API controller
Exports 3 methods:
* post - Creates a new thread
* list - Returns a list of threads
* show - Displays a thread and its posts
*/
var Thread = require('../models/thread.js');
var Post = require('../models/post.js');
@MichaelMartinez
MichaelMartinez / bootstrap.jade
Created April 6, 2012 03:56 — forked from BenHall/bootstrap.jade
Twitter Bootstrap in Jade
script(src='/javascripts/jquery-1.7.min.js')
link(rel='stylesheet', href='/stylesheets/bootstrap.min.css')
link(rel='stylesheet', href='/stylesheets/bootstrap-overrides.css')
@MichaelMartinez
MichaelMartinez / gist:2705067
Created May 15, 2012 20:54
Markdown cheat sheet

Header 1

Header 2

Header 3 ### (Hashes on right are optional)

Header 4

Header 5

Markdown plus h2 with a custom ID ## {#id-goes-here}

Link back to H2

This is a paragraph, which is text surrounded by whitespace. Paragraphs can be on one

@MichaelMartinez
MichaelMartinez / dabblet.css
Created May 23, 2012 06:55 — forked from mightymess/dabblet.css
cool animation dabblet
body{
background:#DDD;
font-family:PacificoRegular;
color:#ea4c89;
font-smooth:always;
cursor:pointer;
}
.reveal{
background:#DDD;
position:absolute;
@MichaelMartinez
MichaelMartinez / dabblet.css
Created May 23, 2012 06:55 — forked from mlabod/dabblet.css
Blue CSS3 Button
```css
/**
* Blue CSS3 Button
* dribbble: http://dribbble.com/shots/397908-Blue-CSS3-Button
*/
* {text-decoration:none}
html {
box-sizing: border-box;
@MichaelMartinez
MichaelMartinez / gist:3101327
Created July 12, 2012 21:52 — forked from anonymous/gist:139987
A ruby snippet for Parsing and cleaning Word HTML
#
# This function takes messy Word HTML pasted into a WYSIWYG and cleans it up
# It leaves the tags and attributes specified in the params
# Copyright (c) 2009, Radio New Zealand
# Released under the MIT license
require 'rubygems'
require 'sanitize'
def clean_up_word_html(html, elements = ['p', 'b', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'], attributes={})
@MichaelMartinez
MichaelMartinez / mountain-lion-brew-setup.markdown
Created August 7, 2012 05:58 — forked from myobie/mountain-lion-brew-setup.markdown
Get Mountain Lion and Homebrew to Be Happy

Get Mountain Lion and Homebrew to Be Happy

1) Install XCode 4.4 into /Applications

Get it from the App Store.

2) Install Command Line Tools

In XCode's Preferences > Downloads you can install command line tools.

@MichaelMartinez
MichaelMartinez / install.md
Created August 13, 2012 04:28 — forked from svnlto/install.md
Setup OS X 10.7/8 w/ homebrew, oh-my-zsh, rvm, nodejs, nvm

Setup new Mac with OSX Lion from scratch for Virtualization

These commands are good as of 08/12/2012.

The command line tools are approximately 171mb and everything you need w/ Free Apple ID. Or you can download the entire Xcode app.

Really the nicest choice for a terminal on OSX right now, especially with Lion style full screen support.