Skip to content

Instantly share code, notes, and snippets.

View greysondn's full-sized avatar
💭
YOU CAN'T HIDE SECRETS FROM THE FUTURE WITH MATH

J. "Dorian Greyson" L. greysondn

💭
YOU CAN'T HIDE SECRETS FROM THE FUTURE WITH MATH
View GitHub Profile
@greysondn
greysondn / README.md
Created June 7, 2021 20:43 — forked from matheus2740/README.md
Using Cython (C and C++) with godot and godot-python

For these notes, I'm assuming the reader is reasonably familiar with how cython, python and godot works.

Basic steps to use cython in your godot project:

  • Download and install godot-python and make sure python scripts are working in your project:
  • Install Cython in your python environment:
    • cd myproject
    • ./addons/pythonscript/x11-64/bin/python3 -m pip install cython==3.0a5
@greysondn
greysondn / .jhbuildrc
Created August 24, 2019 15:47
xorg cross compilation .jhbuildrc
#!python
#######################################################################################
# This is a checkout and build configuration for building Xorg
#
# This can be copied to ~/.jhbuildrc and then run 'jhbuild build xserver'
#
#######################################################################################
moduleset = 'http://cgit.freedesktop.org/xorg/util/modular/plain/xorg.modules'
checkoutroot = '~/kaeh/xorg/sources/xorg/git'
@greysondn
greysondn / whocares.ac
Created August 13, 2019 21:27
Dsemume Autconf
dnl --- Package name is first argument to AC_INIT
dnl --- Release version is second argument to AC_INIT
AC_INIT(desmume, [svn])
dnl -- find host architecture for some os specific libraries
AC_CANONICAL_HOST
case $host in
*linux*) desmume_arch=linux;;
*mingw*) desmume_arch=windows;;
@greysondn
greysondn / control.txt
Created July 19, 2019 14:55
Ubuntu Wine x64 debian control file
# you undoubtedly have rights
# sourced from here: https://packages.ubuntu.com/bionic/wine-stable
Source: wine
Section: otherosfs
Priority: optional
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
XSBC-Original-Maintainer: Debian Wine Party <pkg-wine-party@lists.alioth.debian.org>
Uploaders:
Michael Gilbert <mgilbert@debian.org>,
@greysondn
greysondn / dpkg-select.txt
Created July 17, 2019 18:21
Package selections for fresh-ish linux mint tessa x64 cinnamon
root@libtas-testing:/home/greysondn# dpkg --get-selections
accountsservice install
acl install
acpi-support install
acpid install
add-apt-key install
adduser install
adwaita-icon-theme install
alsa-base install
alsa-utils install
@greysondn
greysondn / gnash.sh
Created July 11, 2019 22:58
Ubuntu's Gnash wrapper
#!/bin/sh
#
# gnash: Wrapper script for running the different GUI versions of gnash
#
# Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
#
# 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 3 of the License, or
# Python 3.7.2rc1 in windows, using PILLOW and tqdm
# WTFPL, released by greysondn <greysondn.github.io>
#
# input images must be all the same size or this is likely to break
# may commit murder, arson, and jaywalking without warning.
from PIL import Image
from tqdm import tqdm, trange
import os
# class to hold configuration
class Tile
{
// things go here
}
class PathNode
{
public var tile:Tile = null;
public var previous:PathNode = null;
public var distance:Int = null;
@greysondn
greysondn / johndoe.py
Created June 5, 2019 22:29
Solution for a puzzle in Exit/Corners
def main():
# need all the values to work with
red = (0.0, 1.05, 8.1, 20.0, 37.9, 44.0)
green = (0.0, 15.9, 17.3, 17.8, 18.8, 19.1)
blue = (0.0, 8.8, 9.9, 10.0, 12.4, 14.1)
grey = (0.0, 6.4, 6.6, 6.8, 7.3, 7.5)
# we want a case such that red + green = blue + grey, so we have to start
# by looping over every single one
for r in red:
@greysondn
greysondn / OptionsSubstate.hx
Created January 22, 2019 21:30
Widget Widget
package net.darkglass.consume.substate;
import flixel.addons.ui.FlxUISubState;
import flash.geom.Rectangle;
import flixel.addons.ui.FlxUI;
import flixel.addons.ui.FlxUI9SliceSprite;
import flixel.addons.ui.FlxUIButton;
import flixel.addons.ui.FlxUIRadioGroup;