Skip to content

Instantly share code, notes, and snippets.

@cesine
cesine / particles.html
Created January 9, 2012 22:08 — forked from jmhobbs/particles.html
Simple JavaScript Particles
<html>
<head>
</head>
<body>
<canvas id="base" width="500" height="500" style="border: 1px solid #444; background: #000;"></canvas>
<script>
var elem = document.getElementById( 'base' );
var context = elem.getContext( '2d' );
var Sprite = function () {
@cesine
cesine / couchdb-ec2-install.sh
Created July 3, 2012 05:31 — forked from msmith/couchdb-ec2-install.sh
Set up CouchDB on EC2
#!/bin/bash
#
# For http://stackoverflow.com/questions/6162891/installing-couchdb-in-aws-ec2-free-tier
#
# This script installs and configures couchdb on a fresh Amazon Linux AMI instance.
# It is a modified fork of the original rake script, but does not use rake (just good ol' linux tools)
# Based on: http://wiki.apache.org/couchdb/Installing_on_RHEL5
var Corpus = Backbone.Model.extend({
changePouch : function(couchConnection, callback) {
this.pouch = Backbone.sync.pouch(couchConnection.pouchname);
callback();
},
saveAndInterConnectInApp : function(callback) {
callback();
}
});
@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 / An-Anonymous-Pen.markdown
Created January 24, 2014 16:45 — forked from anonymous/An-Anonymous-Pen.markdown
Css switch (from a checkbox)
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)'