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.time("blocked"); (async () => Array(10).fill(1).forEach(() => require("crypto").randomBytes(512 * 10 ** 6)))(); console.timeLog("blocked"); |
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
| delete from sqlite_sequence; |
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
| <table id="object_datatable" class="display"> | |
| <thead> | |
| <tr> | |
| <% Object.keys(dataList[0]).forEach(function(dataColumnName) { %> | |
| <th><%= dataColumnName %></th> | |
| <% }); %> | |
| </tr> | |
| </thead> | |
| <tbody> | |
| <% dataList.forEach(function(dataRow) { %> |
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
| "xo": { | |
| "space": 4, | |
| "semicolon": true, | |
| "prettier": true, | |
| "rules": { | |
| "max-params": "off" | |
| } | |
| }, | |
| "prettier": { | |
| "tabWidth": 4, |
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
| # Created 4/11/19, 5:45 PM | |
| import csv | |
| from argparse import ArgumentParser | |
| parser = ArgumentParser() | |
| parser.add_argument("-f", "--file", dest="filename", | |
| help="read Pandorabots logs from FILE", metavar="FILE") | |
| args = parser.parse_args() | |
| log_filename = args.filename |
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
| // <start params block> | |
| // This is the integer we'll convert to binary | |
| var decimalValue = 11; | |
| // <end params block> | |
| // We'll divide by 2 in each iteration | |
| const divisor = 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
| // <start params block> | |
| // This is the binary string we'll convert to decimal | |
| var binaryValue = "1011"; | |
| // <end params block> | |
| // A empty variable that will soon store the result of the computations | |
| var decimalValue = 0; |
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 twitter import Api | |
| import keys | |
| CONSUMER_KEY = keys.consumer_key #replace these... | |
| CONSUMER_SECRET = keys.consumer_secret | |
| ACCESS_TOKEN = keys.access_token_key | |
| ACCESS_TOKEN_SECRET = keys.access_token_secret | |
| api = Api(CONSUMER_KEY, | |
| CONSUMER_SECRET, | |
| ACCESS_TOKEN, |
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
| Installation: | |
| Step 1: Set up your software's homepage using an HTML5 a tag with the download attribute and no href attribute. | |
| Step 2: In the root of your master branch, create a file called latest.txt that contains just one line: the latest release tag. | |
| Step 3: After including the script in your page, call loadVersion() with all the parameters. | |
| Step 4: Enjoy! The latest release's link will be served to your website, as long as you update latest.txt. | |
| Breakdown of Parameters for loadVersion(): | |
| devname: The Github account name associated with the repository. | |
| reponame: The name of the repository. | |
| filename: The name of the downloadable file associated with all the current and future releases. | |
| downloadlinkid: The HTML id of the download link on the website. |