Skip to content

Instantly share code, notes, and snippets.

View houfeng0923's full-sized avatar

houfeng houfeng0923

View GitHub Profile
@houfeng0923
houfeng0923 / karabiner.json
Last active March 20, 2024 09:01
karabiner config
{
"global": {
"ask_for_confirmation_before_quitting": true,
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false,
"unsafe_ui": false
},
"profiles": [
{
import Controller from '@ember/controller';
export default class ApplicationController extends Controller {
appName = 'Ember Twiddle';
}
import Component from '@glimmer/component';
export default class extends Component {
}
//<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 / components.my-component.js
Last active August 8, 2018 15:44
ember closure actions
import Ember from 'ember';
export default Ember.Component.extend({
actions: {
login() {
alert('comp login');
this.sendAction('login');
return true; // 无用
}
@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)'
};
@houfeng0923
houfeng0923 / gist:3488708
Created August 27, 2012 14:02
nodejs debug plugin in sublime text 2
a simple plugin for sublime text2 to debug node file in WebKit based browser.(os:window)