Skip to content

Instantly share code, notes, and snippets.

View SYZYGY-DEV333's full-sized avatar

SYZYGY-DEV333 SYZYGY-DEV333

View GitHub Profile
@SYZYGY-DEV333
SYZYGY-DEV333 / palindrome.go
Last active October 17, 2019 00:47
create a palindrome from a number by reversing digits and adding
package main
import (
"strconv";
"reflect"
)
func intToSlice(num int) ([]int) {
str := strconv.Itoa(num)
var nums []int
@SYZYGY-DEV333
SYZYGY-DEV333 / trongle.js
Created October 30, 2019 17:59
very bad ai for 9007199254740992
var x = 0;
var active = true;
var prev = JSON.stringify(GM.grid.cells);
function moved() {
if (prev == JSON.stringify(GM.grid.cells)) {
prev = JSON.stringify(GM.grid.cells);
return false
} else {
@SYZYGY-DEV333
SYZYGY-DEV333 / hover.lua
Created July 17, 2020 22:10
A hover script for KSP using RedOnion
window=new(ui.Window,"Hover Dialog",ui.Layout.Vertical)
window.ChildAnchors=ui.Anchors.Fill
hovering = false
target_alt = 0
target_vs = 0
old_throttle = ship.throttle
window.Add(new(ui.Button,"Start Hover",function()
@SYZYGY-DEV333
SYZYGY-DEV333 / pipeorganinfo.py
Created January 4, 2021 17:56
A really crude scraper for pipeorgandatabase.org
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# Pipe Organ Database Stoplist Scraper
license = '''
Copyright 2021 Joshua Sobel
Permission is hereby granted, free of charge, to any person obtaining a copy of this software
and associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,