This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| *.html | |
| *.epub | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ParentCtrl = function($scope) { | |
| $scope.validate = function() { | |
| //... | |
| } | |
| $scope.edit = function(item) { | |
| //... | |
| $scope.validate(); | |
| //... | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var group = new (function() { | |
| var foo = function() { | |
| var recruit = new Array(); //招租 | |
| var recruit_roommate = new Array(); //招合租 | |
| var wanted = new Array(); //求租 | |
| var wanted_roomate = new Array(); //求合租 | |
| var others = new Array(); //其他 | |
| for (var i = 0; i < 5; i++) { | |
| $.ajax({type : 'get', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- @brief emacs startup script | |
| -- @author gongqijian | |
| -- @date 2013/04/28 | |
| -- | |
| -- Usage: | |
| -- | |
| -- 把 applescript 转换成 bundle,跟配置文件 _emacs.d 放在同一个目录下: | |
| -- . | |
| -- |- runemacs.app | |
| -- |- _emacs.d |
基于上游仓库某次提交做了修改
----(a)---------------> upstream/up_master
\
------(b)-------------> origin/my_master
一段时间之后,上游仓库更新了
----(a)--(c)--(d)--(e)--(f)--(g)--> upstream/up_master
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # @brief convert apple/shell script to bundle | |
| # @version 0.1 | |
| # @auther gongqijian | |
| # @date 2013/05/09 | |
| set -e | |
| if [ $# -lt 1 ]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/perl | |
| # Gavin Brock (http://brock-family.org/gavin/perl) - June 2007 | |
| #==============================================================================# | |
| use strict; | |
| use warnings; | |
| use Foundation; | |
| #==============================================================================# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python2 | |
| # @brief dump id3 tag info to .json file | |
| # @version 0.1 | |
| # @author gongqijian | |
| # @create 2013/04/11 | |
| import os | |
| import sys | |
| import getopt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| tell application "System Preferences" | |
| quit | |
| delay 1 | |
| launch | |
| activate | |
| tell application "System Events" | |
| key down {option, command} | |
| end tell | |
| reveal pane id "com.apple.preference.displays" | |
| tell application "System Events" |
NewerOlder