Skip to content

Instantly share code, notes, and snippets.

@prophetgoddess
prophetgoddess / glitch_gif.py
Created October 28, 2017 17:42
python script to glitch gifs
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
'''
Copyright (c) 2017 Emma Lugo
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, and/or sell
@prophetgoddess
prophetgoddess / LICENSE.txt
Last active September 25, 2017 01:48
Generates short piano compositions with cellular automata and saves them in MIDI format.
Copyright (c) 2017 Emma Lugo
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, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
@prophetgoddess
prophetgoddess / GameManager.cs
Created January 25, 2017 04:51
song loader from AUDIOCHROMA
IEnumerator GetSongs() {
songs = new List<AudioClip>();
string path = Application.dataPath;
path = Directory.GetParent(path).ToString();
path = path += "/Songs";
if (Directory.Exists(path)) {
string[] songFilePaths = Directory.GetFiles(path);
foreach (string filePath in songFilePaths) {
string fileName = Path.GetFileNameWithoutExtension(filePath);
@prophetgoddess
prophetgoddess / HSVColor.cs
Last active August 29, 2015 14:17
#freecodefriday 3/20/15
using UnityEngine;
using System.Collections;
/*
Copyright (c) 2015 Lycaon
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, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
@prophetgoddess
prophetgoddess / pixelsort.py
Last active June 13, 2024 01:40
Python pixel sorting.
# The MIT License (MIT)
# Copyright (c) 2014 Lycaon (lycaon.me)
# 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, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
ROT = require("/src/rot")
require("camera")
require("randomlua")
cameraX = 0
cameraY = 0
p = false
Eupdate = false
@prophetgoddess
prophetgoddess / enemyScore.cs
Created June 1, 2013 22:23
Source for Pong
using UnityEngine;
using System.Collections;
public class enemyScore : MonoBehaviour {
public static int scoreEnemy = 0;
void OnCollisionEnter(Collision collision ){
playerscore.scorePlayer = playerscore.scorePlayer + 1;
@prophetgoddess
prophetgoddess / main.lua
Created May 4, 2013 17:12
source code for my new game
require("Jumper")
require("loveframes")
cron = require("cron")
require("32log")
require("randomlua")
tilex = 0
tiley = 0
tilesize = 30
gridsizex = 100
require ("/lib/OOP/32log")
require ("/lib/tiledloader")
require ("/lib/lovelytiles/atlas")
require ("/lib/lovelytiles/drawstack")
require ("/lib/lovelytiles/grid")
require ("/lib/lovelytiles/isomap")
require ("/lib/lovelytiles/map")
require ("/lib/lovelytiles/mapdata")
require("/lib/jumper/Jumper")
require("/lib/easygui/main")