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
| save-exact=true | |
| package-lock=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
| var data = [{ | |
| active: false, | |
| lastName: 'johnson' | |
| }, { | |
| active: true, | |
| lastName: 'wow' | |
| }, { | |
| active: false, | |
| lastName: 'awesome' | |
| }, { |
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 http = require('http'); | |
| const port = 3000; | |
| const hostname = '127.0.0.1'; | |
| const max = 25; | |
| const delay = 200; | |
| const htmlOpen = ` | |
| <!DOCTYPE html> | |
| <html> | |
| <head> |
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 alpine | |
| RUN apk --update add openssl wget && \ | |
| # cleanup | |
| rm -rf /var/cache/apk/* |
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('something'); | |
| const _ = require('lodash'); | |
| const { assert } = require('chai'); | |
| const SAMPLE_RULES_BLOCK = [ | |
| ['103.1.108.1','AU'], | |
| ['3.254.254.254','US'], | |
| ['5.10.64.17','CN'], | |
| ['0.0.0.0-0.12.13.14','FR'], | |
| ['209.88.2.2-209.88.2.255','AZ'], |
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
| import http.client | |
| BAD_REQUEST = http.client.BAD_REQUEST | |
| FORBIDDEN = http.client.FORBIDDEN | |
| FOUND = http.client.FOUND | |
| NOT_FOUND = http.client.NOT_FOUND | |
| OK = http.client.OK | |
| UNPROCESSABLE_ENTITY = http.client.UNPROCESSABLE_ENTITY |
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
| // bare minimum promise implementation | |
| function promise() { | |
| // the promise caller will pass these along in `then` | |
| this.successFn = function() {}; | |
| this.errorFn = function() {}; | |
| } | |
| promise.prototype.resolve = function(result) { | |
| this.successFn(result); | |
| }; |
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 itemClass = 'title clamp-2'; | |
| printItems(); | |
| function printItems() { | |
| const items = document.getElementsByClassName(itemClass); | |
| const uniq = []; | |
| let 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
| { | |
| "schema_version": "2.0", | |
| "packages": [ | |
| { | |
| "name": "Sublime-JSHint-05-2019", | |
| "details": "https://github.com/joewright/Sublime-JSHint", | |
| "releases": [ | |
| { | |
| "sublime_text": "*", | |
| "details": "https://github.com/joewright/Sublime-JSHint", |
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
| asyncAwaitTest(); | |
| async function asyncAwaitTest() { | |
| let result1, result2, result3, results; | |
| try { | |
| result1 = promise1(); | |
| result2 = promise2(); | |
| result3 = promise3(); | |
| results = [await result1, await result2, await result3]; | |
| } catch(err) { |