Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@mcramm
mcramm / vimrc-rainbow-parens.vim
Created May 17, 2017 14:43
Config for rainbow parens
au VimEnter * RainbowParenthesesToggle
au Syntax * RainbowParenthesesLoadRound
au Syntax * RainbowParenthesesLoadSquare
au Syntax * RainbowParenthesesLoadBraces
let g:rbpt_colorpairs = [
\ ['brown', 'RoyalBlue3'],
\ ['Darkblue', 'SeaGreen3'],
\ ['darkgray', 'DarkOrchid3'],
\ ['darkgreen', 'firebrick3'],
\ ['darkcyan', 'RoyalBlue3'],
/**
* ================== angular-ios9-uiwebview.patch.js v1.1.1 ==================
*
* This patch works around iOS9 UIWebView regression that causes infinite digest
* errors in Angular.
*
* The patch can be applied to Angular 1.2.0 – 1.4.5. Newer versions of Angular
* have the workaround baked in.
*
* To apply this patch load/bundle this file with your application and add a
@mcramm
mcramm / core.cljs
Last active August 29, 2015 13:55
Om version of a simple React widget.
(ns om-intro.core
(:require-macros [cljs.core.async.macros :refer [go]])
(:require [om.core :as om :include-macros true]
[om.dom :as dom :include-macros true]
[cljs.core.async :refer [put! chan <!]]))
(enable-console-print!)
(def app-state (atom {:text "Some Text"
:size 15
<html>
<body>
<div id='app'></div>
<script src="http://fb.me/react-0.8.0.js"></script>
<script src="http://fb.me/JSXTransformer-0.8.0.js"></script>
<script type='text/jsx'>
/**
* @jsx React.DOM
*/
var HandleSliderChangeMixin = {
@mcramm
mcramm / hello.rb
Created April 20, 2011 18:35
simple cloud foundry test
require 'sinatra'
get '/' do
"Hello World! (from cloudfoundry)"
end