Skip to content

Instantly share code, notes, and snippets.

View jaybill's full-sized avatar

Jaybill McCarthy jaybill

View GitHub Profile
// The mixin
.site-search(@modifier,@rules) {
.site-search@{modifier}{
// Common styles
background-color: white;
// Passed in styles
@rules();
}
}
@font-face {
  font-family: 'SourceSansPro-Regular';
  src: url('../fonts/SourceSansPro/SourceSansPro-Regular.otf');
}
$letters = str_split('ABCDEFGHIJKLMNOPQRSTUVWXYZ');
@jaybill
jaybill / README.md
Last active August 29, 2015 14:08
Extrello - A quick and dirty Chrome extension to add up hours in Trello cards.

To use this, put these two files in their own directory along with a copy of jQuery 2.1.1

From within Chrome, go to the extensions window and click "Load Unpacked Extension" and point to the directory where you placed the files. After installing the extension, refresh any Trello board and it will add extra hour/card information to the header.

To get hours, you must start the title of your card with Nh, where N is the number of hours. i.e. 8h or 0.5h

This is based on Trello scraping code by Ethan Brown

Q.all(promises).then(function() {
console.log("Promises resolved");
posts.forEach(function(post, index) {
fpAuthors[index].blogPost = post;
});
console.log("whatnow");
var $blogTeaser = $(JST["blogteaser"](fpAuthors));
console.log($blogTeaser);
$('._blogTeaser').append($blogTeaser);
@jaybill
jaybill / gist:10760010
Created April 15, 2014 19:02
Whole-ish Wheat Bread
2 cups AP flour
1 cup Whole Wheat flour
2 teaspoons salt
2 teaspoons yeast
1 1/8 cup water
@jaybill
jaybill / gist:10752073
Created April 15, 2014 17:47
White Bread
3 cups flour
2 teaspoons salt
2 teaspoons yeast
1 1/8 cup water
@jaybill
jaybill / .bash_aliases
Created March 25, 2014 18:18
Git style ignoring for Subversion
# Use '_ss' instead of 'svn status' in the directory where your repo is
# version a file in the root of your repo called '.svnignore' that
# has one ignore pattern per line
alias _ss="svn status | egrep -v '`cat .svnignore|perl -p -e 's/\n/|/'`'"
# Other useful svn aliases
alias _sa="svn add"
alias _su="svn up"
alias _sc="svn ci --message
@jaybill
jaybill / Oat Bread
Last active August 29, 2015 13:57
Bread Recipes
1 cup Whole Wheat Bread Flour
2 cup AP Flour
3/4 cup Steel Cut Oats
2 1/4 cup water
1/4 tsp instant yeast
1 1/4 tsp salt
http://www.breadtopia.com/basic-no-knead-method/
/* See http://godoc.org/bitbucket.org/jaybill/sawsij/framework/model#DbSetup for how to set up a DbSetup object */
db := &model.DbSetup{}
....
post := &Post{Name: "Jimmy", Title: "First Post", Slug: "firstpost"}
t := &model.Table{Db: db}
err := t.Insert(post)
// assuming no error, post.Id will now contain the auto-inserted Id.