Skip to content

Instantly share code, notes, and snippets.

View Rimann91's full-sized avatar

Riley Hughes Rimann91

  • Jack Henry and Associates
  • Springfield Missouri
View GitHub Profile
Verifying my Blockstack ID is secured with the address 1EKvJs1dsqKXJaoLbLeQfRALnXWNgS5RgR https://explorer.blockstack.org/address/1EKvJs1dsqKXJaoLbLeQfRALnXWNgS5RgR
@Rimann91
Rimann91 / gist:6a0e082217670d0ea38e9c8f2e444443
Created March 4, 2017 01:55
Error from ponggame when I try to import sound clips via pygame
*** Error in `python3': double free or corruption (top): 0x0000000000f20d90 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x777e5)[0x7f430a5b07e5]
/lib/x86_64-linux-gnu/libc.so.6(+0x7fe0a)[0x7f430a5b8e0a]
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f430a5bc98c]
/lib/x86_64-linux-gnu/libc.so.6(fclose+0x103)[0x7f430a5a6363]
/usr/local/lib/python3.5/dist-packages/pygame/.libs/libSDL-1-9a9431b0.2.so.0.11.4(+0xf539)[0x7f4308b18539]
/usr/local/lib/python3.5/dist-packages/pygame/.libs/libSDL_mixer-1-ec459934.2.so.0.12.0(Mix_LoadWAV_RW+0xe6)[0x7f4304288da6]
/usr/local/lib/python3.5/dist-packages/pygame/mixer.cpython-35m-x86_64-linux-gnu.so(+0x4626)[0x7f4301762626]
python3[0x55d17c]
@Rimann91
Rimann91 / ponggame.py
Created March 4, 2017 01:51
Strange python error due to import of sound clip
import sys, pygame
from pygame.locals import *
class game():
def __init__(self):
pygame.init()
pygame.font.init()
>>> class Foo():
... def __init__(self, out):
... self.out = out
... def put(self):
... return self.out
...
>>> test = Foo("something")
>>> print test.put
<bound method Foo.put of <__main__.Foo instance at 0x7fa0bf780dd0>>
>>> print test.put()
@Rimann91
Rimann91 / gist:9f815def028e0581c0b2
Created January 4, 2016 00:53
Printing all values
Nitrogen = {
'Tree':[
('Ainus cordata', 'Italian Alder'),
('Ainus incana', 'Gray Alder'),
('Maackia amurensis', 'Amur Maackia'),
('Robinia pseudoacacia', 'Black Locus'),
('Sophora japonica', 'Pagoda'),
],
'Shrub_large':[
@Rimann91
Rimann91 / woodcalc_back.py
Created December 21, 2015 06:18
calculator for garden bed materials with infinite loop
"""!!!!!!Infinite loop!!!!!
Calculator takes input from user and calculates materials for building garden beds
of a particular demension. User inputs demensions, width length and height
of garden bed in feet, as well as the number of beds to be built. All
outputs are in feet. Outputs include the total number feet needed of 2 by
six lumber to build the beds, and calculates the most effecient use of the
lumber by iterating through a list of standard board lengths."""
import Tkinter as tkinter
@Rimann91
Rimann91 / woodcalc_distmod.py
Last active October 25, 2015 20:34
Calculator for materials needed for garden beds
"""Takes input from user and calculates materials for building garden beds
of a particular demension. User inputs demensions, width length and height
of garden bed in feet, as well as the number of beds to be built. All
outputs are in feet. Outputs include the total number feet needed of 2 by
six lumber to build the beds, and calculates the most effecient use of the
lumber by iterating through a list of standard board lengths."""
# calculates total amount of wood per bed
def amount_wood(length, width, height):