Skip to content

Instantly share code, notes, and snippets.

View monokrome's full-sized avatar
😻
meow

Bailey Stoner monokrome

😻
meow
View GitHub Profile
@monokrome
monokrome / alternates.json
Created February 4, 2014 01:52
Example for a potential CatJugglers media description structure.
{
"objects": [
{
"type": "rss",
"title": "monokro.me",
"link": "http://monokro.me/feed.xml",
"tags": ["blog", "monokro.me"]
},
{
@monokrome
monokrome / glp.yml
Last active August 29, 2015 13:56
Example configuration format for GLP (http://github.com/monokrome/glp)
# This file can be in the same directory that you run `gulp` from, or
# it can be ./etc/, your home directory, or any other system directory
# that a good piece of software would expect. Some example locations:
#
# ~/.config/glp.yml
# /usr/local/etc/glp.yml
# /etc/glp.yml
# C:\System32\glp.yml (This is smart enough to know what drive Windows is on)
#
# This automatic configuration discovery is provided by PreferJS.
@monokrome
monokrome / removerequire.vim
Last active August 29, 2015 13:57
Angular Vim macros.
" For converting regular modules
0v/=
xf[v%x/concat
G/concat
bbvf.hp{VggdGpVG<vf/=
xjkkJF[vf xvgg<
" For converting services
v/=
xf(VG{dp?]
angular.module 'app'
.controller 'app.controller', [
'$scope'
].concat ($scope) ->
@monokrome
monokrome / glp.yml
Last active August 29, 2015 13:57
Simple GLP configuration example.
# Install glp in your project.
npm install -g glp
# Create a config file as explained by the other file in this gist.
# Run glp (not gulp) to build!
glp
# watch files for changes
glp watch
directive 'autoFocus', ->
scope: no
link: ($scope, $element) -> $element.focus()
@monokrome
monokrome / futures.coffee
Created April 19, 2014 22:59
Example of a future
q = require 'q'
doIt = (accept=yes) ->
future = q.defer();
if accept
future.resolve 'accepted'
else
future.reject 'rejected'
- src:
- common:
- partials:
- index.jade
- other.jade
- controllers:
- index.jade
- other.jade
- directives:
- other.jade
@monokrome
monokrome / dtqGy.markdown
Created May 3, 2014 03:08
A Pen by Brandon R. Stoner.
@monokrome
monokrome / .projections.json
Created June 26, 2014 20:32
vim-projectionist projects for Django projects
{
"{{ PACKAGE_DIR }}/*/urls.py": {
"type": "urls"
},
"{{ PACKAGE_DIR }}/urls.py": {
"type": "urls"
},
"{{ PACKAGE_DIR }}/*/app.py": {