Skip to content

Instantly share code, notes, and snippets.

Avatar
🎮
stuff

Wesley donnaken15

🎮
stuff
View GitHub Profile
@donnaken15
donnaken15 / GetCharName.cs
Created Feb 20, 2019
C# Get charmap Unicode Character Name
View GetCharName.cs
using System;
using System.Runtime.InteropServices;
namespace GetCharName
{
static class Program
{
// found using IDA 6.8 Pro
// charmap loads a DLL named GetUName.dll
@donnaken15
donnaken15 / choose.cs
Created May 30, 2019
Based on GameMaker's choose. Adding this for a future C# library.
View choose.cs
static object choose(params object[] choices)
{
return choices[random.Next(0, choices.Length)];
}
@donnaken15
donnaken15 / imgaud.bat
Created May 31, 2019
FFmpeg one frame video with audio
View imgaud.bat
ffmpeg -loop_input -r (LENGTH OF ONE FRAME IN TIME OF AUDIO) -i (IMAGE) -i (AUDIO) -ac (CHANNELS) -ab (BITRATE) -ar (HZ) -shortest -y (YOUR FILE NAME)
@donnaken15
donnaken15 / YText.user.js
Last active Sep 10, 2019
YourTube %YText+ *1> | YouTube Userscript Extension
View YText.user.js
// ==UserScript==
// @name YourTube %YText+
// @namespace http://donnaken15.tk
// @version *1>
// @description Extender and extras
// @author donnaken15
// @match *://*.youtube.com/*
// @grant none
// @run-at document-end
// @downloadURL https://gist.github.com/donnaken15/3d160cc0055fb3cbc9ca489ef9a476a6
@donnaken15
donnaken15 / arrinsrem.js
Created Oct 25, 2019
Insert and remove elements at positions in an Array in Javascript
View arrinsrem.js
Array.prototype.remove = function(index) {
delete this[index];
for (var i = index + 1; i < this.length; i++)
this[i-1] = this[i];
this.pop();
}
Array.prototype.insert = function(index, value) {
this.unshift(undefined);
for (var i = 0; i < index + 1; i++)
this[i-1] = this[i];
@donnaken15
donnaken15 / webdrvtorso.asm
Created Nov 18, 2019
Webdriver Torso assembly remake attempt (no squares)
View webdrvtorso.asm
; Webdriver Torso
format PE GUI 3.1
use16
align 1
entry start
heap 0
stack 0
@donnaken15
donnaken15 / sturdyHHMMSS.js
Created Jan 6, 2020
quick hours, minutes, seconds string to float func. simply use the format 00:00:00 (.000 optional)
View sturdyHHMMSS.js
// don't know a fitting function name
function timeToFlt(val) {
val='2000-01-01T'+val+'Z';
var date=new Date(new Date(val)-(new Date()).getTimezoneOffset() * 228000);
var time=(date.getHours()*3600)+(date.getMinutes()*60)+date.getSeconds()+(date.getMilliseconds()/1000);
return time;
}
@donnaken15
donnaken15 / 000.js
Last active Jul 14, 2020
YouTube playlist video lister (50+ videos)
View 000.js
/* https://www.googleapis.com/youtube/v3/
playlistItems?playlistId=PLTWDLMN4U1FNBJll-GvoNce8PQTuXjFYh
&part=snippet&maxResults=50&pageToken=...
&key=YOUR_API_KEY */
var listcur = 0, pgtok, data, videos = new Array(), vidcnt;
getvids = function() {
for (var i = 0; i < data.items.length; i++)
{
@donnaken15
donnaken15 / exepath.bat
Last active May 30, 2020
BEGONE, .LNKS!!! use like so: (exepath kit "C:\Program...Kinesics Text Ed...\x64\kit.exe") or (exepath /r kit)
View exepath.bat
@echo off
if "%1"=="/r" goto :rem
:add
reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\%1.exe" /ve /d %2 /f
exit /b
:rem
reg delete "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\%2.exe" /f
exit /b
@donnaken15
donnaken15 / ADV.ASM
Created Jun 7, 2020
Atari Adventure Windows port in Assembly
View ADV.ASM
; ADVENTURE
; windows port by donnaken15
format PE console 3.1 at $10000
use16
align 100h
heap 0
You can’t perform that action at this time.