This file contains hidden or 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> | |
<body> | |
<script src="https://gist.githubusercontent.com/levymoreira/6d22c037e011223d999d81837fae6e12/raw/bc11cbcdb416979fa4b4d51a0f0b93b0032dadba/test.js"> | |
</script> | |
</body> | |
</html> |
This file contains hidden or 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
alert('iframe test js '); |
This file contains hidden or 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 bitcore = require('bitcore-lib'); | |
var Transaction = bitcore.Transaction; | |
var explorers = require('bitcore-explorers'); | |
var bitcoinaddress = require('bitcoinaddress'); | |
var c2p = require('callback-promise'); | |
const insight = new explorers.Insight('testnet'); | |
var privateKey = bitcore.PrivateKey.fromWIF('cW4r4rajDoKwpEgRPkyF7w7HLaZ7R9zBEDwHtVf2RR1EyBCggESB'); |
This file contains hidden or 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 bitcoin = require("bitcoinjs-lib"); | |
var axios = require("axios"); | |
const TestNet = bitcoin.networks.testnet; | |
// https://testnet.manu.backend.hamburg/faucet | |
// https://testnet.coinfaucet.eu/en/ | |
// https://testnet.blockexplorer.com/address/n2AxiA2Fd7y4spAciPXKUxKFpEPezpyRzR | |
const run = async () => { |
This file contains hidden or 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 _ = require('underscore'); | |
class Node { | |
constructor(id, value, adjacent) { | |
this.id = id; | |
this.value = value; | |
this.adjacent = adjacent; | |
} |
This file contains hidden or 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
class Node { | |
constructor(id, value, adjacent) { | |
this.id = id; | |
this.value = value; | |
this.adjacent = adjacent; | |
} | |
} |
This file contains hidden or 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 _ = require('underscore'); | |
class FindSum { | |
// O(n) | |
find(arr, totalSum) { | |
const m = new Map(); | |
// O(n) | |
arr.forEach((value) => { |
This file contains hidden or 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 _ = require('underscore'); | |
class MergeSort { | |
sort(arr) { | |
if(arr.length === 1) { | |
return arr; | |
} | |
const half = Math.floor(arr.length / 2); |
This file contains hidden or 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
class Matrix { | |
constructor() { | |
this.matrix = [ | |
[false, false, false, false], | |
[false, true, false, false], | |
[false, true, false, false], | |
[false, false, false, false] | |
]; | |
} |
This file contains hidden or 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
class Node { | |
constructor(char, isWordComplete = false) { | |
this.char = char; | |
this.isWordComplete = isWordComplete; | |
this.children = new Map(); // Map<char, Node> | |
} | |
} |
NewerOlder