Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Stéphane Bachelier stephanebachelier

🎯
Focusing
View GitHub Profile
@stephanebachelier
stephanebachelier / config.json
Created May 9, 2014
Draftable articles for winter smith blog
View config.json
{
"plugins": [
"./plugins/paginator.coffee",
"./plugins/draftable_page.coffee",
"wintersmith-livereload"
],
"paginator": {
"perPage": 3
}
}
@stephanebachelier
stephanebachelier / app.js
Created Apr 25, 2014
Marionnette onDomRefresh issue example fix proposal
View app.js
var App = new Backbone.Marionette.Application();
App.addRegions({
main: '#main'
});
App.addInitializer(function() {
App.main.show(new MainLayout())
});
View app.js
var App = new Backbone.Marionette.Application();
App.addRegions({
main: '#main'
});
App.addInitializer(function() {
console.log('here');
App.main.show(new MainLayout())
});
View git-flip-last.sh
#!/bin/bash
branch=$(git name-rev --name-only HEAD)
git rebase --onto HEAD~2 HEAD~1 HEAD
git cherry-pick ORIG_HEAD~1
git update-ref refs/heads/$branch $(git rev-parse HEAD)
git checkout --quiet $branch
# Instead of creating an independant bash script with the code above,
# consider simply creating a git alias using the command below.