Skip to content

Instantly share code, notes, and snippets.

View bcantoni's full-sized avatar

Brian Cantoni bcantoni

View GitHub Profile
#!/usr/bin/perl
$foo = "alert ('foo');";
open (FH, ">file.in");
print FH $foo;
close (FH);
system ("java -jar yuicompressor-2.4.2.jar --type js <file.in >file.out");
@bcantoni
bcantoni / Makefile
Created November 4, 2011 05:34 — forked from pamelafox/Makefile
Closure/YUI/JsHint Makefile
# Makefile for JS/CSS:
# Uses Closure for JS compiling, YUI for CSS compiling, and JsHint for code quality checking
MAKEFLAGS = --no-print-directory --always-make
MAKE = make $(MAKEFLAGS)
BUILDDIR = ./.build
CLOSUREURL = http://closure-compiler.googlecode.com/files/compiler-latest.zip
CLOSUREDIR = $(BUILDDIR)/closure
create KEYSPACE spark_demo WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'};
create table spark_demo.raw_files (filename text,line int, contents text, PRIMARY KEY(filename,line));
create table spark_demo.users (id int PRIMARY KEY );
create table spark_demo.movies (id int PRIMARY KEY, name text, year int);
create table spark_demo.ratings (id int PRIMARY KEY, user_id int, movie_id int, rating float );