Skip to content

Instantly share code, notes, and snippets.

@cesine
cesine / ember-precompile.js
Created October 26, 2012 18:46 — forked from gabrielgrant/ember-precompile.js
Precompile .handlebars templates with node js
var fs = require('fs');
var path = require('path');
var vm = require('vm');
var argv = require('optimist').argv;
function compileHandlebarsTemplate(file, onComplete) {
//dummy jQuery
var jQuery = function () { return jQuery }
jQuery.ready = function () { return jQuery }
jQuery.inArray = function () { return jQuery }
@cesine
cesine / doughnut.R
Created August 3, 2013 22:53 — forked from mages/doughnut.R
#' Doughnut plot
#'
#' Draw a doughnut plot
#'
#' This function draws a pie chart with a hole; a doughnut plot
#' The doughnut plot is based on the pie plot, see \code{\link{pie}}.
#'
#' @param x a vector of non-negative numerical quantities.
#' The values in \code{x} are displayed as the areas of
#' doughnut slices.
@cesine
cesine / abstract-stimulus.js
Created December 9, 2013 17:40
Cant get data to show up in a component in a repition
/**
* @module ui/stimulus.reel
* @requires montage/ui/component
*/
var Component = require("montage/ui/component").Component,
Response = require("ui/response.reel").Response,
RangeController = require("montage/core/range-controller").RangeController;
/**
* @class Stimulus
@cesine
cesine / An-Anonymous-Pen.markdown
Created January 24, 2014 16:45 — forked from anonymous/An-Anonymous-Pen.markdown
Css switch (from a checkbox)
Input: <span id="inputArea" contenteditable>placeholder</span>
Result: <span id="resultArea"></span>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@cesine
cesine / most-active-users-on-github-2015.md
Last active August 29, 2015 14:27 — forked from eddiejaoude/most-active-users-on-github-2015.md
Most active users on GitHub 2015

This is the top 1000 users on GitHub

Where are you on here?

For the first 6 months of 2015 (Jan - June).

Query used on Google's BigQuery with GitHubArchive Data

SELECT actor.login as user NOT REGEXP '(bot|github|gerrit|test|worker|notifier|open|\-ci\t|user|build|continuous|review|jenkins|deploy|internousdev|coveralls|server|asfgit|dsm\-git|cn\-nytimes|gitter\-badger)'
<!doctype html>
<html>
<head>
<title>Louise's Web Site</title>
</head>
<body>
<h1>Welcome to Louise's web site!</h1>
<p><img src="http://dev.robkovacs.com/louise.jpg"/></p>
<!DOCTYPE html>
<html>
<head>
<title>Gina</title>
</head>
<body>
<h1>Gina</h1>
</body>
</html>
@cesine
cesine / index.html
Last active October 24, 2016 14:01
Exported from Popcode. Click to import: https://popcode.org/?gist=8d26ca9c52786b2aa0d5209d627e19a0
<!DOCTYPE html>
<html>
<head>
<title>Movies and Shows</title>
</head>
<body>
<h1>Best Movies and TV Shows Ever!</h1>
<ol>
<li>Finding Dory</li>
<li>Game of Thrones</li>