View index.html
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
<!DOCTYPE html> | |
<html ng-app="minApp"> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js"></script> | |
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular-route.min.js"></script> | |
<script src="angular-layout.min.js"></script> | |
<link rel="stylesheet" href="angular-layout.css"/> | |
<style> | |
[ng\:cloak], [ng-cloak], [data-ng-cloak], [x-ng-cloak], .ng-cloak, .x-ng-cloak { | |
display: none !important; |
View .bowerrc
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
{ | |
"directory": "app/bower_components" | |
} |
View Gruntfile.js
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
'use strict'; | |
module.exports = function(grunt) { | |
var pkg = grunt.file.readJSON('package.json'); | |
grunt.initConfig({ | |
'pkg': pkg, | |
'cfg': { |
View Post.js
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
/** | |
* Model that represents a post that has been approved by an admin | |
* @type {Model} | |
*/ | |
var mongoose = require('mongoose'); | |
var Post = new mongoose.Schema({ | |
"id": {type: String, required: true, unique: true}, | |
"source": { type: String, enum: ["twitter", "instagram"], required:true }, | |
"tag": {type: String, required: true}, |
View Gruntfile.js
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
// Generated on 2014-04-01 using generator-angular 0.7.1 | |
'use strict'; | |
// # Globbing | |
// for performance reasons we're only matching one level down: | |
// 'test/spec/{,*/}*.js' | |
// use this if you want to recursively match all subfolders: | |
// 'test/spec/**/*.js' | |
module.exports = function (grunt) { |
View app_assets_index.html
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
<!doctype html> | |
<!--[if lt IE 7]><html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"><![endif]--> | |
<!--[if IE 7]><html class="no-js lt-ie9 lt-ie8" lang="en"><![endif]--> | |
<!--[if IE 8]><html class="no-js lt-ie9" lang="en"><![endif]--> | |
<!--[if gt IE 8]><!--><html class="no-js" lang="en"><!--<![endif]--> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<meta name="description" content="" /> |
View algo.py
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
from __future__ import with_statement # < python 2.6 | |
# parse CSV, 1 point at a time | |
with open("data.txt") as f: | |
for line in f: | |
point = line.strip().split(',') |
View site.less
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
// BOOTSTRAP | |
@import "../bower_components/strapless/less/variables"; | |
@import "../bower_components/strapless/less/mixins"; | |
@import "../bower_components/strapless/less/normalize"; | |
@import "../bower_components/strapless/less/print"; | |
@import "../bower_components/strapless/less/scaffolding"; | |
@import "../bower_components/strapless/less/type"; | |
@import "../bower_components/strapless/less/code"; | |
@import "../bower_components/strapless/less/grid"; | |
@import "../bower_components/strapless/less/tables"; |
View MusicId.js
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
angular.module('services') | |
.service("MusicId", function(){ | |
return [{ | |
"id": "business", | |
"label": "Business", | |
"subcats": [{ | |
"label": "Type", | |
"id": "type", | |
"value": "hotel", |
View test.js
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
var http = require('http'); | |
http.createServer(function (req, res) { | |
res.writeHead(200, {'Content-Type': 'text/plain'}); | |
res.end("hi"); | |
}).listen(5000); |
OlderNewer