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
| console.log("helloworld"); |
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
| //key is Q89RW8U7CR3LC2AL | |
| var ctx = document.getElementById("myChart").getContext("2d"); | |
| var myChart = new Chart(ctx, { | |
| type: "line", | |
| data: { | |
| labels: [], | |
| datasets: [ | |
| { | |
| label: "", |
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
| It is a truth universally acknowledged, that a single man in possession | |
| of a good fortune, must be in want of a wife. | |
| However little known the feelings or views of such a man may be on his | |
| first entering a neighbourhood, this truth is so well fixed in the minds | |
| of the surrounding families, that he is considered the rightful property | |
| of some one or other of their daughters. | |
| “My dear Mr. Bennet,” said his lady to him one day, “have you heard that | |
| Netherfield Park is let at last?” |
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 fs = require("fs"); | |
| var text; | |
| var markovChain = {}; | |
| var file = "sampleText.txt"; | |
| start(); | |
| function start() { | |
| fs.readFile(file, "utf8", function(err, data) { | |
| if (err) throw err; | |
| var text = data |
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
| { | |
| i: { // most frequent | |
| freq: 104530, | |
| t: 13167, | |
| s: 14064, | |
| v: 2299, | |
| n: 30238, | |
| o: 4435, | |
| f: 2176, | |
| e: 3570, |
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
| ["c","w","b","m","f","g","l","d","u","y", | |
| "n","h","r","o","i","s","e","t","a", | |
| "v","q","j","k","x","z","p"] |
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 fs = require("fs"); | |
| var file = "sampleText.txt"; | |
| var text; | |
| var qwerty = ["q","w","e","r","t","y","u","i","o","p", | |
| "a","s","d","f","g","h","j","k","l", | |
| "z","x","c","v","b","n","m"]; | |
| var mine = ["c","w","b","m","f","g","l","d","u","y", | |
| "n","h","r","o","i","s","e","t","a", |
This file has been truncated, but you can view the full file.
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
| From fairest creatures we desire increase, | |
| That thereby beauty's rose might never die, | |
| But as the riper should by time decease, | |
| His tender heir might bear his memory: | |
| But thou contracted to thine own bright eyes, | |
| Feed'st thy light's flame with self-substantial fuel, | |
| Making a famine where abundance lies, | |
| Thy self thy foe, to thy sweet self too cruel: | |
| Thou that art now the world's fresh ornament, | |
| And only herald to the gaudy spring, |
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 https = require("https"); | |
| const symbols = ["TWLO", "SQ", "FB"]; | |
| async function getResponse() { | |
| var results = await fetchSymbolData(); | |
| var now = new Date(); | |
| var hours = now.getHours(); | |
| var minutes = now.getMinutes(); | |
| var output = ""; |
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 https = require("https"); | |
| const symbols = ["TWLO", "SQ", "FB"]; | |
| module.exports = { | |
| getResponse: async function getResponse() { | |
| var results = await fetchSymbolData(); | |
| var now = new Date(); | |
| var hours = now.getHours(); | |
| var minutes = now.getMinutes(); |
OlderNewer