This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ); |