One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| var data = "do shash'owania"; | |
| var crypto = require('crypto'); | |
| crypto.createHash('md5').update(data).digest("hex"); |
| /** | |
| * Remove acentos de caracteres | |
| * @param {String} stringComAcento [string que contem os acentos] | |
| * @return {String} [string sem acentos] | |
| */ | |
| function removerAcentos( newStringComAcento ) { | |
| var string = newStringComAcento; | |
| var mapaAcentosHex = { | |
| a : /[\xE0-\xE6]/g, | |
| e : /[\xE8-\xEB]/g, |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Exemplo DataList</title> | |
| </head> | |
| <body> | |
| <input list="browsers" id="my-input"/> |
| var request = require('request'), | |
| zlib = require('zlib'); | |
| var headers = { 'Accept-Encoding': 'gzip' }; | |
| var response = request({ url:'http://perdu.com/', headers: headers }); | |
| response.on('response', function (response) { | |
| // decode the stream if necessary | |
| if (response.headers['content-encoding'] === 'gzip') | |
| response = response.pipe(zlib.createGunzip()); |
| /* | |
| Split an array into chunks and return an array | |
| of these chunks. | |
| With kudos to github.com/JudeQuintana | |
| This is an update example for code I originally wrote 5+ years ago before | |
| JavaScript took over the world. | |
| Extending native objects like this is now considered a bad practice, so use |
| // permutation: Permutação | |
| // P(n) = n! | |
| // Exemplo: número de anagramas da palavra LIVRO = P(5) = n! | |
| // Possibilidades de uma fila de 25 pessoas = P(25) = 25! | |
| // combination: Combinação | |
| // C(p,n) = = n! / p!(n - p)! | |
| // Exemplo: formar comissão de 3 pessoas escolhidas entre 10 pessoas. C(3,10) = 10! / 3!(10 - 3)! | |
| // arrangement: Arranjo |
| 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {var r = Math.random()*16|0,v=c=='x'?r:r&0x3|0x8;return v.toString(16);}); |
| --<<Naga auto farm/stack/creepwave cut>> | |
| --[[ Naga Farm script by Moones ]]-- | |
| require("libs.ScriptConfig") | |
| require("libs.Utils") | |
| require("libs.EasyHUD") | |
| require("libs.SkillShot") | |
| local currentVersion = 0.5 |
| /** | |
| * Recebe um data no formato dd/mm/yyyy e retorna yyyy-mm-dd. | |
| * | |
| * @param string date - Data no formato 'dd/mm/yyyy'. | |
| * @return string - Data no formato 'yyyy-mm-dd'. | |
| */ | |
| function dateToEN(date) | |
| { | |
| return date.split('/').reverse().join('-'); | |
| } |