Skip to content

Instantly share code, notes, and snippets.

Tobias Graf 42tg

Block or report user

Report or block 42tg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View .gitconfig
tool = vscode
prompt = false
[difftool "vscode"]
cmd = \"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"$LOCAL\" \"$REMOTE\" --diff --wait
trustExitCode = false
42tg / cloudSettings
Created Nov 26, 2018
Visual Studio Code Settings Sync Gist
View cloudSettings
42tg / vigenere-cipher.js
Created Nov 26, 2018
Quick encrypt and decrypt methods für vigenere ciper
View vigenere-cipher.js
const Alphabet = `ABCDEFGHIJKLMNOPQRSTUVWXYZ`.split("");
const isEqualWith = key => v => key === v;
const matchKeyWithText = (key, text) =>
.map((_, i) => key[i % key.length])
const decode = key => text => {
42tg / config.json
Created Nov 23, 2018
Quokka config backup
View config.json
"pro": true,
"plugins": ["jsdom-quokka-plugin"],
"babel": {
"presets": ["@babel/preset-env"],
"plugins": [
42tg / decryptHerzByHand.js
Last active Nov 23, 2018
Herz Decrypt cipher
View decryptHerzByHand.js
import text from "./decryptext";
import chalk from "chalk";
const isAscii = x => {
if (x.match(/[a-zA-Z0-9]/)) return true;
return false;
//calculate Average character frequency
const frequency = {};
const strippedText = text.split("").filter(isAscii); => {
42tg / wallaby.js
Created Oct 16, 2018
Basic Jest config
View wallaby.js
module.exports = function (wallaby) {
return {
files: [
{ pattern: 'node_modules/babel-polyfill/dist/polyfill.js', instrument: false },
You can’t perform that action at this time.