Skip to content

Instantly share code, notes, and snippets.

View gabrielgrant's full-sized avatar

Gabriel Grant gabrielgrant

View GitHub Profile
import Controller from '@ember/controller';
import { tracked } from '@glimmer/tracking';
export default class ApplicationController extends Controller {
queryParams = ['projects', 'roles'];
@tracked projects = [];
@tracked roles = [];
}
@gabrielgrant
gabrielgrant / munge.py
Last active August 29, 2015 14:19 — forked from anonymous/munge.py
IMDB Ratings Data Munging
""" Loads IMDB's Ratings data into Pandas
Assumes you've already downloaded the raw data by running:
wget -O - ftp://ftp.funet.fi/pub/mirrors/ftp.imdb.com/pub/ratings.list.gz | gunzip > ratings.list
See: http://www.imdb.com/interfaces
"""
import pandas as pd
@gabrielgrant
gabrielgrant / ember-precompile.js
Created September 15, 2012 04:11 — forked from zilkey/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 }