Skip to content

Instantly share code, notes, and snippets.

View houfeng0923's full-sized avatar

houfeng houfeng0923

View GitHub Profile
//<p class="name">hi {{name}}</p>
Handlebars.templates["hi"]=function(data) {
return "<p class=\"name\">hi "
+ escapeExpression(data['name'])
+ "</p>\n";
});
# Repo: someuser/myframework
# Fork: superteam/myframework
# Track:
git clone https://github.com/superteam/myframework.git
cd myframework
git remote add upstream https://github.com/someuser/myframework.git
# Update:
git fetch upstream
@houfeng0923
houfeng0923 / git paging.md
Created October 8, 2019 02:15 — forked from hutusi/git paging.md
Git checkout next / prev commit

Treat git log as a book, exec git next or git prev to checkout the next or the previous commit.

@houfeng0923
houfeng0923 / application.route.js
Last active February 8, 2018 04:31 — forked from nightire/application.route.js
Data Binding-test
import Ember from 'ember';
export default Ember.Route.extend({
activate() {
document.body.classList.add('standard');
}
});
@houfeng0923
houfeng0923 / breakpoint.js
Created May 12, 2017 02:01 — forked from k-fish/breakpoint.js
Example Ember Responsive
export default {
mobile: '(max-width: 480px)',
tablet: '(min-width: 481px) and (max-width: 768px)',
desktop: '(min-width: 769px) and (max-width: 1366px)'
};