Skip to content

Instantly share code, notes, and snippets.

//Released under CC0
//https://creativecommons.org/publicdomain/zero/1.0/
module extrude2020(h=10) {
module corner() {
difference() {
square([7.5,7.5]);
translate([1.5,1.5]) {
square([6.1,6.1]);
}
@shutebt01
shutebt01 / LMC.py
Last active March 15, 2022 07:28
Python LMC (Little Man Computer) Emulator
'''
Created on 22 Oct 2014
Little Man Computer Emulator
@author: shutebt01
'''
import tkinter
import sys
@shutebt01
shutebt01 / gist:667e61d2f101f2f04542
Last active August 29, 2015 14:07
TKinter Example
# Imports tkinter and constants
import tkinter
from tkinter.constants import *
# addition function
def add():
a = float(num1In.get("1.0",END))
b = float(num2In.get("1.0",END))
ansOut['text'] = str(a + b)
@shutebt01
shutebt01 / BDH.py
Last active August 29, 2015 14:06
Some code for school that handels binary and hexadecimal
import math
import copy
class Bin():
binBoolArray = None
def __init__(self, binBoolArray = None, Decimal = None, String = None):
if (binBoolArray != None):
self.binBoolArray = binBoolArray
if (Decimal != None):
<rss version="2.0">
<channel>
<title>Out and up News</title>
<description />
<language>en-gb</language>
<item>
<title>Site Launched</title>
<description>Our new site is now up. Test for 25% off an out and up holiday by following the link.</description>
<link>https://docs.google.com/forms/d/1Avox48_KUS5gnpQqvu1enZRQCt3pv1iUG0z3p29Mh_M/viewform</link>
<pubDate>18 Mar 2014 13:55:38 GMT</pubDate>