Skip to content

Instantly share code, notes, and snippets.

1. Create new branch and checkout branch
`git checkout -b <name_of_branch>`
2. Make changes
3. Stage changes
`git add <filename>` to add `<filename>`
`git add -A .` to add all your changes and remove files
4. Commit changes (often). You can reference or 'fix' a bug by saying "Fixes #<issue_number>"
`git commit -m "This is a commit message."`
5. After you're done committing all your changes, merge master and push.
```
//controllers.js
'use strict';
angular.module('exquisitehuesApp')
.controller('MainCtrl', function($scope) {
$scope.cool = 'cool';
})
.controller('LineCtrl', ['$scope', 'LineService',
function($scope, service) {
var hue = require("node-hue-api"), HueApi = hue.HueApi, lightState = hue.lightState;
var host = "192.168.1.129",
username = "newdeveloper",
api,
state;
api = new HueApi(host, username);
@janecakemaster
janecakemaster / nginxconfig
Created April 16, 2014 05:48
nginx config for serving nodejs on /app
server {
listen 80;
server_name example.com;
root /path/to/static/files;
location / {
try_files $uri $uri/ /index.html;
}
[
{
"name":"flare.analytics.cluster.AgglomerativeCluster",
"size":3938,
"imports":[
"flare.animate.Transitioner",
"flare.vis.data.DataList",
"flare.util.math.IMatrix",
"flare.analytics.cluster.MergeEdge",
"flare.analytics.cluster.HierarchicalCluster",
raw json data looks like this:
{
"name":"flare.analytics.cluster.AgglomerativeCluster",
"size":3938,
"imports":[
"flare.animate.Transitioner",
"flare.vis.data.DataList",
"flare.util.math.IMatrix",
"flare.analytics.cluster.MergeEdge",
@janecakemaster
janecakemaster / empirejs.md
Last active August 29, 2015 14:20
empire js notes 2015

EmpireJS 2015 - takeaways and resources

Day 1

Rudy Jahchan - Getting Started in VR with JS (art, vr, physical)

  • slides
  • it would be cool to get our hands on google cardboard and experiment with 3d-ish video!
TWILIO_SID=<account id>
TWILIO_AUTH=<auth token>
TWILIO_NUMBER=<phone number>
CRYPTO_PW=<salt>
APP_URL=<dev url>
PORT=<port>
NODE_ENV=development
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>training</title>
</head>
<body>
whaaaaaaaaaaaaaaaaaaaaaaaaaaaaaatcool.
<script id="jsbin-javascript">
console.log('hello world');
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
<style id="jsbin-css">
.title {
color: red;
font-size: 50px;
}