Skip to content

Instantly share code, notes, and snippets.

@iotaweb
iotaweb / gist:8228253
Created January 2, 2014 22:25
Base64 encode / decode factory for AngularJS
/**
*
* Base64 encode / decode
* http://www.webtoolkit.info/
*
**/
.factory('Base64', function() {
// private property
var _keyStr = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=';
@thcipriani
thcipriani / baller_motd.md
Last active February 12, 2023 12:28
Using img2ponysay to create baller /etc/motd message

Update: I made this a proper blog post

Creating Baller/Useful MOTD Messages

Zangief MOTD

Prerequisites

  • linux box
@wsargent
wsargent / docker_cheat.md
Last active September 23, 2025 16:14
Docker cheat sheet
@jdlnolen
jdlnolen / gist:7023278
Created October 17, 2013 11:27
Quick recipe for getting Modulus.io working with Codeship.io to do CI with Meteor with the Laika testing framework.
First, follow this recipe from Arunoda @ MeteorHacks. Focus on the Codeship part at the bottom of the page.
http://meteorhacks.com/continuos-integration-for-meteor-apps.html
To get the modulus CLI installed, add the npm command to the bottom of the setup commands described above on codeship.io. I copied the full text of my setup commands below:
git clone https://github.com/meteor/meteor.git ~/meteor
export PATH=~/meteor/:$PATH
npm install -g meteorite laika
npm install -g modulus
@textarcana
textarcana / bamboo-plato.sh
Last active December 25, 2015 16:49
How to run Plato in Bamboo.
#!/usr/bin/env bash
# load history -- necessary because Bamboo runs a "git clean" on the build directory
cp -r /opt/plato-report .
plato -r -d plato-report \
-l .jshintrc \
-t "My Project" \
-x '(jquery|min.js|libs/(backbone|underscore|require))' \
path/to/my_project
@sheedy
sheedy / style-guides.md
Last active December 25, 2015 11:09
A list of "living" Style Guides

Style Guides

Add any links you want in this to the comments and I'll add them.

Grunt/JS/Handlebars

Generates styleguides from Markdown comments in CSS, SASS and LESS files using Handlebars

Node/JS

@jbenet
jbenet / simple-git-branching-model.md
Last active July 21, 2025 21:02
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@kohgpat
kohgpat / app.js
Created September 23, 2013 07:25
angular.js currency filter using accounting.js
angular.module("app.users", ["ngResource"]).factory("Users", function($resource) {
return $resource("users.json", {}, {get: {method: "GET", isArray: true}});
});
angular.module("app.filters", []).filter("currency", function() {
return function(number, currencyCode) {
var currency = {
USD: "$",
RUB: ""
},
angular.module('d3AngularApp', ['d3'])
.directive('d3Bars', ['$window', '$timeout', 'd3Service',
function($window, $timeout, d3Service) {
return {
restrict: 'A',
scope: {
data: '=',
label: '@',
onClick: '&'
},
@RIAEvangelist
RIAEvangelist / Install Cloud9 on local or remote computer, server, or raspberry pi
Last active June 6, 2023 03:37
This gist will help you install Cloud9 on your local or remote computer, server, or even your raspberry pi. Many people are having issues at the time of this Gist's creation.
Complete installation process:
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y python-software-properties python make build-essential g++ curl libssl-dev apache2-utils git libxml2-dev
sudo apt-get update
sudo apt-get upgrade
cd ~
mkdir git
cd ~/git