Skip to content

Instantly share code, notes, and snippets.

View Kaizen86's full-sized avatar

Kaizen86

View GitHub Profile
@Kaizen86
Kaizen86 / get-tilde.sh
Last active March 16, 2023 15:40
Automatically clones and copies my tilde repository into the user's home folder
#!/bin/bash
#
# get-tilde.sh
#
# Clone the tilde repository and install it into the user's home directory
# If you have wget installed, you can download the installer with this:
# wget https://gist.githubusercontent.com/Kaizen86/0d2c2727231cae0328e529501ac0e406/raw/6b019bdc055aa0753958787f33d9d8d86a139e10/get-tilde.sh
git clone https://github.com/Kaizen86/tilde.git
# Did that work?
@Kaizen86
Kaizen86 / asm.nanorc
Created May 30, 2021 10:30
AT&T variant of my other Assembly Highlighter
## AT&T Assembly
## Variation of my Assembly highlighter, with added instructions that are
## specific to AT&T syntax and includes some tweaks to the other regular expressions.
syntax asm "\.(S|s|asm)$"
magic "at&t assembler source"
comment ";"
# Symbol visibility levels
@Kaizen86
Kaizen86 / asm.nanorc
Last active May 30, 2021 10:32
Greatly improved asm.nanorc
# Intel Assembly
## Got fed up with the frankly inadequate default colours for assembly, so I made my own set.
## This process also taught me the basics of regular expressions, which was a nice bonus.
syntax asm "\.(S|s|asm)$"
magic "assembler source"
comment ";"
# Symbol visibility levels
@Kaizen86
Kaizen86 / MouseJiggler.cs
Last active May 29, 2021 22:50
Mouse Jiggler Source Code
using System;
using System.Threading;
using System.Drawing;
using System.Windows;
using System.Runtime.InteropServices;
namespace MouseJiggler
{
class Program
{
@Kaizen86
Kaizen86 / draw_polygons.py
Last active November 28, 2023 12:14
Simple turtle program to draw 2d polygons of any size
__author__ = "@kaizen86"
import turtle
def draw_polygon(sides, size):
if sides < 3:
# Stop here with an error
raise Exception("A polygon must have at least 3 sides")
step = size/sides # Reduce length of each side with higher side counts
for i in range(sides):
turtle.forward(step) # Draw side