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', |
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
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
// Importieren des FileSystem module | |
const fs = require('fs'); | |
// Zum lesen einer Datei: | |
const datei = fs.readFileSync(pfad, 'utf-8'); | |
// Zum schreiben in eine Datei: | |
// Hierbei wird die komplette Datei überschrieben! | |
fs.writeFileSync(pfad, neuerContent, 'utf-8'); |
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
public class Grp45_ueb01 { | |
public static void main(String[] args) { | |
final int MIN = -1000; | |
final int MAX = 25; | |
final int DIGIT_COUNT = getDigitCount(MAX); | |
for (int i = MIN; i <= MAX; i++) { | |
boolean isSmithNumber = Grp45_ueb01.isSmithNumber(i); | |
boolean isFermatNumber = Grp45_ueb01.isFermatNumber(i, 0); | |
boolean isCatalanNumber = Grp45_ueb01.isCatalanNumber(i, 0); |
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
// @flow strict-local | |
import { | |
type ComponentType, | |
type ElementConfig | |
} from 'react'; | |
import type Jss from '../../packages/webapp/node_modules/jss/src/Jss'; | |
import type SheetsRegistry from '../../packages/webapp/node_modules/jss/src/SheetsRegistry'; | |
import { type generateClassName } from '../../packages/webapp/node_modules/jss/src/types/jss'; |
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
// .prettierrc.js | |
module.exports = { | |
printWidth: 120, | |
useTabs: true, | |
semi: true, | |
singleQuote: true, | |
trailingComma: 'all', | |
bracketSpacing: true, | |
jsxBracketSameLine: false, | |
// Might have some problems with this one because of eslint |
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
String t() { | |
try { | |
return "try"; | |
} finally { | |
return "finally"; | |
} | |
} | |
void main() { | |
print(t()); |
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
abstract class State {} | |
class StateA implements State { | |
StateA({this.name = "Hello"}); | |
final String name; | |
} | |
class StateB implements State {} | |
class StateHandlerNotWorking { |
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
abstract class State {} | |
class StateA implements State {} | |
final state = StateA(); | |
void main() { | |
print(state is State); | |
} |
OlderNewer