Skip to content

Instantly share code, notes, and snippets.

View tedshd's full-sized avatar

Ted tedshd

View GitHub Profile
@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 / crossdomain.xml
Created May 23, 2013 08:19
crossdomain
<cross-domain-policy>
<allow-access-from domain="*" secure="false"/>
</cross-domain-policy>
@tedshd
tedshd / gist:5517844
Last active December 16, 2015 23:59
timestamp
//jQuery
console.time("timerName");
function();
console.timeEnd("timerName");
@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 / 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 / focus.html
Created April 11, 2013 10:05
focus effect
<!DOCTYPE html>
<html>
<head>
<title>Focus</title>
<style>
body {
font-size: 24px;
background: #333;
}
li {
@tedshd
tedshd / loop.html
Created April 9, 2013 08:54
channel loop
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Loop</title>
<style>
body {
/*overflow: hidden;*/
}
.loop {
@tedshd
tedshd / get.php
Created April 6, 2013 05:17
Get length limit test
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Get</title>
</head>
<body>
<?pdp
echo 'Get' . htmlspecialchars($_GET['get_length']);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>yui get click index</title>
<script src="http://yui.yahooapis.com/3.8.1/build/yui/yui-min.js"></script>
<script type="text/javascript">
YUI().use('node', function (Y) {
Y.all(".classtest li").on("click", function(e) {
Y.log(this.indexOf(e.currentTarget));
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Keyboard</title>
<meta name="description" content="">
<meta name="keywords" content="">
<style type="text/css">
#keyboard {
position:absolute;