Last active
January 27, 2016 05:47
-
-
Save ggreer/4eb3ad61e97926e559f6 to your computer and use it in GitHub Desktop.
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"); | |
let buf = ""; | |
for (let i = 0; i < 1024 * 1024; i++) { | |
buf += Math.random() > 0.5 ? "{" : "}"; | |
} | |
fs.writeFileSync("random_braces.txt", buf); |
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
ggreer@carbon:~/Desktop% ls -la random_braces.txt | |
-rw-r--r-- 1 ggreer staff 1048576 Jan 26 21:42 random_braces.txt | |
ggreer@carbon:~/Desktop% gzip random_braces.txt | |
ggreer@carbon:~/Desktop% ls -la random_braces.txt.gz | |
-rw-r--r-- 1 ggreer staff 166809 Jan 26 21:42 random_braces.txt.gz | |
ggreer@carbon:~/Desktop% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment