Skip to content

Instantly share code, notes, and snippets.

View mikegrassotti's full-sized avatar

Michael Grassotti mikegrassotti

View GitHub Profile
@mikegrassotti
mikegrassotti / plaid.html
Last active April 29, 2016 18:41 — forked from anonymous/plaid.html
plaid static vs ember
<!DOCTYPE html>
<html lang="en">
<head>
<title>Plaid Demo Application</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="https://cloud.typography.com/6954312/686646/css/fonts.css"/>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/8.6/styles/default.min.css">
@mikegrassotti
mikegrassotti / vimrc
Last active August 29, 2015 14:20 — forked from r00k/vimrc
" A minimal vimrc for new vim users to start with.
"
" Referenced here: http://www.benorenstein.com/blog/your-first-vimrc-should-be-nearly-empty/
" Original Author: Bram Moolenaar <Bram@vim.org>
" Made more minimal by: Ben Orenstein
" Last change: 2012 Jan 20
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
App = Ember.Application.create({
LOG_TRANSITIONS: true
});
App.LoadingView = Ember.View.extend({
templateName: 'loading',
classNames: 'loading-box'
});
App.LoadingRoute = Ember.Route.extend({
class ExampleClient
include HTTParty
extend HTTPExceptions
parser Class.new HTTParty::Parser
parser.send :include, PresentParser
parser.send :include, MashedParser
end
@mikegrassotti
mikegrassotti / fade.png
Created August 17, 2012 18:36
CasperJS (or PhantomJS) don't show modal content when using .fade
fade.png
require 'digest' unless defined?(Digest)
# Just in case this isn't a rails app
class Hash
def to_query
require 'cgi' unless defined?(CGI) && defined?(CGI::escape)
map {|k,v| [k,v].map {|p| CGI::escape(p.to_s) }.join('=') }.join('&')
end
end