This file contains hidden or 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 CorrigirEstados = function(estado) { | |
switch (estado.toLowerCase()) { | |
case 'amapa' : | |
estado = 'Amapá'; | |
break; | |
case 'ceara' : | |
estado = 'Ceará'; | |
break; | |
This file contains hidden or 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 ConverterEstados = function(val) { | |
var data; | |
switch (val.toUpperCase()) { | |
/* UFs */ | |
case "AC" : data = "Acre"; break; | |
case "AL" : data = "Alagoas"; break; | |
case "AM" : data = "Amazonas"; break; | |
case "AP" : data = "Amapá"; break; | |
case "BA" : data = "Bahia"; break; |
This file contains hidden or 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 LightenColor = function(color, percent) { | |
var num = parseInt(color,16), | |
amt = Math.round(2.55 * percent), | |
R = (num >> 16) + amt, | |
B = (num >> 8 & 0x00FF) + amt, | |
G = (num & 0x0000FF) + amt; | |
return (0x1000000 + (R<255?R<1?0:R:255)*0x10000 + (B<255?B<1?0:B:255)*0x100 + (G<255?G<1?0:G:255)).toString(16).slice(1); | |
}; |
This file contains hidden or 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 src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script> | |
<h1>50 Shades of Gray</h1> |
This file contains hidden or 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> | |
<option>Escolha o mês</option> | |
<option value="01">Janeiro</option> | |
<option value="02">Fevereiro</option> | |
<option value="03">Março</option> | |
<option value="04">Abril</option> | |
<option value="05">Maio</option> | |
<option value="06">Junho</option> | |
<option value="07">Julho</option> | |
<option value="08">Agosto</option> |
This file contains hidden or 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
{ | |
"bold_folder_labels": true, | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", | |
".sass-cache" | |
], |
This file contains hidden or 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
https://github.com/voodootikigod/node-serialport |
This file contains hidden or 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
/*jslint node:true, nomen:true, stupid:true*/ | |
'use strict'; | |
/** | |
* dependencies | |
*/ | |
var fs = require('fs'); | |
var path = require('path'); | |
var s = require('string'); |
This file contains hidden or 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
mixin template | |
script(id!=attributes.id, type="text/html") | |
if block | |
block |
OlderNewer