Skip to content

Instantly share code, notes, and snippets.

[
{
"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",
@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;
}
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);
//controllers.js
'use strict';
angular.module('exquisitehuesApp')
.controller('MainCtrl', function($scope) {
$scope.cool = 'cool';
})
.controller('LineCtrl', ['$scope', 'LineService',
function($scope, service) {
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.
```