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
diff --git a/node_modules/lodash-webpack-plugin/lib/index.js b/node_modules/lodash-webpack-plugin/lib/index.js | |
index d791223..2aca193 100644 | |
--- a/node_modules/lodash-webpack-plugin/lib/index.js | |
+++ b/node_modules/lodash-webpack-plugin/lib/index.js | |
@@ -84,13 +84,17 @@ function () { | |
/* Webpack >= 4 */ | |
if (compiler.hooks) { | |
+ const webpackVersion = parseInt(require('webpack/package.json').version, 10) | |
+ |
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
#! /usr/bin/env bash | |
#################################################### | |
# Required Libraries | |
# | |
# library name | commands used | verified version | |
# ------------------------------------------------ | |
# ffmpeg | ffmpeg/ffprobe | 3.1.4 3.2 | |
# gpac | mp4box | 0.6.1 | |
# mp4v2 | mp4chaps | 2.0.0 |
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 { LoginTicket, OAuth2Client, TokenPayload } from "google-auth-library"; | |
const mockTokenPayload: TokenPayload = { | |
//... | |
} | |
const mockVerifyIdToken = ({ | |
idToken, | |
}: { | |
idToken: string; |
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 HtmlWebpackInlineSourcePlugin = require("html-webpack-inline-source-plugin"); | |
const HtmlWebpackPlugin = require("html-webpack-plugin"); | |
const path = require("path"); | |
module.exports = (env, argv) => ({ | |
mode: argv.mode === "production" ? "production" : "development", | |
// This is necessary because Figma's 'eval' works differently than normal eval | |
devtool: argv.mode === "production" ? false : "inline-source-map", |
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 bucket = admin.storage().bucket(testEnv.storageBucket); | |
const file = bucket.file(mockObject.name); | |
const contents = JSON.stringify(mockObject, null, 2); | |
file.save(contents, function(err) { | |
if (!err) { | |
// file written | |
} | |
}); |
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
// Turn on Developer Mode under User Settings > Appearance > Developer Mode (at the bottom) | |
// Then open the channel you wish to delete all of the messages (could be a DM) and click the three dots on the far right. | |
// Click "Copy ID" and paste that instead of LAST_MESSAGE_ID. | |
// Copy / paste the below script into the JavaScript console. | |
// If you're in a DM you will receive a 403 error for every message the other user sent (you don't have permission to delete their messages). | |
var before = 'LAST_MESSAGE_ID'; | |
clearMessages = function(){ | |
const authToken = document.body.appendChild(document.createElement`iframe`).contentWindow.localStorage.token.replace(/"/g, ""); | |
const channel = window.location.href.split('/').pop(); |
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
create2DArray(rows, columns) { | |
var x = new Array(rows); | |
for (var i = 0; i < rows; i++) { | |
x[i] = new Array(columns); | |
} | |
return x; | |
} |
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
#!/bin/bash | |
parentdir="$(dirname `pwd`)/games/" | |
for i in $parentdir*; do | |
for a in \\ \| \/ -; do echo -en "\r$a"; sleep 0.05; done; | |
hashed=$(node schemaHash.js $i); | |
rm -r $i/schema-*/ 2> /dev/null | |
mkdir -p $i/schema-$hashed/{en,de}; | |
cp $i/data-de-latest.json $i/schema-$hashed/de/data-de-latest.json; | |
cp $i/data-en-latest.json $i/schema-$hashed/en/data-en-latest.json; | |
done |
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
__author__ = 'ecklf' | |
# IMPORT | |
import random | |
# VAR | |
random.seed() | |
radius = 424242 | |
loops = 10000 | |
counter = 0 |
NewerOlder