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
{ | |
"AuxAudioDevice1": { | |
"balance": 0.5, | |
"deinterlace_field_order": 0, | |
"deinterlace_mode": 0, | |
"enabled": true, | |
"flags": 0, | |
"hotkeys": { | |
"libobs.mute": [], | |
"libobs.push-to-mute": [], |
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
import querystring from "querystring"; | |
import cheerio from "cheerio"; | |
import rangeParser from "parse-numeric-range"; | |
import request from "request-promise"; | |
import visit from "async-unist-util-visit"; | |
// default base url | |
const baseUrl = "https://gist.github.com"; |
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
( | |
'b' + // String "b" - "b" | |
'a' + // String "a" - "ba" | |
+'a' + // NaN - "baNaN" | |
'a' + // String "a" - "baNaNa" | |
's' | |
) // String "s" - "baNaNas" | |
.toLowerCase(); // - "bananas" | |
| |
Output: 'bananas'; |
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
// _ _ _ _ | |
// /7_ __ _//_ _ _// __ /7 _ _ __ ,'/,' \ ,' \ ,' \ | |
// / \\V /,'o///7,'o| ,'o/,'o///,'o|\V / /// 0 // 0 // 0 / | |
// /n_/ )/|__/// |_,' |__/ |_(// |_,7 )/ // \_,' \_,' \_,' | |
// // // | |
// adam hammad | |
// SETUP LIBRARIES |
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 AWS = require("aws-sdk"); | |
const dynamo = new AWS.DynamoDB.DocumentClient(); | |
const CONNECTION_DB_TABLE = process.env.CONNECTION_DB_TABLE; | |
const successfullResponse = { | |
statusCode: 200, | |
body: "Success", |