Skip to content

Instantly share code, notes, and snippets.

View brianfeister's full-sized avatar
🧙‍♂️

Brian Feister brianfeister

🧙‍♂️
View GitHub Profile
@brianfeister
brianfeister / fabfile.py
Created December 9, 2013 19:17
Example fabric deploy tasks with git on prod server via github
from fabric.api import env, run, cd, task, get
from fabric.colors import *
from time import gmtime, strftime
import subprocess, os
global tag_time
tag_time = strftime("%Y-%m-%d-%H-%M-%S", gmtime())
global www_prod
www_prod = '/srv/www'
@brianfeister
brianfeister / app.js
Last active May 27, 2020 02:37
Angular Upload with Image Crop
angular.module('cropAndUpload', [
'angularFileUpload',
'ngImgCrop'
])

1 Azor's Gateway 2 Niv-Mizzet, Parun 2 Search for Azcanta 2 Seal Away 3 Chemister's Insight 1 Essence Scatter 3 Expansion // Explosion 2 Justice Strike 4 Sinister Sabotage 3 Syncopate

1 Azor's Gateway
2 Niv-Mizzet, Parun
2 Search for Azcanta
2 Seal Away
3 Chemister's Insight
1 Essence Scatter
3 Expansion // Explosion
2 Justice Strike
4 Sinister Sabotage
3 Syncopate
1 Azor's Gateway
2 Niv-Mizzet, Parun
2 Search for Azcanta
2 Seal Away
3 Chemister's Insight
1 Essence Scatter
3 Expansion // Explosion
2 Justice Strike
4 Sinister Sabotage
3 Syncopate
window.allowHttpFromHttps = true;
@brianfeister
brianfeister / feats.yml
Last active November 4, 2016 04:38
Example YML formatting
- !
name: Alternate Form (I - III)
prerequisite:
- tier1:
- Attribute:
- Alteration: 2
- Feat:
- Some Other Feat Name
- tier2:
- Attribute:
@brianfeister
brianfeister / attach_heads.js
Created December 15, 2012 13:04
Sub-theming engine for Grunt.js + Roots Theme + Twitter Bootstrap
/**
* Task: attach_heads
* Description: Set the heads for all themes declared in themes.json
*/
module.exports = function(grunt) {
'use strict';
var fs = require('fs');
var path = require('path');
var fs = require('fs');
var readline = require('readline');
var google = require('googleapis');
var googleAuth = require('google-auth-library');
var SCOPES = ['https://www.googleapis.com/auth/drive'];
var TOKEN_DIR = (process.env.HOME || process.env.HOMEPATH ||
process.env.USERPROFILE) + '/.credentials/';
var TOKEN_PATH = TOKEN_DIR + 'drive-nodejs-quickstart.json';
// Load client secrets from a local file.
@brianfeister
brianfeister / gist:d6d33d6c6f4eaa4cb272
Created January 14, 2016 00:14
Sphere BB8 Lessons Learned
Main repo for node module - https://github.com/orbotix/sphero.js
Connecting via Bluetooth to your Mac (1st time) - https://sphero.zendesk.com/hc/en-us/articles/204392360-My-Sphero-is-Glowing-Blue-White-and-Won-t-Connect-to-my-Device