Skip to content

Instantly share code, notes, and snippets.

View allenfantasy's full-sized avatar
😸
Feeding my cat

Zeqiu Wu allenfantasy

😸
Feeding my cat
View GitHub Profile
.navbar
.caret
.label
.table
.img-responsive
.img-rounded
.img-thumbnail
.img-circle
.sr-only
.lead
@allenfantasy
allenfantasy / MyDoubleTap.js
Last active August 29, 2015 13:56
Custom event configuration in Sencha Touch 2
// MyLib/event/recognizer/MyDoubleTap.js
Ext.define('Mylib.event.recognizer.MyDoubleTap', {
extend:'Ext.event.recognizer.DoubleTap',
config:{
// default value is 300
maxDuration:10000;//=> two taps in 10s would be considered as doubletap
}
});
/**
* Like, basically PERFECT scrollbars
*/
/*
It's pure CSS.
Since a quick google search will confirm people going crazy about Mac OS Lion scrollbars...
this has no fade-out effect.
In Mac OS Lion, the lowest common denominator is always showing scrollbars by a setting.
.flexcroll{ height:200px;
overflow:auto;
}
.flexcroll{
scrollbar-face-color: #367CD2;
scrollbar-shadow-color: #FFFFFF;
scrollbar-highlight-color: #FFFFFF;
scrollbar-3dlight-color: #FFFFFF;
scrollbar-darkshadow-color: #FFFFFF;
scrollbar-track-color: #FFFFFF;
#box {
width: 300px;
background-color: #f8f8f8;
padding: 10px;
}
.details {
height: 0px;
overflow: hidden;
}
.close {
audio {
display: none;
}
@allenfantasy
allenfantasy / .tmux.conf
Last active December 28, 2015 22:49
tmux conf
set -g default-command /bin/zsh set -g default-shell /bin/zsh
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
set-window-option -g mode-mouse on
worker_processes 1;
user nobody nogroup;
pid /tmp/nginx.pid;
error_log /tmp/nginx.error.log;
events {
worker_connections 1024;
accept_mutex off;
}
http {
default_type application/octet-stream;
require "bundler/capistrano"
set :application, "blog"
set :repository, "git@github.com:happypeter/blog.git"
set :scm, :git
# Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none`
set :user, "deployer"
set :deploy_to, "/home/#{user}/#{application}"
set :deploy_via, :remote_cache
set :use_sudo, true
[core]
editor = vim
[alias]
ci = commit -v
co = checkout
st = status
br = branch
throw = reset --hard HEAD
throwh = reset --hard HEAD^
[color]