Skip to content

Instantly share code, notes, and snippets.

View tedshd's full-sized avatar

Ted tedshd

View GitHub Profile
@tedshd
tedshd / position.html
Created April 15, 2013 13:51
position
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Position</title>
<meta name="description" content="">
<meta name="keywords" content="">
<link href="" rel="stylesheet">
<style type="text/css">
@tedshd
tedshd / .zshrc
Created May 3, 2013 01:22
mba .zshrc
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
export ZSH_THEME="candy"
# Set to this to use case-sensitive completion
@tedshd
tedshd / gist:5517844
Last active December 16, 2015 23:59
timestamp
//jQuery
console.time("timerName");
function();
console.timeEnd("timerName");
@tedshd
tedshd / crossdomain.xml
Created May 23, 2013 08:19
crossdomain
<cross-domain-policy>
<allow-access-from domain="*" secure="false"/>
</cross-domain-policy>
@tedshd
tedshd / .gitconfig
Last active June 11, 2019 09:45
.gitconfig
[alias]
st = status
br = branch
ci = commit
co = checkout
sub = submodule
d = difftool
[diff]
tool = vimdiff
[difftool]
@tedshd
tedshd / messages.js
Created June 6, 2013 02:06
yui uploader from hunter
/**
* Spec : http://produce.corp.miiicasa.com/spec/miiiCloud_V2/?Page=Page_1-3_p_message_board_attach_files_done1
* Mockup : http://produce.corp.miiicasa.com/ued/visual_center/mockup/miiicloud_v2/page_1_3_p_message_board_attach_files_done1.png
*
* @authors Ted Shiu
* @date 2013-06-10 16:32:25
*
*/
$(function () {
@tedshd
tedshd / Build_gh-pages.sh
Last active December 18, 2015 12:59
build gh-pages flow
tedshd@Tedshd-mba [12:28:50] [~/Develop/keyboard_test_page] [master]
-> % git checkout --orphan gh-pages
Switched to a new branch 'gh-pages'
tedshd@Tedshd-mba [12:29:22] [~/Develop/keyboard_test_page] [gh-pages *]
-> % git st
# On branch gh-pages
#
# Initial commit
#
# Changes to be committed:
@tedshd
tedshd / img_width&height.html
Created June 19, 2013 02:04
bootstrap media object test
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
<title>Img_width&height</title>
<style>
img {
width: 200px; !important;
@tedshd
tedshd / amChats_usage.js
Created July 17, 2013 03:54
amCharts usage
amCharts
// 建立取資料的物件
var chart = new AmCharts.AmSerialChart();
chart.dataProvider = chartData;
// 圓餅圖
var chart = new AmCharts.AmPieChart();
chart.dataProvider = chartData;
@tedshd
tedshd / upload_note.md
Created August 2, 2013 04:54
upload file note

fileUpload by yui library

init upload button

JavaScript bind click event

in IE

use JavaScript move CSS position

  • uploader : Upload file