comment out these lines in jshint.js
and jslint.js
if (left.value === "parseInt" && n === 1) {
warning("Missing radix parameter.", token);
}
that's it :)
(function (con) { | |
// the dummy function | |
function dummy() {} | |
// console methods that may exist | |
for(var methods = "assert,count,debug,dir,dirxml,error,exception,group,groupCollapsed,groupEnd,info,log,markTimeline,profile,profileEnd,time,timeEnd,trace,warn".split(','), func; func = methods.pop();) { | |
con[func] = con[func] || dummy; | |
} | |
}(window.console = window.console || {})); |
.dataTable { | |
max-width: none; /* sScrollY fix */ | |
} |
copyObject = function(o){ return JSON.parse(JSON.stringify(o)); }; |
$compile = function($template, $scope){ | |
var $mask = /\{\{\s*[\w.]+\s*[^\}\}]\}\}/g, | |
$matches = $template.match($mask), | |
$templateScope = [], k; | |
for (k in $matches) { | |
var $match = $matches[k].replace(/[\{\}\s]/g,'').split('.'); | |
$templateScope.push($match); | |
} | |
for (k in $templateScope) { | |
var $match = $templateScope[k], |
comment out these lines in jshint.js
and jslint.js
if (left.value === "parseInt" && n === 1) {
warning("Missing radix parameter.", token);
}
that's it :)
/* 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); }) |
#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
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 |
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; | |
} |