Skip to content

Instantly share code, notes, and snippets.

View bkonkle's full-sized avatar

Brandon Konkle bkonkle

View GitHub Profile
@bkonkle
bkonkle / django.me.xml
Created May 4, 2011 14:36
Django.me search provider for Firefox
<SearchPlugin xmlns="http://www.mozilla.org/2006/browser/search/" xmlns:os="http://a9.com/-/spec/opensearch/1.1/">
<os:ShortName>Django.me</os:ShortName>
<os:Description>Search Django.me</os:Description>
<os:InputEncoding>UTF-8</os:InputEncoding>
<os:Image width="16" height="16">data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABWklEQVQ4jaWTvUtCYRSH+5/M24dFQ+q1D2kI2hrTawmB1NISgS4WRktDRYZEU1DQB1RDVBAFTQ1BwYXQGoog0pup1/d9WtQgM2924CzvOe8D55zfr2k6HsXmczaU0/EoTfWa7H43dr+7Zv1XQNtoD1JKhBAomkq+kMc0TRzBfmuA9rFeJCClRNFUhBQA1gDdoUHcE0OUQ9FUOoJeOoPe2iPYNTeL23GeX1/4HoqmkjYyZLIGjmDfz4CFzSUAzKLJ1ukeq/sbFIWoAIQoj1ADoD/eA7Cyu155yxXyX4B6O3gz0gBMLUcaA9yldAB2zg+rAC0BD0LK3wHhxHxlacmnB671G2TpU9f4QKXWOtpT+4wza3PcpXSKoghANvfBbVJnODIGgJF9t6bEZr+LloCnJGcXR1cnAJxdX1iXss3nRNFUDi6PARBSoMUm/wYoeyKciDEyG6o203/t/An332rBvCVygAAAAABJRU5ErkJggg==</os:Image>
<SearchForm>http://django.me/</SearchForm>
<os:Url type="text/html" method="GET" template="http://django.me/{searchTerms}"></os:Url>
</SearchPlugin>
@bkonkle
bkonkle / #oldjobs
Created June 28, 2011 18:00 — forked from gregnewman/#oldjobs
Old Jobs I've had...
Brickmasonry tender
Remodeler's assistant
Grocery cart attendant
Checkout clerk
Department store associate
Department manager
Delivery truck loader
Paint counter clerk/mixer
Bank teller
Financial ops service rep
@bkonkle
bkonkle / .babelrc
Last active November 19, 2015 18:49
Babel Config
{
"presets": ["es2015-loose", "react"],
"plugins": ["transform-class-properties", "transform-object-assign"]
}
@bkonkle
bkonkle / Essential Mac Apps.md
Last active December 14, 2015 01:39
This is my list of Mac apps that regularly make my life better.

Essential Mac Apps

from datetime import datetime
from io import BytesIO
try:
from PIL import Image as PILImage
except ImportError:
try:
import Image as PILImage
except ImportError:
raise ImportError("The Python Imaging Library was not found.")
@bkonkle
bkonkle / client_config.js
Created November 6, 2013 03:58
Handing off config variables to the frontend
define(function (require) {
'use strict';
var Cookies = require('cookies-js');
var configJson = Cookies.get('config');
if (configJson.slice(0, 2) === 'j:') {
return JSON.parse(configJson.slice(2));
}
});
@bkonkle
bkonkle / snippets.cson
Last active January 29, 2016 17:27
Atom snippets for redux-actions
'constant':
prefix: 'const'
body: """
export const ${1:NAME} = '${2:app}/${3:reducer}/${1:NAME}'
"""
'action':
prefix: 'act'
body: """
export const ${1:name} = createAction(${2:ACTION})
@bkonkle
bkonkle / commons.js
Created May 1, 2016 16:50
commons.js
/* eslint-disable no-console,prefer-template */
const childProcess = require('child_process')
const findup = require('findup-sync')
const fs = require('fs')
const inquirer = require('inquirer')
const mkdirp = require('mkdirp').sync
const path = require('path')
function addToLocalRc(callback) {
const commonsDefault = path.join(__dirname, '..', '..', 'commons')
@bkonkle
bkonkle / dev-server.js
Created May 1, 2016 16:59
dev-server.js
/* eslint-disable no-console,prefer-template */
const chalk = require('chalk')
const devMiddleware = require('webpack-dev-middleware')
const express = require('express')
const hotMiddleware = require('webpack-hot-middleware')
const path = require('path')
const webpack = require('webpack')
function run() {
const PORT = process.env.PORT || 3000

Brandon Konkle's Atom Settings

This is a gist to use with the sync-settings atom package.