Skip to content

Instantly share code, notes, and snippets.

View taskinoz's full-sized avatar

taskinoz

View GitHub Profile
// ==UserScript==
// @name Custom Dark Mode
// @namespace https://taskinoz.com
// @version 0.1
// @description A custom dark mode that activates at the times you want
// @author You
// @match https://*/*
// @grant none
// ==/UserScript==
<?php
// Better Script: https://stackoverflow.com/questions/900207/return-a-php-page-as-an-image
// open the file in a binary mode
$name = 'path/to/image.jpg';
$fp = fopen($name, 'rb');
// send the right headers
header("Content-Type: image/png");
header("Content-Length: " . filesize($name));
@taskinoz
taskinoz / speedquotes.json
Last active February 17, 2020 22:21
Speedquotes data
{
"1": "i hate speedrunner's this is not beating it this is exploting..",
"2": "Speedrunning: Dying Art",
"3": "I never get these speed runs when they have to glitch the game pointless.",
"4": "Taking chances from glitches, bad!",
"5": "Speedrunner is my mom😐😐",
"6": "its cheating and the PC version looks blurry",
"7": "Speed running is perversion of gaming, never support it",
"8": "Speedrunners ruin video games",
"9": "Who cares?? I'm sure a lot of people have done speedruns like this because. This guy ain't special 😂",
@taskinoz
taskinoz / learn.py
Last active December 9, 2019 02:43
Machine Learning with Textgenrnn
from textgenrnn import textgenrnn
import os
textgen.train_from_file('test.txt', num_epochs=1)
textgen.generate(3, temperature=1.0)
textgen.generate()
@taskinoz
taskinoz / fastany.cfg
Last active January 22, 2020 08:46
Alias swapping test fro fast any% speedrunning
// Fast Any Loads
alias "Load" "Load1"
alias "Load1" "alias Load Load2;load fastany1"
alias "Load2" "alias Load Load3;load fastany2"
alias "Load3" "alias Load Load4;load fastany3"
alias "Load4" "alias Load Load5;load fastany4"
alias "Load5" "alias Load Load6;load fastany5"
alias "Load6" "alias Load Load7;load fastany6"
alias "Load7" "alias Load Load8;load fastany7"
alias "Load8" "alias Load Load9;load fastany8"
@taskinoz
taskinoz / FormValues.html
Last active February 7, 2020 05:33
Get only the checked values from the form
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Document</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script type="text/javascript">
@taskinoz
taskinoz / index.html
Created February 20, 2020 04:00
jQuery Migrate testing script
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Test</title>
<script src="https://code.jquery.com/jquery-3.4.1.min.js" charset="utf-8"></script>
<script src="https://code.jquery.com/jquery-migrate-3.1.0.js" charset="utf-8"></script>
<script src="../jquery.expander.js" charset="utf-8"></script>
<script type="text/javascript">
$(document).ready(function(){
@taskinoz
taskinoz / TwitchSocial.html
Last active February 27, 2020 03:56
Show Twitter and Twitch icons in the bottom corners intermittently
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Social</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<style media="screen">
// General
sv_cheats "1"
// Demos
demo_enabledemos "1"
demo_writeLocalFile "1"
demo_readLocalFile "1"
demo_autoRecord "1"
// For SP demos, not quite working
@taskinoz
taskinoz / _savegame.gnut
Created September 27, 2020 14:41
Velocity Quicksaves
global function AddCallback_OnLoadSaveGame
global function CheckPoint
global function CheckPoint_Forced
global function CheckPoint_ForcedSilent
global function CheckPoint_Silent
global function RestartFromLevelTransition
global function CodeCallback_IsSaveGameSafeToCommit
global function CodeCallback_OnLoadSaveGame
global function CodeCallback_OnSavedSaveGame
global function InitSaveGame