Skip to content

Instantly share code, notes, and snippets.

View coopermaruyama's full-sized avatar

Cooper Maruyama coopermaruyama

View GitHub Profile
@dillongreen
dillongreen / inf-apps.js
Last active January 2, 2016 04:19
meteor template helper for client connection status template seen at https://gist.github.com/8249761
Template.navbar.connection_status = function () {
var connection_status = Meteor.status().status;
var retryCount = Meteor.status().retryCount;
switch(connection_status){
case "connected":
return { label: "label-success",
connection_status: connection_status};
case "waiting":
@nkzawa
nkzawa / .travis.yml
Last active September 9, 2019 13:18
Testing mongoose models with mocha
language: node_js
node_js:
- 0.8
services:
- mongodb
@kvnsmth
kvnsmth / example-subtree-usage.md
Last active March 24, 2025 17:21
A real world usage for git subtrees.

Let's say you have an iOS project, and you want to use some external library, like AFNetworking. How do you integrate it?

With submodules

Add the project to your repo:

git submodule add [email protected]:AFNetworking/AFNetworking.git Vendor/AFNetworking

or something to that effect.

@coopermaruyama
coopermaruyama / vendor-ffmpeg-heroku
Created October 27, 2012 08:39
Install FFMpeg on heroku (Rails)
## Get FFMpeg working on heroku by building binaries using vulcan
gem install vulcan
vulcan create foo
git clone --depth 1 git://source.ffmpeg.org/ffmpeg
cd ffmpeg