Skip to content

Instantly share code, notes, and snippets.

View Felk's full-sized avatar
👑

Felix König Felk

👑
  • Germany
View GitHub Profile
@Felk
Felk / ajax_request_handler.php
Created July 10, 2016 02:00
OCS V0.74 ajax_request_handler
<?php
ob_start();
date_default_timezone_set('Europe/Berlin');
header('content-type: text/html; charset=UTF-8');
error_reporting(E_ALL ^ E_NOTICE);
session_start();
if (get_magic_quotes_gpc()) {
function stripslashes_deep($value) {

Twitch Plays Pokémon Inputsystem ideas for gen1 and gen2 games (potentially for Prism)

By: Chauzu / Addarash

Underlying justification:

TPP is best enjoyed in anarchy, and it is what made TPP what it is today. As people have decreased though, some stuff possible to be brute forced in anarchy are considerably more time consuming nowadays. It can be seen as a "rng lottery": you need a set number of correct inputs to achieve a goal and any input not part of the set required either starts you over from the beginning, or sets you back, as you - for example - leave a menu and need to get back into it. One reason why some stuff that used to be mundane task have become more time consuming is less inputs in general, which means the "rng lottery" takes more time on avarage until you hit the jackpot. Another reason is that if someone spams an input not part of the inputs needed in the "rng lottery", it actively prolongs the progress.

This is what we can call a time sink - or "frustration features" - and it is

package de.hsrm.swtpro2015.network;
import java.util.List;
import java.util.logging.Logger;
import javax.jms.Connection;
import javax.jms.Destination;
import javax.jms.JMSException;
import javax.jms.MessageConsumer;
import javax.jms.MessageProducer;
[
{
"platform": "gb",
"timestamp": "2017-02-09 21:41:07.539000",
"rom_name": "Madden '95 (UE) [S][!].gb",
"flags": [
"S",
"!"
],
"name": "Madden '95 (UE)"
Madden '95 (UE), gb, started at 2017-02-09 21:41:07.539000
Street Racer (U), gb, started at 2017-02-09 21:46:03.818000
Lucky Luke (U) (M4), gbc, started at 2017-02-09 21:47:41.679000
Monster Rancher Battle Card GB (U), gbc, started at 2017-02-09 21:51:03.839000
College Slam (U), gb, started at 2017-02-09 22:01:03.908000
WWF WrestleMania 2000 (U), gbc, started at 2017-02-09 22:06:03.933000
Max (UE), gb, started at 2017-02-09 22:07:53.578000
Aladdin (U), gb, started at 2017-02-09 22:12:49.830000
Star Wars - Super Return of the Jedi (U), gb, started at 2017-02-09 22:17:49.863000
Lost World, The - Jurassic Park (U), gb, started at 2017-02-09 22:22:49.880000
# 1: Addarash1 $ 13,661,422
# 2: axieu $ 5,544,383
# 3: RoysOurKing $ 5,460,577
# 4: Sandoz1 $ 3,798,447
# 5: DeadOpsArcadeCafe $ 3,509,790
# 6: boombafunk $ 3,323,819
# 7: Egobuff $ 2,151,330
# 8: Mencee $ 2,139,215
# 9: twisparkz $ 2,121,228
# 10: Hexate3 $ 2,081,331
package de.soptim.egon;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.ListIterator;
public class LinkedHashSetList<T> extends LinkedHashSet<T> implements List<T> {
/** Usage:
* final BytecodeClassLoader classLoader = new BytecodeClassLoader(bytecode);
* final Class<?> newClass = classLoader.loadClass("com.example.SomeClass");
*/
public class BytecodeClassLoader extends ClassLoader {
private byte[] bytes;
public BytecodeClassLoader(byte[] bytes) {
super();
this.bytes = bytes;
@Felk
Felk / ffmpeg_example.py
Last active May 21, 2020 20:24
example of lightweight ffmpeg wrapper in python
pipeline = ffmpeg.Pipeline()
silence, = pipeline.input(Filter("aevalsrc", 0, 1, filter_options=[ # using anullsrc corrupts the audio
"0", "channel_layout=stereo", "sample_rate=44100"
]))
color, = pipeline.input(Filter("color", 0, 1, filter_options=[
"color=0x009999",
"duration=" + str(duration),
"rate=" + str(config.framerate),
"size=1920x1080",
]))
This file has been truncated, but you can view the full file.
{
"_id" : 36030,
"bets" : [],
"feed" : [
[
ISODate("2020-01-19T13:20:40.237Z"),
"Blue's MANKEY used Endeavor!"
],
[
ISODate("2020-01-19T13:20:43.691Z"),