Skip to content

Instantly share code, notes, and snippets.

### R code from vignette source 'Presentation.Rnw'
### Encoding: UTF-8
###################################################
### code chunk number 1: init
###################################################
options(width=60)
###################################################
@psiska
psiska / gist:8915705
Created February 10, 2014 13:15
Problem with Mustache parboiled2 parser
import org.parboiled2._
import scala.util.{ Success, Failure }
trait AST
case class AText(in: String) extends AST
case class AKey(in: String) extends AST
case class AEnd() extends AST
class MustacheParser(val input: ParserInput) extends Parser {
@maetl
maetl / gist:8914783
Created February 10, 2014 12:10
Heroku Ruby/Bower buildpack with branch that fixes the caching race condition bullshit from Bower
heroku config:set BUILDPACK_URL=git://github.com/qnyp/heroku-buildpack-ruby-bower.git#workaround-for-bower-cache-bug
@halvener
halvener / daemon.bash
Created February 7, 2014 14:59
A template for setting up a daemon that can be interrupted nicely.
#!/bin/bash
shopt -s -o nounset
##################################################
# Define Operating Variables
# DAEMON Indicating whether to continue the loop or not
# SLEEP_TIME Defines how long to sleep (in seconds) between executions
DAEMON=true
SLEEP_TIME=300
@Kimmich-DigitalMedia
Kimmich-DigitalMedia / 404 WP page structure
Created February 7, 2014 14:50
404 WP page structure
<?php
/**
* The template for displaying 404 pages (Not Found).
*
* @package _s
*/
get_header(); ?>
<div id="primary" class="content-area">