Skip to content

Instantly share code, notes, and snippets.

View zphixon's full-sized avatar
💚

Zack zphixon

💚
View GitHub Profile
git_wrap_r() {
git `echo $@ | cut -b 1 --complement`
}
git_wrap_l() {
letter=$1
shift
git $letter$@
}
@zphixon
zphixon / fax.rs
Last active October 14, 2021 04:10
use std::f64::consts::PI;
fn main() {
for y in (-25..25).filter(|x| x % 2 == 0) {
for x in -25..25 {
let r = ((x * x + y * y) as f64).sqrt() as i32;
let t = (((y as f64 / x as f64).atan() + PI / 2.0) * PI) - PI / 2.0;
if r < 25 && r > 12 {
let diff = 25 - r;
let line = (if t < 0.0 {
1.0 - (-t / PI / 2.0)
"_vimrc - Zack Hixon, cheezgi at github
"last updated 2016-03-24
" maps {{{
filetype plugin on
" let nvim use python
"let g:python_host_prog='C:/Python27/python.exe'
let g:python3_host_prog='C:/Users/Zack/AppData/Local/Programs/Python/Python37/python.exe'
@zphixon
zphixon / esmb.ahk
Created January 2, 2018 01:05
Trackball scroll wheel emulator
;;
;; esmb.ahk
;; Author: Erik Elmore <[email protected]>
;; Version: 1.1 (Aug 16, 2005)
;;
;; Emulate scrolling/middle button
;;
;; Enables you to use any key with cursor movement
;; to emulate a scrolling middle button. While
#!/bin/zsh
function popup() {
# how long bar stays open
duration=4
# color of bar
bar_bg='#4265f4'
# bar position
# adapted and annotated from rosettacode
# https://rosettacode.org/wiki/Voronoi_diagram#Python
# pillow library
from PIL import Image
import random
import math
# cells is synonymous with sites
def generate_voronoi_diagram(width, height, num_cells, name):
@zphixon
zphixon / keymap.c
Last active December 2, 2016 01:21
#include "planck.h"
#include "action_layer.h"
#include "eeconfig.h"
extern keymap_config_t keymap_config;
// zackh planck layout - too many tri-layers? nah m9
// raise + lower = roll
// spin + flap = screw
"_vimrc - Zack Hixon, cheezgi at github
"last updated 2016-03-24
"pre-installed options, not going to touch
set nocompatible
source $VIMRUNTIME/vimrc_example.vim
source $VIMRUNTIME/mswin.vim
behave mswin
set diffexpr=MyDiff()

Ufupolg programming language

This is kind of an esoteric programming language. The goal is to be as ugly as possible.

There is no god

Simple stuff

Expressions