#heading Text
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
body { | |
background: #fff; | |
min-height: 100%;} | |
div { | |
float: left | |
} |
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
Teste de texto | |
E duas linhas |
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
function placeholderPolyfill(el, opt){ | |
opt = opt || {}; | |
var $el = $(el), | |
testAttribute = function(element, attribute) { | |
var test = document.createElement(element); | |
return (attribute in test); | |
}; | |
if (!testAttribute('input','placeholder') && $el.attr('placeholder').length) { | |
var defaults = { | |
clearOnSubmit: true |
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
body { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; | |
color: #333; | |
} |
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
function toFixed(num, dec) { | |
var result = Math.round(num*Math.pow(10,dec))/Math.pow(10,dec), | |
$arr = (result+[]).split('.'), | |
$int = $arr[0] + '.', | |
$dec = $arr[1] || '0'; | |
return $int + $dec + (Math.pow(10,(dec - $dec.length))+[]).substr(1); | |
} | |
//OR |
#Como funciona? A extensão/addon se conecta ao Sublime e quando qualquer arquivo é salvo lá (independente da localização) o browser faz um refresh.
#Pré-requisitos 0. Sublime Text 2 0. Sublime Package Control
#Instalação 0. Através do Package Control (windows: ctrl+shift+p -> Package Control: Install Package) 0. Reiniciar o Sublime
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
/* jQuery Not-So-Tiny Pub/Sub - v0.4 - 2013-01-15 | |
* http://sillero.github.com/ | |
* Copyright (c) 2012 "sillero" Gustavo Sillero; Licensed MIT, GPL | |
* | |
* UPDATE (2013-01-15): now e (event) gets the folowwing properties | |
* published (eventName used in $.publish) | |
* subscribed (eventName used in $.subscribe) | |
* | |
* usage: | |
* $.subscribe('/path1', function(e, response){ console.log('path1',response.data); }) |
comment out these lines in jshint.js
and jslint.js
if (left.value === "parseInt" && n === 1) {
warning("Missing radix parameter.", token);
}
that's it :)