Skip to content

Instantly share code, notes, and snippets.

View Softwave's full-sized avatar

Softwave Softwave

View GitHub Profile
@Softwave
Softwave / README.md
Last active November 27, 2025 14:05
Fibonacci Program

Fib

Simple fibonacci number calculator.

Usage: fib nth Fibonacci number

@Softwave
Softwave / irssi-cheat-sheet.md
Created November 19, 2015 01:04
Irssi Cheat Sheet

Cheat Irssi

Short cheatsheet handy while learning to use Irssi. Adapted from IRC-client.md by Nishant Modak.

  1. To switch between open channels / windows

    Alt + N where N is the number corresponding to the open window

  2. To ignore joins / quits / nicks changes on a specific channel.

; ___ _ __ ___ __ ___
; / __|_ _ __ _| |_____ / /| __|/ \_ )
; \__ \ ' \/ _` | / / -_) _ \__ \ () / /
; |___/_||_\__,_|_\_\___\___/___/\__/___|
; An annotated version of the snake example from Nick Morgan's 6502 assembly tutorial
; on http://skilldrick.github.io/easy6502/ that I created as an exercise for myself
; to learn a little bit about assembly. I **think** I understood everything, but I may
; also be completely wrong :-)
@Softwave
Softwave / IslandCreator.gd
Last active October 20, 2023 07:54
TerrainCreator
# IslandCreator: A tool for generating island terrain meshes
# procedurally with Simplex Noise
@tool
extends Node3D
# Globals
var _noise = FastNoiseLite.new()
@export var groundMaterial: Material
// ==UserScript==
// @name Hide Twitter Trending
// @version 1
// @description Hides the "What's happening" sidebar on Twitter
// @run-at document-idle
// ==/UserScript==
// Greasemonkey script to hide the twitter trending page
#!/usr/bin/python
import sys
from PyQt5.QtWidgets import QApplication, QDialog, QVBoxLayout, QDateEdit, QPushButton, QLabel
from PyQt5.QtCore import QDate
from PyQt5 import uic
# A tiny program to compare two dates and get the difference in days
class DateCompare(QDialog):
@Softwave
Softwave / fib.c
Last active February 23, 2023 18:43
/*
Calculate the nth Fibonacci number.
example usage: ./fib 50
(Calculates the 50th fibonacci number)
(Do what you want with this)
https://opensource.org/license/0bsd/
Zero-Clause BSD
===============
uniform float time;
uniform vec2 resolution;
uniform vec2 mouse;
uniform int iterations;
uniform float zoom = 0.1;
uniform float zoomPos1 = 0.755;
uniform float speedMod = 0.3;
@Softwave
Softwave / .emacs
Created October 29, 2016 02:55 — forked from ftrain/.emacs
a nice .emacs for when you are on a terminal. Respects scroll wheel events. Very useful when run inside of tmux and combined with this tmuxconf: https://gist.github.com/ftrain/8443744
;; .emacs
;;; uncomment this line to disable loading of "default.el" at startup
;; (setq inhibit-default-init t)
;; enable visual feedback on selections
(setq transient-mark-mode t)
;; default to better frame titles
(setq frame-title-format
@Softwave
Softwave / plotting.py
Created October 5, 2016 04:06
plotting.py
# program that graphs tribble population growth
from pylab import *
import math
def p(t):
return math.e ** (0.2 * t)