Skip to content

Instantly share code, notes, and snippets.

#I want to write a module that can make writing these less of an eyesore.
#But until then here's hell
#Megalovania (Toby Fox)
#Messily transcribed from this: https://www.noteflight.com/scores/view/855ad019ee2b37e2926b204d194c882426da49ad
#I'm gonna be honest I got bored near the end and kind of did my own thing.
import pyautogui
from time import sleep
from keybind import * #the devil
# I had 300 lockboxes to open and didn't want to wear out a keyswitch.
import pyautogui, time
while True:
pyautogui.press('num0')
time.sleep(0.5)
@CptKirklnd
CptKirklnd / ll.c
Created August 26, 2015 18:37
That OTHER time I had to write a linked list in C.
#include <stdio.h>
#include <stdlib.h>
//very simple linked list struct
struct ll {
int x;
//Add pointer info
struct ll *next;
struct ll *prev;
};
@CptKirklnd
CptKirklnd / gist:8dab9680497b82c825fe
Created April 14, 2015 22:06
Google Maps Geocode API Test
#testing an address search in the Google Maps Geocode API before using it in our BitCamp 2015 project
#http://maps.googleapis.com/maps/api/geocode/output?parameters
#using keyword paramters (street name, parsed in the superior script), rankby (distance)
import requests
import json
outputFormat = "json"
queryRoot = "https://maps.googleapis.com/maps/api/geocode/"
@CptKirklnd
CptKirklnd / tesTime.py
Created March 19, 2015 01:08
TES Date Converter
import datetime
def tesTime(startYear, realStartYear, era):
#converts the current date to Tamrielic date and time
#originally written in JS for a blog so the year updates based on the in-universse
#year you want to use and it's real world "equivalent"
#these, and the era you want are fed in as arguments
t = datetime.datetime.now()
#dict for each of the Tamerielic months
months = ["Morning Star", "Sun's Dawn", "First Seed", "Midyear", "Sun's Height",
"Last Seed", "Hearthfire", "Frostfall", "Sun's Dusk", "Evening Star"]
@CptKirklnd
CptKirklnd / statroll.py
Created February 10, 2015 02:31
D&D Stat Roller
from random import randint
statList = [] #the stored list of computed ability scores
statConpList = [] #the stored list of the conponents that went into the score
for y in range (0,6):
stat = []
for x in range(0,4):
stat.append(randint(1,6))
#print stat TESTING PURPOSES
statConpList.append(stat)