Skip to content

Instantly share code, notes, and snippets.

### prompt with git branch, colours, and status
export GITAWAREPROMPT=~/.bash/git-aware-prompt
source $GITAWAREPROMPT/main.sh
export PS1="$txtcyn\]\w \[$txtylw\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ "
@k88hudson
k88hudson / gist:9419553
Created March 7, 2014 20:37
Building and tagging a release for Makerstrap
  1. Run grunt build on master to see if new minified version needs to be built. If there are changes, commit with the message 'build for 0.x.x'
  2. For minor releases (i.e. 0.x.0), run npm version minor. For major releases (x.0.0) run npm version major
  3. Push the tag to master! git push <mozilla> master --tags
  4. Push the new version to gh-pages as well, git checkout -B gh-pages, git push gh-pages
@k88hudson
k88hudson / migration-bug976693.sql
Last active August 29, 2015 13:57
Migration for bug 976693
ALTER TABLE `Events`
ADD COLUMN `ageGroup` VARCHAR(255),
ADD COLUMN `skillLevel` VARCHAR(255);
.flex-display(flex);
// display: flex;
.flex-direction(row);
// flex-direction: row;

To check out my ghost-tacos branch, you should have:

Added me(k88hudson) as a remote

git remote add k88hudson https://github.com/k88hudson/tacofancy.git

Fetched all my branches

git fetch k88hudson

var weblit = new Webliteracy('en');
weblit.all()
// Outputs list of all web literacies with the right locale, e.g. https://github.com/k88hudson/weblit-keys/blob/master/latest/weblitmap.json
weblit.getTag('Navigiation');
// weblit-Navigation
weblit.getString('weblit-Navigation');
// "Navigation"
.form-control:focus {
.has-error &,
.has-success & {
...
}
}
"criteria": [
{
"description": "Some criteria blah",
"required": 0,
"note": ""
}
]
@k88hudson
k88hudson / gist:10927936
Last active August 29, 2015 13:59
Badge fields
{
"slug": "This is a 'url-friendly' version of the name, e.g. webmaker-super-mentor",
"name": "Webmaker Super Mentor",
"strapline": "This is a short description for the badge",
"earnerDescription": "This is a description for the badge that earners will see",
"consumerDescription": "This is a description for the badge that people viewing the badge will see.",
"issuerUrl": "https://webmaker.org",
"rubricUrl": "",
"criteriaUrl": "https://badgekit.mofostaging.net/badge/test-badge/criteria",
"timeValue": 0,
{
"_two_and_half_hours_":{
"message":"2.5 hours",
"description":"Length of the event field option"
},
"_search_events_":{
"message":"Search Events",
"description":"Placeholder with Search Events text"
},
"_events_single_word_":{