- 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
- Compass - Open source CSS Authoring Framework.
- Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
- Font Awesome - The iconic font designed for Bootstrap.
- Zurb Foundation - Framework for writing responsive web sites.
- SASS - CSS extension language which allows variables, mixins and rules nesting.
- Skeleton - Boilerplate for responsive, mobile-friendly development.
- jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
- Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
- AngularJS - Conventions based MVC framework for HTML5 apps.
- Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
- lawnchair - Key/value store adapter for indexdb, localStorage
This file contains 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
<input type="text" value="" id="getNumberKeyboard" maxlength="4" pattern="[0-9]*"> |
This file contains 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 str = "Hello, playground"; | |
var highScore:Int = 1000; | |
highScore = highScore + 100; | |
for i in 0..<100 { | |
highScore = highScore + i; | |
} | |
var firstName:String = "Chip"; |
###OSX configure git auto completeion
open terminal
cd ~
hit return(make sure you are in the home dir) then paste in
curl -OL https://github.com/git/git/raw/master/contrib/completion/git-completion.bash
This file contains 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
Show hidden characters
{ | |
"cmd": ["/usr/local/bin/python3", "$file"], | |
"selector": "source.python", | |
"file_regex": "file \"(...*?)\", line ([0-9]+)", | |
"env": {"LANG": "en_US.UTF-8"} | |
} | |
//In Sublime Text 3, Tools -> Build System -> New Build System | |
//replace the "cmd" path with your 'which python3' result in terminal |
This file contains 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 Event = (function() { | |
var Event; | |
var _default = 'default'; | |
Event = function() { | |
var _listen; | |
var _trigger; | |
var _remove; | |
var _shift = Array.prototype.shift; |
This file contains 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
let offset = 0 | |
, len = view.byteLength; | |
// SOI marker | |
if (view.getUint16(0, false) != 0xFFD8) reject('不是 JPEG 文件'); | |
// APP1 marker | |
while (offset < len) { | |
if (view.getUint16(offset, false) == 0xFFE1) break; | |
else offset += 2; |
This file contains 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
switch (EXIF.orientation) { | |
case 2: ctx.transform(-1, 0, 0, 1, width, 0); break; | |
case 3: ctx.transform(-1, 0, 0, -1, width, height ); break; | |
case 4: ctx.transform(1, 0, 0, -1, 0, height ); break; | |
case 5: ctx.transform(0, 1, 1, 0, 0, 0); break; | |
case 6: ctx.transform(0, 1, -1, 0, height , 0); break; | |
case 7: ctx.transform(0, -1, -1, 0, height , width); break; | |
case 8: ctx.transform(0, -1, 1, 0, 0, width); break; | |
default: ctx.transform(1, 0, 0, 1, 0, 0); | |
} |
This file contains 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
<select onchange="this.className=this.options[this.selectedIndex].className" class="placeholder"> | |
<option value="" selected class="placeholder">placeholder</option> | |
<option value="1" class="green">green</option> | |
<option value="2" class="red">red</option> | |
</select> |
OlderNewer