Skip to content

Instantly share code, notes, and snippets.

View jlcarvalho's full-sized avatar

Jean Lucas de Carvalho jlcarvalho

View GitHub Profile
<header id="header">
lorem 2
</header>
<header id="header">
lorem 2
</header>
<header id="header">
lorem 2
</header>
var dex = {"meta": {"limit": 1, "next": null, "offset": 0, "previous": null, "total_count": 1}, "objects": [{"created": "2013-11-09T15:14:48.957604", "modified": "2013-11-09T15:14:48.957565", "name": "national", "pokemon": [{"name": "rattata", "resource_uri": "api/v1/pokemon/19/"}, {"name": "charmander", "resource_uri": "api/v1/pokemon/4/"}, {"name": "charmeleon", "resource_uri": "api/v1/pokemon/5/"}, {"name": "wartortle", "resource_uri": "api/v1/pokemon/8/"}, {"name": "blastoise", "resource_uri": "api/v1/pokemon/9/"}, {"name": "caterpie", "resource_uri": "api/v1/pokemon/10/"}, {"name": "metapod", "resource_uri": "api/v1/pokemon/11/"}, {"name": "butterfree", "resource_uri": "api/v1/pokemon/12/"}, {"name": "spearow", "resource_uri": "api/v1/pokemon/21/"}, {"name": "kakuna", "resource_uri": "api/v1/pokemon/14/"}, {"name": "beedrill", "resource_uri": "api/v1/pokemon/15/"}, {"name": "pidgey", "resource_uri": "api/v1/pokemon/16/"}, {"name": "pidgeotto", "resource_uri": "api/v1/pokemon/17/"}, {"name": "pidgeot", "r
@jlcarvalho
jlcarvalho / pokemon.pm
Created March 20, 2015 16:46
Get pokemon
my($hash) = {'bulbasaur'=>'1','ivysaur'=>'2','venusaur'=>'3','charmander'=>'4','charmeleon'=>'5','charizard'=>'6','squirtle'=>'7','wartortle'=>'8','blastoise'=>'9','caterpie'=>'10','metapod'=>'11','butterfree'=>'12','weedle'=>'13','kakuna'=>'14','beedrill'=>'15','pidgey'=>'16','pidgeotto'=>'17','pidgeot'=>'18','rattata'=>'19','raticate'=>'20','spearow'=>'21','fearow'=>'22','ekans'=>'23','arbok'=>'24','pikachu'=>'25','raichu'=>'26','sandshrew'=>'27','sandslash'=>'28','nidoran-f'=>'29','nidorina'=>'30','nidoqueen'=>'31','nidoran-m'=>'32','nidorino'=>'33','nidoking'=>'34','clefairy'=>'35','clefable'=>'36','vulpix'=>'37','ninetales'=>'38','jigglypuff'=>'39','wigglytuff'=>'40','zubat'=>'41','golbat'=>'42','oddish'=>'43','gloom'=>'44','vileplume'=>'45','paras'=>'46','parasect'=>'47','venonat'=>'48','venomoth'=>'49','diglett'=>'50','dugtrio'=>'51','meowth'=>'52','persian'=>'53','psyduck'=>'54','golduck'=>'55','mankey'=>'56','primeape'=>'57','growlithe'=>'58','arcanine'=>'59','poliwag'=>'60','poliwhirl'=>'61','poliwr
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Coder</title>
<!-- Necessary to insert the styles -->
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body><script type='text/javascript' id="__bs_script__">//<![CDATA[
@jlcarvalho
jlcarvalho / index.html
Last active August 29, 2015 14:18
Coder: Test
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Coder</title>
<!-- Necessary to insert the styles -->
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body><script type='text/javascript' id="__bs_script__">//<![CDATA[
@jlcarvalho
jlcarvalho / index.html
Last active August 29, 2015 14:18
Coder: Test2
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Coder</title>
<!-- Necessary to insert the styles -->
<link rel="stylesheet" type="text/css" href="main.css">
</head>
<body>
@jlcarvalho
jlcarvalho / index.html
Last active August 29, 2015 14:18
Gistter: Header Layout
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Gistter</title>
<!-- Necessary to insert the styles -->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300" type="text/css" media="all" />
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=Vollkorn:400italic" type="text/css" media="all" />
<link rel="stylesheet" type="text/css" href="main.css">
@jlcarvalho
jlcarvalho / app.js
Last active August 29, 2015 14:18
Gistter: Playback control with sound spectrum
var sound = new Audio('http://media.soundcloud.com/stream/BkDZIahFB7ME.mp3');
sound
.isPlayed = false
.volume = 1;
$('#butt').on('click',function(){
if (!sound.isPlayed) {
sound.play(); // Play sound