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
setInterval([].forEach.bind($$("*"),function(a){a.style.outline="5px solid #"+(~~(Math.random()*(1<<24))).toString(16) }, 5), 10) |
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
var doors = [false, false ,true]; | |
var didntChangeDoorCount = 0; | |
var changedDoorCount = 0; | |
for(i=0;i<10000;i++) { | |
var picker = Math.floor(Math.random()*3); | |
//dont change | |
if(doors[picker]) didntChangeDoorCount++; | |
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
$.ajax({ | |
method: 'GET', | |
url: 'https://api.github.com/repos/servicosgovbr/cartas-de-servico/contents/cartas-servico/v3/servicos' | |
}).then(function(data) { | |
var servicos = data; | |
}); |
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
var http = require('http'); | |
var server = http.createServer(function (request, response) { | |
function funcOne(input) { | |
var request = require('request'); | |
request.get('http://estruturaorganizacional.dados.gov.br/id/unidade-organizacional/1930', | |
{json: true, body: input}, | |
function(err, res, body) { | |
if (!err && res.statusCode === 200) { | |
console.log(err); |
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
//this function represents a book from an online library | |
//it has 3 methods to search the book, remove a specific word and change it | |
//it has 4 attributes, name, author, date and content | |
//creates libaries stuffz | |
function elementliBRaryContent(a,b,c,d) { | |
var bnam = a; | |
var baut = b; | |
var bdat = c; | |
var bcont = d; |
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 book(name,author,content,date) { | |
var name = name; | |
var author = author; | |
var content = content; | |
var date = date; | |
var self = { | |
findWord: function(word) { | |
return content.indexOf(word)>=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
function book(name, author, content, date) { | |
var name = name, | |
author = author, | |
content = content, | |
date = date; | |
var self = { | |
containsWord: function(word) { | |
return content.indexOf(word) >= 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
//this function represents a book from an online library | |
//it has 3 methods to search the book, remove a specific word and change it | |
//it has 4 attributes, name, author, date and content | |
//creates libaries stuffz | |
function book(name,author,content,date) { | |
var name = name; | |
var author = author; | |
var content = content; | |
var date = date; |
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 book(name, author, content, date) { | |
var name = name; | |
var author = author; | |
var content = content; | |
var date = date; | |
var self = { | |
findWord: function(word) { | |
return content.indexOf(word) >= 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
function book(name, author, content, date) { | |
var name = name; | |
var author = author; | |
var content = content; | |
var date = date; | |
var self = { | |
containsWord: function(word) { | |
return content.indexOf(word) >= 0; | |
}, |
OlderNewer