Skip to content

Instantly share code, notes, and snippets.

View obs olomouc
{
"AuxAudioDevice1": {
"balance": 0.5,
"deinterlace_field_order": 0,
"deinterlace_mode": 0,
"enabled": true,
"flags": 0,
"hotkeys": {
"libobs.mute": [],
"libobs.push-to-mute": [],
@botoxparty
botoxparty / index.js
Last active Apr 17, 2020
gatsby-remark-embed-gist filter-by-lines
View index.js
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";
View bananas.js
(
'b' + // String "b" - "b"
'a' + // String "a" - "ba"
+'a' + // NaN - "baNaN"
'a' + // String "a" - "baNaNa"
's'
) // String "s" - "baNaNas"
.toLowerCase(); // - "bananas"
Output: 'bananas';
@botoxparty
botoxparty / hydro-delay-1000.ino
Last active Apr 14, 2020
Pounding System - Hydro Delay 1000
View hydro-delay-1000.ino
// _ _ _ _
// /7_ __ _//_ _ _// __ /7 _ _ __ ,'/,' \ ,' \ ,' \
// / \\V /,'o///7,'o| ,'o/,'o///,'o|\V / /// 0 // 0 // 0 /
// /n_/ )/|__/// |_,' |__/ |_(// |_,7 )/ // \_,' \_,' \_,'
// // //
// adam hammad
// SETUP LIBRARIES
@botoxparty
botoxparty / handler.js
Last active Apr 12, 2020
Serverless WebSocket Server Example
View handler.js
"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",