Skip to content

Instantly share code, notes, and snippets.

View HenriBeck's full-sized avatar
💭
💻

Henri Beck HenriBeck

💭
💻
View GitHub Profile
firstDuplicate :: [Int] -> Int
firstDuplicate xs = checkDuplicates xs []
checkDuplicates :: [Int] -> [Int] -> Int
checkDuplicates (x:[]) f = if elem x f then x else -1
checkDuplicates (x:xs) f = if elem x f then x else checkDuplicates xs (x:f)
@HenriBeck
HenriBeck / plugin.js
Last active October 4, 2017 21:27
TF2Center remove ads
// ==UserScript==
// @name TF2Center remove ads
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Remove the ads from tf2center without getting redirected to /adblock
// @author Henri Beck (kampfkeks)
// @match https://tf2center.com/*
// @grant none
// ==/UserScript==
@HenriBeck
HenriBeck / authentication.js
Last active March 9, 2017 00:08
Feathers authentication
import auth from 'feathers-authentication';
import SteamStrategy from 'passport-steam';
export default function authentication() {
const that = this;
const options = {
secret: 'supersecret',
cookie: {
enabled: true,
name: 'feathers-jwt',