Skip to content

Instantly share code, notes, and snippets.

View dark-swordsman's full-sized avatar

Kyle Barr dark-swordsman

View GitHub Profile
test
@dark-swordsman
dark-swordsman / example.json
Created January 26, 2023 15:06
example JSON
{
"doe": "a deer, a female deer",
"ray": "a drop of golden sun",
"pi": 3.14159,
"xmas": true,
"french-hens": 3,
"calling-birds": [
"huey",
"dewey",
"louie",
@dark-swordsman
dark-swordsman / image-data-linter.py
Created October 5, 2022 08:22
Blender Image Auto Save on Ctrl + S
# ##### BEGIN GPL LICENSE BLOCK #####
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// ==UserScript==
// @name AnimePiracyPlace Bot
// @namespace https://gist.github.com/dark-swordsman/79f84637b6c763936424d22506323715
// @version 23
// @description Bot for r/Ianimepiracy!
// @author NoahvdAa
// @match https://www.reddit.com/r/place/*
// @match https://new.reddit.com/r/place/*
// @connect reddit.com
// @connect animepiracy.darkswordsman.com
@dark-swordsman
dark-swordsman / place-ap.user.js
Last active April 4, 2022 05:45
animepiracy auto place
// ==UserScript==
// @name AP Bot (from PlaceNL)
// @namespace https://github.com/PlaceNL/Bot
// @version 22
// @description De bot voor PlaceNL!
// @author NoahvdAa, dark-swordsman
// @match https://www.reddit.com/r/place/*
// @match https://new.reddit.com/r/place/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @require https://cdn.jsdelivr.net/npm/toastify-js
@dark-swordsman
dark-swordsman / ap_tamper_script.user.js
Last active April 3, 2022 21:01
r/animepiracy tampermonkey script
// ==UserScript==
// @name ap
// @namespace http://tampermonkey.net/
// @version 1.0
// @description try to take over the canvas!
// @author dark
// @match https://hot-potato.reddit.com/embed*
// @icon https://www.google.com/s2/favicons?sz=64&domain=reddit.com
// @grant none
// ==/UserScript==
# REGISTER DIRECTORY
# $t0 array length persist
# $t1 stack pointer address persist
# $t2 current index
# $t3 current address
# $t4 base number temp
# $t5 next number temp
# $t6 temporary number temp
# $t7 bubble sort -1 index limit
# $t8 swap true or false
@dark-swordsman
dark-swordsman / clock.js
Created April 29, 2017 19:25
Clock Function
var t = document.getElementById("currentTime");
function updateTime(){
var currentTime = new Date();
var hours = currentTime.getHours();
var minutes = currentTime.getMinutes();
var seconds = currentTime.getSeconds();
// if hours is in the PM, make it non-military
if(hours > 12){
var d_hours = hours - 12;