cd ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
git clone git://github.com/jashkenas/coffee-script-tmbundle CoffeeScript
git clone https://github.com/miksago/jade-tmbundle.git Jade
git clone https://github.com/LearnBoost/stylus.git Stylus
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
<codeColors> | |
<colorGroup> | |
<syntaxColor id="CodeColor_HTMLEntity" text="#AECD9D" bold="true" /> | |
<syntaxColor id="CodeColor_JavascriptNative" text="#FCFFE7" /> | |
<syntaxColor id="CodeColor_JavascriptNumber" text="#FBAA21" /> | |
<syntaxColor id="CodeColor_JavascriptClient" text="#FCF296" /> | |
<syntaxColor id="CodeColor_JavascriptSpryKeywords" text="#FF6208" /> | |
<syntaxColor id="CodeColor_JavascriptSpryClasses" text="#FF6208" /> | |
<syntaxColor id="CodeColor_TemplateText" text="#999999" /> | |
<syntaxColor id="CodeColor_TemplateCommentText" text="#82806F" /> |
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
/** | |
* Checkerboard pattern | |
* (a bit buggy in Webkit, see bug #54615) | |
*/ | |
background-color: white; | |
background-image: linear-gradient(45deg, transparent 25%, transparent 25%, transparent 87.5%, black 87.5%, black), | |
linear-gradient(-135deg, transparent 25%, transparent 25%, transparent 87.5%, red 87.5%, red), | |
linear-gradient(45deg, transparent 25%, transparent 25%, transparent 87.5%, black 87.5%, black), | |
linear-gradient(-135deg, transparent 25%, transparent 25%, transparent 87.5%, red 87.5%, red), |
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
## .gitconfig | |
[alias] | |
dt = difftool | |
mt = mergetool | |
[diff] | |
tool = bc3 | |
[difftool] | |
prompt = false | |
[difftool "bc3"] |
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
## .gitconfig | |
[alias] | |
dt = difftool | |
mt = mergetool | |
[diff] | |
tool = bc3 | |
[difftool] | |
prompt = false | |
[difftool "bc3"] |
Setup GitHub Pages "gh-pages" branch as a subfolder within the "master" project on your local checkout.
If you plan on switching between different branches (e.g. git checkout master-experiment
then revert back with git checkout master
) you will loose your child
folder from this tutorial (because it's in your
.gitignore and is not part of your master
branch).
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
/* | |
* Remove classes that have given prefix | |
* Example: | |
* You have an element with classes "apple juiceSmall juiceBig banana" | |
* You run: | |
* $elem.removeClassByPrefix('juice'); | |
* The resulting classes are "apple banana" | |
* NOTE: discussion of implementation techniques for this, including why simple RegExp with word boundaries isn't correct: | |
* http://stackoverflow.com/questions/57812/jquery-remove-all-classes-that-begin-with-a-certain-string#comment14232343_58533 | |
* https://gist.github.com/mamboer/6191743 |
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
// | |
// CRUD API for RESTful services with URLs similar 'http://services.mysite.com/classes/Book'. | |
// | |
// e.g. parse.get( | |
// "Book", | |
// 123, | |
// function(response){ console.log(response.toString());} | |
// ); | |
// | |
services.factory('parse', function($rootScope, $http) { |
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
/*Make position:fixed work in IE6!*/ | |
.fixed-top /* position fixed Top */{position:fixed;bottom:auto;top:0;} | |
.fixed-bottom /* position fixed Bottom */{position:fixed;bottom:0;top:auto;} | |
.fixed-left /* position fixed Left */{position:fixed;right:auto;left:0;} | |
.fixed-right /* position fixed right */{position:fixed;right:0;left:auto;} | |
* html,* html body /* IE6 Fixed Position Jitter Fix */{background-image:url(about:blank);background-attachment:fixed;} | |
* html .fixed-top /* IE6 position fixed Top */{position:absolute;bottom:auto;top:expression(eval(document.documentElement.scrollTop));} | |
* html .fixed-right /* IE6 position fixed right */{position:absolute;right:auto;left:expression(eval(document.documentElement.scrollLeft+document.documentElement.clientWidth-this.offsetWidth)-(parseInt(this.currentStyle.marginLeft,10)||0)-(parseInt(this.currentStyle.marginRight,10)||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
/*=====日历控件=========*/ | |
.calendar2{*width:536px;} | |
.calendar1{*width:268px;} | |
.calendar{ | |
border: 1px solid #e1e1e1; | |
background-color: #ffffff; | |
border: 1px solid #ccc; | |
border: 1px solid rgba(0, 0, 0, 0.2); | |
-webkit-border-radius: 2px; | |
-moz-border-radius: 2px; |
OlderNewer