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
// Textfill Module | |
// ---------------- | |
// auto font rezize based on the parent size | |
// | |
(function($, window) { | |
var initialFontSize = null; | |
$.fn.textfill = function(maxFontSize) | |
{ | |
maxFontSize = parseInt(maxFontSize, 10); |
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
<script> | |
(function(w, d, s) { | |
function go(){ | |
var js, fjs = d.getElementsByTagName(s)[0], load = function(url, id) { | |
if (d.getElementById(id)) {return;} | |
js = d.createElement(s); js.src = url; js.id = id; | |
fjs.parentNode.insertBefore(js, fjs); | |
}; | |
load('//connect.facebook.net/en_US/all.js#appId=272697932759946&xfbml=1', 'fbjssdk'); | |
load('https://apis.google.com/js/plusone.js', 'gplus1js'); |
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
{ | |
// If true, when the file is saved any errors will appear in a popup list | |
"sublimelinter_popup_errors_on_save": false, | |
// Javascript linter: "gjslint" to use the closure javascript linter (if available), | |
// or either "jshint" or "jslint" to use a built in linter. | |
"javascript_linter": "jshint", | |
// jshint: options for linting JavaScript. See http://www.jshint.com/options/ for more info. |
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
// http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
// http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
// requestAnimationFrame polyfill by Erik Möller | |
// fixes from Paul Irish and Tino Zijdel | |
(function() { | |
var lastTime = 0; | |
var vendors = ['ms', 'moz', 'webkit', 'o']; | |
for(var x = 0; x < vendors.length && !window.requestAnimationFrame; ++x) { |
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
## Launch SublimeText2 from the Terminal (on MacOS X) ## | |
1/ Open Terminal.app | |
2/ Copy/paste the following symbolic link. You can replace 'subl' at the end with the keyword of your choice | |
ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl | |
3/ Now you can open files and projects directly from the Terminal | |
- Open the current folder as a project: "subl ." | |
- Open a file "subl _PATH_/file.js" |
NewerOlder