Skip to content

Instantly share code, notes, and snippets.

@k88hudson
k88hudson / gist:25862746d382777b8880
Created July 4, 2014 21:46
Example of interactive rebase
# git rebase -i master
pick 302d23a Added a .jshintrc file
pick 3a11d18 Updated readme with welcome message
pick 80c8eae typo
# Update it so that the last two commits are squashed together
pick 302d23a Added a .jshintrc file
pick 3a11d18 Updated readme with welcome message
f 80c8eae typo
{
"_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_":{
@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,
"criteria": [
{
"description": "Some criteria blah",
"required": 0,
"note": ""
}
]
.form-control:focus {
.has-error &,
.has-success & {
...
}
}
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"

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

.flex-display(flex);
// display: flex;
.flex-direction(row);
// flex-direction: row;
@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);
@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