Skip to content

Instantly share code, notes, and snippets.

😻
meow

Bailey Stoner monokrome

😻
meow
View GitHub Profile
@monokrome
monokrome / alternates.json
Created Feb 4, 2014
Example for a potential CatJugglers media description structure.
View alternates.json
{
"objects": [
{
"type": "rss",
"title": "monokro.me",
"link": "http://monokro.me/feed.xml",
"tags": ["blog", "monokro.me"]
},
{
@monokrome
monokrome / glp.yml
Last active Aug 29, 2015
Example configuration format for GLP (http://github.com/monokrome/glp)
View glp.yml
# 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 Aug 29, 2015
Angular Vim macros.
View removerequire.vim
" 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?]
View example.coffee
angular.module 'app'
.controller 'app.controller', [
'$scope'
].concat ($scope) ->
@monokrome
monokrome / glp.yml
Last active Aug 29, 2015
Simple GLP configuration example.
View glp.yml
# 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
View auto_focus.coffee
directive 'autoFocus', ->
scope: no
link: ($scope, $element) -> $element.focus()
@monokrome
monokrome / futures.coffee
Created Apr 19, 2014
Example of a future
View futures.coffee
q = require 'q'
doIt = (accept=yes) ->
future = q.defer();
if accept
future.resolve 'accepted'
else
future.reject 'rejected'
View angular_project.yml
- src:
- common:
- partials:
- index.jade
- other.jade
- controllers:
- index.jade
- other.jade
- directives:
- other.jade
@monokrome
monokrome / .projections.json
Created Jun 26, 2014
vim-projectionist projects for Django projects
View .projections.json
{
"{{ PACKAGE_DIR }}/*/urls.py": {
"type": "urls"
},
"{{ PACKAGE_DIR }}/urls.py": {
"type": "urls"
},
"{{ PACKAGE_DIR }}/*/app.py": {
You can’t perform that action at this time.