Skip to content

Instantly share code, notes, and snippets.

Avatar

taskinoz

View GitHub Profile
View ReturnImage.php
<?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));
View CustomdarkMode.user.js
// ==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==
@taskinoz
taskinoz / learn.py
Last active Dec 9, 2019
Machine Learning with Textgenrnn
View learn.py
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 Jan 22, 2020
Alias swapping test fro fast any% speedrunning
View fastany.cfg
// 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 Feb 7, 2020
Get only the checked values from the form
View FormValues.html
<!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 / speedquotes.json
Last active Feb 17, 2020
Speedquotes data
View speedquotes.json
{
"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 / index.html
Created Feb 20, 2020
jQuery Migrate testing script
View index.html
<!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 Feb 27, 2020
Show Twitter and Twitch icons in the bottom corners intermittently
View TwitchSocial.html
<!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">
View TitanfallDemo.cfg
// 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 Sep 27, 2020
Velocity Quicksaves
View _savegame.gnut
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
You can’t perform that action at this time.