d
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
</body> | |
</html> |
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 ns = 'http://www.w3.org/2000/svg', | |
svg = document.createElementNS(ns, 'svg'), | |
div = document.createElement('div'); | |
document.body.appendChild(div); | |
div.appendChild(svg); | |
svg.setAttribute('width', 400); | |
svg.setAttribute('height', 300); | |
svg.style.background = '#eee'; |
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
<!DOCTYPE html> | |
<html> | |
<head></head> | |
<body>Hello, world!</body> | |
</html> |
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
.triangle { | |
content: ' '; | |
display: block; | |
width: 0; | |
height: 0; | |
line-height: 0; | |
font-size: 0; | |
border-style: solid; | |
border-color: transparent; | |
} |
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/sh | |
# @Author: techird | |
# @Date: 2014/11/19 11:10 | |
# @Last Modified by: techird | |
# @Last Modified time: 2014/11/19 11:10 | |
#git diff --cached --name-only --diff-filter=ACMR | |
files=$(git diff --cached --name-only --diff-filter=ACMR | grep "\.js$") | |
if [ "$files" = "" ]; then | |
exit 0 |
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
mkdir -p ./.git/hooks/ && curl -s https://gist.githubusercontent.com/techird/0104a1dd01c2d19919c5/raw > ./.git/hooks/pre-commit && chmod +x ./.git/hooks/pre-commit && echo 'Install Success!' |
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
bash -c "$(curl -s https://gist.githubusercontent.com/techird/f301476006209e039630/raw)" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
define(function(require, exports, module) { | |
/*! | |
** Thenable -- Embeddable Minimum Strictly-Compliant Promises/A+ 1.1.1 Thenable | |
** Copyright (c) 2013-2014 Ralf S. Engelschall <http://engelschall.com> | |
** Licensed under The MIT License <http://opensource.org/licenses/MIT> | |
** Source-Code distributed on <http://github.com/rse/thenable> | |
*/ | |
/* promise states [Promises/A+ 2.1] */ | |
var STATE_PENDING = 0; /* [Promises/A+ 2.1.1] */ |
OlderNewer