Skip to content

Instantly share code, notes, and snippets.

@lsm
lsm / gist:8167d7a2f2f39ad586d1
Created March 16, 2015 23:34
Compare stream style
$(function() {
var spaceKeyCode = 32;
//-----------------------------------------
var stream = require('dim')();
var model = {};
stream
Step 1: From your project repository, bring in the changes and test.
git fetch origin
git checkout -b anton-redesign origin/anton-redesign
git merge master
Step 2: Merge the changes and update on GitHub.
git checkout master
git merge --no-ff anton-redesign
git push origin master
@lsm
lsm / firefs
Created December 11, 2014 00:52
An example of using firebase as filesystem
// Example folder object
{
example_folder: {
type: "folder",
children: {
file1: {
type: "file",
blob: <Buffer 74 68 69 73 20 69 73 20 61 6e 20 65 78 61 6d 70 6c 65 20 66 69 6c 65> // this is a 10MB file
},
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Modify by linuz.ly
package main
import (
"bytes"
"fmt"
"code.google.com/p/go.crypto/ssh"