Skip to content

Instantly share code, notes, and snippets.

View jiahut's full-sized avatar
🎯
Focusing

zhijia,.zhang jiahut

🎯
Focusing
View GitHub Profile
@joshski
joshski / example.cakefile
Created April 16, 2011 08:54
My first cakefile
CoffeeScript = require 'coffee-script'
{exec} = require 'child_process'
fs = require 'fs'
SOURCES = [
'app',
'line'
]
task 'features', 'Run the cucumber features (with mininal output)', ->
@sofish
sofish / Native_FullScreen.js
Created November 10, 2011 09:02
Native FullScreen JavaScript API
/*
Native FullScreen JavaScript API
CopyRight: Johndyer, http://johndyer.name/native-fullscreen-javascript-api-plus-jquery-plugin/
-------------
Assumes Mozilla naming conventions instead of W3C for now
*/
(function() {
var
fullScreenApi = {
supportsFullScreen: false,
@stouset
stouset / foo.rb
Created December 1, 2011 01:24
autoload best practice
class Foo
autoload :Bar, 'foo/bar'
autoload :Baz, 'foo/baz'
end
@angeloh
angeloh / .sbtconfig
Created July 6, 2012 20:49
Pass JVM options to sbt
$ cat ~/.sbtconfig
SBT_OPTS="-XX:+CMSClassUnloadingEnabled -XX:PermSize=128M -XX:MaxPermSize=256M"
;(custom-set-variables
; ;; custom-set-variables was added by Custom.
; ;; If you edit it by hand, you could mess it up, so be careful.
; ;; Your init file should contain only one such instance.
; ;; If there is more than one, they won't work right.
; '(menu-bar-mode t)
; '(scheme-program-name "mzscheme")
; '(tool-bar-mode nil)
; '(widget-image-enable nil))
(custom-set-faces
{
"auto_complete_selector": "source - comment, meta.tag - punctuation.definition.tag.begin",
"bold_folder_labels": true,
"caret_style": "solid",
"color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night.tmTheme",
"create_window_at_startup": false,
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
".DS_Store"
@jiahut
jiahut / emacs.d
Last active December 25, 2015 04:49
emacs.d
;;(add-to-list 'load-path "~/.emacs.d/color-theme-6.6.0")
(let ((default-directory "~/.emacs.d/"))
(normal-top-level-add-subdirs-to-load-path))
;("ELPA" . "http://tromey.com/elpa/")
;("gnu" . "http://elpa.gnu.org/packages/")
;("SC" . "http://joseito.republika.pl/sunrise-commander/")
(require 'package)
@mrnugget
mrnugget / postinstall.sh
Created May 23, 2012 15:59
Vagrant Post-Install
# **postinstall.sh** is a script executed after Debian/Ubuntu has been
# installed and restarted. There is no user interaction so all commands must
# be able to run in a non-interactive mode.
#
# If any package install time questions need to be set, you can use
# `preeseed.cfg` to populate the settings.
### Setup Variables
# The version of Ruby to be installed supporting the Chef and Puppet gems
@jiahut
jiahut / quick_to_dev_backbone.js
Last active October 17, 2016 01:20
require jquery and backbone in cosole and coding...
(function(undefined){
var _requirejs = document.createElement('script');
_requirejs.src = "http://requirejs.org/docs/release/2.1.5/minified/require.js";
_requirejs.type ="text/javascript";
document.head.appendChild(_requirejs);
setTimeout(function(){
require('http://code.jquery.com/jquery-1.9.1.min.js'.split(";"));
require('http://underscorejs.org/underscore-min.js'.split(";"),function(){
require('http://backbonejs.org/backbone-min.js'.split(";"))
});
@LightZam
LightZam / 1-TodoList
Last active February 28, 2017 02:22
TodoList 使用Angular js + Node js + Mongodb
撰寫TodoList
Angular JS當作前端
Node JS 當作後端
Mongodb 當作Database