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
/** | |
* A function that will create an audio context that fixes | |
* the iOS sample rate mismatch bug | |
* | |
* Author: Aaron George https://github.com/aarongeorge | |
*/ | |
// Create Audio Context | |
const createAudioContext = (desiredSampleRate = 44100) => { | |
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
/** | |
* Invisible Code Generator | |
* | |
* Description: | |
* A code generator that takes Javascript and compiles it to | |
* ASCII Control Characters that are not visible | |
* | |
* Usage: | |
* Copy and paste the code into your browsers console | |
* Then paste the code you wish to convert to "Invisible Code" |
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
const modifyDate = (date: Date, options: {[key in 'years' | 'months' | 'weeks' | 'days' | 'hours' | 'minutes' | 'seconds' | 'milliseconds']?: number} = {}) => { | |
const modifiedDate = new Date(date) | |
if (options.years) modifiedDate.setFullYear(modifiedDate.getFullYear() + options.years) | |
if (options.months) modifiedDate.setMonth(modifiedDate.getMonth() + options.months) | |
if (options.weeks) modifiedDate.setDate(modifiedDate.getDate() + options.weeks * 7) | |
if (options.days) modifiedDate.setDate(modifiedDate.getDate() + options.days) | |
if (options.hours) modifiedDate.setHours(modifiedDate.getHours() + options.hours) | |
if (options.minutes) modifiedDate.setMinutes(modifiedDate.getMinutes() + options.minutes) | |
if (options.seconds) modifiedDate.setSeconds(modifiedDate.getSeconds() + options.seconds) |
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
const timeNow = new Date() | |
const payload = { | |
iss: 'http://backend.com', // Issuer - Identifier of who provided this JWT | |
sub: 'uniqueIdOfUser', // Subject - Who is supposed to be using this JWT (The value should mean something for `aud`) | |
aud: ['http://frontend.com', 'http://backend.com'], // Audience - Who should be consuming this JWT | |
exp: new Date(new Date(timeNow).setDate(timeNow.getDate() + 7).getTime(), // Expiration Time - When this JWT should no longer be accepted by the `aud` | |
nbf: timeNow.getTime(), // Not Before - When this JWT should start being accepted by the `aud` | |
iat: timeNow.getTime(), // Issued At - When this JWT was issued | |
jti: 'uniqueIdForThisJWT' // JWT ID - Unique ID that the `aud` can use to blacklist/whitelist the JWT even if `exp` and `nbf` requirements are met |
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
const ranges = [ | |
{ | |
'start': 6, | |
'end': 8 | |
}, | |
{ | |
'start': 3, | |
'end': 6 | |
}, | |
{ |
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
module.exports = { | |
'env': { | |
'browser': true, | |
'es6': true, | |
'node': true | |
}, | |
'parserOptions': { | |
'allowImportExportEverywhere': false, | |
'babelOptions': { | |
'configFile': './babel.config.js' |
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
--- Input --- | |
Game: CS | |
DPI: 400 | |
Resolution: 3440x1440 | |
Sensitivity: 4 | |
360 Distance: 10.2273 inches | |
--- Calculated --- |
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
{ | |
"rules": { | |
"at-rule-blacklist": [], | |
"at-rule-empty-line-before": [ | |
"always", | |
{ | |
"except": [ | |
"after-same-name", | |
"first-nested" | |
], |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>HTML5 Blank Page</title> | |
<meta name="description" content=""> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<!-- Styles --> |