This file contains hidden or 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
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) |
This file contains hidden or 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
// ==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== |
This file contains hidden or 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 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', |
NewerOlder