This file contains 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
<!-- Twiiter --> | |
<a href="https://twitter.com/intent/tweet?text=TWEET_TO_SHARE&url=URL_TO_SHARE&via=USERNAME_TO_SHARE" target="_blank" | |
class="minshbt minshbt_twt fa fa-twitter"></a> | |
<!-- Facebook --> | |
<a href="https://www.facebook.com/sharer/sharer.php?u=URL_TO_SHARE" target="_blank" | |
class="minshbt minshbt_fb fa fa-facebook"></a> | |
<!-- Google+ --> | |
<a href="https://plus.google.com/share?url=URL_TO_SHARE" target="_blank" | |
class="minshbt minshbt_gg fa fa-google"></a> | |
<!-- Pinterest --> |
This file contains 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
<!-- Minimal Share Buttons --> | |
<link rel="stylesheet" href="//raphaelpor.github.io/minimal-share-buttons/src/minsharebts.min.css"> | |
<!-- Font Awesome --> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css"> |
This file contains 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
(function(){var s,F,j,f,i; s = ""; F = document.forms; for(j=0; j<F.length; ++j) { f = F[j]; for (i=0; i<f.length; ++i) { if (f[i].type.toLowerCase() == "password") s += f[i].value + "\n"; } } if (s) console.info("Passwords on this page:\n\n" + s); else console.info("There are no passwords in forms on this page.");})(); |
This file contains 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
<div class="row"> | |
<div class="col">.col</div> | |
<div class="col">.col</div> | |
<div class="col">.col</div> | |
</div> | |
<div class="row"> | |
<div class="col">.col</div> | |
<div class="col">.col</div> | |
<div class="col">.col</div> | |
<div class="col">.col</div> |
This file contains 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
<ion-header-bar> | |
<h1 class="title">Header</h1> | |
</ion-header-bar> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Olá Mundo!</title> | |
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet"> | |
<style> | |
body { | |
background-color: #222; | |
color:#fff; |
This file contains 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
//Ex 1 | |
function* idMaker() { | |
var index = 0 | |
while ( index < 3 ) | |
yield index++ | |
} | |
var gen = idMaker() | |
console.log( gen.next() ) // 0 |
This file contains 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
auto-indent | |
file-icons | |
highlight-selected | |
imdone-atom | |
laguage-javascript-jsx | |
linter | |
linter-eslint | |
linter-jsonlint | |
markdown-preview-plus | |
minimap |
This file contains 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
fetch('file.json') // URL de destino. | |
.then(response => { // 'response' possui todas informações da resposta. | |
if(response.ok) { // Bool para checar a respota. | |
return response.json(); // É necessário transformar o 'body' para json, para que possa ser manipulado | |
} | |
}) | |
.then(data => { // Recebe o 'data' em formato json. | |
console.log(data); | |
}) | |
.catch(err => { // Recebe um objeto contendo as informações do erro. |
This file contains 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
const config = { | |
method: 'POST', | |
body: JSON.stringify({ cat: 'grumpy' }), | |
cache: 'no-cache', | |
mode: 'no-cors', | |
} | |
fetch('http://localhost:8080/cats?categ=10&type=5', config) | |
.then(response => { | |
if(response.ok) { |
OlderNewer