Skip to content

Instantly share code, notes, and snippets.

View gasolin's full-sized avatar

gasolin gasolin

View GitHub Profile
@gasolin
gasolin / gpush.sh
Created May 12, 2015 02:17
alias for gh-pages push, single command to update master to gh-pages. Ref http://stackoverflow.com/questions/5807459/github-mirroring-gh-pages-to-master
alias gpush="git checkout gh-pages && git merge master && git push origin gh-pages && git checkout -"
@gasolin
gasolin / gaiabutton.md
Last active August 29, 2015 14:21
gaia-button syntax proposal v2

<gaia-button> devDependency Status

Installation

$ bower install gaia-components/gaia-button

Then include folowing files in HTML

name: inverse layout: true class: center, middle, inverse

WebApplate Overview

[gasolin]


TL;DR a template for maintainable web app project.

<h3>BMI</h3>
<label for="height">Height(cm)</label>
<input id="height"></input>
<br/>
<label for="weight">Weight(kg)</label>
<input id="weight"></input>
<br/>
<h3>BMI</h3>
<label for="height">Height(cm)</label>
<input id="height"></input>
<br/>
<label for="weight">Weight(kg)</label>
<input id="weight"></input>
<br/>
@gasolin
gasolin / switch_flame_memory.sh
Created July 30, 2015 03:23
switch flame memory size
$ adb reboot bootloader
$ fastboot oem mem 319
$ fastboot getvar mem
mem: 319m
$ fastboot reboot
@gasolin
gasolin / MacAlternative4Win
Last active September 29, 2015 05:34
mac alternative for windows
# crop screen
附屬應用程式 > 剪取工具
# App
* iTerm - cmder
* git - github desktop
* dash - [vilocity](https://velocity.silverlakesoftware.com/)
* nvm - [nvm for windows](https://github.com/coreybutler/nvm-windows)
# Shortcuts
@gasolin
gasolin / panel_test.js
Created October 7, 2015 03:20
just work test sample for bug 1208205, don't take it directly
/* global loadBodyHTML*/
'use strict';
require('/shared/js/component_utils.js');
require('/shared/elements/gaia_radio/script.js');
requireApp('settings/shared/test/unit/load_body_html_helper.js');
requireApp('settings/shared/test/unit/mocks/mock_navigator_moz_settings.js');
suite('Improve browser os panel > ', function() {
var MockSettingsCache;
@gasolin
gasolin / res.py
Last active December 20, 2015 01:59
Gather gaia multiple resolution resources to a web page for easy debuggingUsage: `python res.py [app_name]`ex: `python res.py browser`
import os, glob, sys
from string import Template
import datetime
template = """
<DOCTYPE html>
<html>
<body>
$table
</body>