Skip to content

Instantly share code, notes, and snippets.

Vaughan Rouesnel vjpr

Block or report user

Report or block vjpr

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
vjpr / 0_reuse_code.js
Last active Aug 29, 2015
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
vjpr / gist:4091310c6a7486e683f3
Last active Aug 29, 2015
CoffeeScript templating ideas
View gist:4091310c6a7486e683f3
<div class="row">
<div class="col-xs-6 col-md-4">.col-xs-6 .col-md-4</div>
# Should be predictable translations.
# Teacup
vjpr /
Last active Jan 4, 2016
RPC for Chrome Packaged App to allow communication between sandbox and privileged environment


I will eventually turn this into a bower module when I have time with tests and the whole shebang.



vjpr /
Last active Jan 4, 2016
IonIcons LESS support

To specify a custom path for use in an asset pipeline (Sprockets or Mincer), modify _ionicons-variables.less:

@ionicons-font-path: asset-dir("ionicons/fonts/ionicons.ttf");
vjpr /
Created Jun 22, 2013
Cache compiled js of required IcedCoffeeScript files
temp = require 'temp'
fs = require 'fs'
path = require 'path'
_ = require 'underscore'
cachePath = {}
cache = {}
requireExt = (_cachePath) ->
vjpr / gist:5378401
Created Apr 13, 2013
An example of a Markdown file using &ensp; (\u2002) characters to indent paragraphs at different levels.
View gist:5378401
6  Rights and responsibilities of employees, employers, organisations etc. (Chapter 3)

            (1)  Chapter 3 sets out rights and responsibilities of national system employees, national system employers, organisations and others (such as independent contractors and industrial associations).

            (2)  Part 3-1 provides general workplace protections. It:

                     (a)  protects workplace rights; and

                     (b)  protects freedom of association and involvement in lawful industrial activities; and

vjpr /
Created Nov 4, 2012
Asynchronous template compilation.
logger = require('onelog').get('AsyncTemplates')
_ = require 'underscore'
sinon = require 'sinon'
async = require 'async'
hamlc = require 'haml-coffee'
# You MUST specify the ALL names of the methods which return asynchronously.
# This is required because sync helpers can be used in conditionals.
# This is useful for retrofitting existing code, or keeping code clean
# and portable.
vjpr / backbone-0.9.1.js
Created Feb 26, 2012 — forked from thickey/backbone-0.9.1.js
Externs for Backbone.js and Underscore.js
View backbone-0.9.1.js
* @fileoverview Externs for backbone-0.9.1.js
* built with
* see also:
* via:
* Note: when building via that page, you first need to load in underscrore.js, as that's a dependency.
* also, after running the extern for Backbone, you need to manually run it for:
vjpr /
Created Sep 25, 2011
Tumblr Theme of
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6 lte-ie8"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7 lte-ie8"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8 lte-ie8"> <![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
<title>{Title}{block:TagPage} &bull; Posts Tagged &lsquo;{Tag}&rsquo;{/block:TagPage}{block:PostSummary} &bull; {PostSummary}{/block:PostSummary}</title>
You can’t perform that action at this time.