Skip to content

Instantly share code, notes, and snippets.

View marcosisocram's full-sized avatar

Marcos Paulo marcosisocram

  • Recife / PE / Brasil
View GitHub Profile
[{"name":"Abra","required":25,"$$hashKey":"object:15","quantity":1,"candies":80},{"name":"Bellsprout","required":25,"$$hashKey":"object:16","candies":125,"quantity":3},{"name":"Bulbasaur","required":25,"$$hashKey":"object:17","quantity":3,"candies":155},{"name":"Caterpie","required":12,"$$hashKey":"object:82","candies":138,"quantity":10},{"name":"Charmeleon","required":100,"$$hashKey":"object:19","quantity":1,"candies":19},{"name":"Clefairy","required":50,"$$hashKey":"object:20","candies":178,"quantity":1},{"name":"Cubone","required":50,"$$hashKey":"object:21","quantity":2,"candies":214},{"name":"Diglett","required":50,"$$hashKey":"object:22","candies":44,"quantity":1},{"name":"Dragonair","required":100,"$$hashKey":"object:24","quantity":1,"candies":53},{"name":"Drowzee","required":50,"$$hashKey":"object:26","quantity":2,"candies":151},{"name":"Eevee","required":25,"$$hashKey":"object:27","quantity":17,"candies":374},{"name":"Ekans","required":50,"$$hashKey":"object:28","quantity":2,"candies":160},{"name":"Ex
@marcosisocram
marcosisocram / remove-line-break.html
Created February 6, 2015 20:21
Remove Line Break
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Remove Break Line</title>
<style>
div, textarea {
height: 76%;
width: 97%;
@marcosisocram
marcosisocram / index.js
Created October 30, 2014 03:46
requirebin sketch
//var insertCSS = require('insert-css');
var domify = require('domify');
var curry = require('curry');
var html = '<div class="button">btn</div><div class="button2">btn2</div><div class="button3">btn3</div>'
document.body.appendChild(domify(html))
//console.log('teste', 'de', 'console');
var qAll = curry.adapt(function(query, context){
if(typeof query == 'string'){
return context.querySelector(query);
}
[1, 2, 3].map(console.log.bind(console));
@marcosisocram
marcosisocram / municipios.json
Created April 23, 2014 13:08
Lista de UFs e Municípios, segundo IBGE 2013 (5570 municípios)
[
{
"cod_uf": "52",
"uf": "Goiás",
"city_id": "00050",
"city": "Abadia de Goiás",
"sigla_uf": "GO",
"city_code": "5200050"
},
{
<([a-z]*).*>([\w|\W]*?)<\/\1>
/^\d*(\,(\d*))?$/g
@marcosisocram
marcosisocram / index.html
Created April 2, 2014 20:35
angular charts example
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.chart {
height: 200px;
width: 500px;
}
performance.mark("startFoo");
// A time consuming function
foo();
performance.mark("endFoo");
performance.measure("durationFoo", "startFoo", "endFoo");
console.log(performance.getEntriesByName('durationFoo')[0].duration);
// Delete all Marks
2.7 python -m SimpleHTTPServer 8000
3.3.2 python -m http.server 8000