Skip to content

Instantly share code, notes, and snippets.

View heavyimage's full-sized avatar
💭
Hacking the Gibson

Jesse Spielman heavyimage

💭
Hacking the Gibson
View GitHub Profile
func! WordProcessor()
" movement changes
map j gj
map k gk
" formatting text
setlocal formatoptions=1
setlocal noexpandtab
setlocal wrap
setlocal linebreak
" spelling and thesaurus
set maxobjects 1000000
#define MAXD 3
rule end {box}
rule r1 {}
rule r1 md MAXD > end {
{s 0.5 x 0.5 y 0.5 z 0.5} r1
// set seed to 77
set maxobjects 1000000
set minsize 0.1
rule innerbox w 2 {}
rule innerbox w 2 {box}
rule innerbox w 4 {lopbox}
rule innerbox w 4 {{s 1.25} lopbox}
rule innerbox w 1 {
// Camera settings. Place these before first rule call.
set translation [0.113326 -0.461382 -20]
set rotation [0.678556 0.00381717 -0.734532 -0.369069 0.866368 -0.336443 0.635096 0.499391 0.589298]
set pivot [0 0 0]
set scale 0.55
set maxObjects 10000000
set raytracer::shadows false
set raytracer::samples 8
set raytracer::ambient-occlusion-samples 4
set cut_paste_input [stack 0]
version 13.0 v3
push $cut_paste_input
Camera3 {
translate {0 0 5.735000134}
name Camera1
selected true
xpos 476
ypos -130
}
# nShakeClone.py
#
# Recreates a shake style "uni-directional" clone
#
# Created by Jesse Spielman on 8/26/2010
def shakeClone():
EXCLUSION_LIST = ["xpos", "ypos", "help", "hide_input", "note_font_color",
"onCreate", "updateUI", "knobChanged", "note_font",
"tile_color", "selected", "autolabel", "process_mask",
@heavyimage
heavyimage / install-mosh.sh
Created October 28, 2020 23:03 — forked from jaywilliams/install-mosh.sh
Compiling and running mosh on Dreamhost (Updated - 2018)
#!/usr/bin/env bash
# Thanks to @samsonjs for the cleaned up version:
# https://gist.github.com/samsonjs/4076746
PREFIX=$HOME/local
VERSION=1.3.2
# Create Source Directory
mkdir -p $PREFIX/src
// I don't know anything about javascript so this is probably v wrong
// Based on: https://github.com/dmstern/html2biblatex
javascript:"use strict";
(function(){
function copyToClipboard(text){
window.prompt("Copy to clipboard: Ctrl+C, Enter",text)
}
var title=document.title;
from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
im = Image.open("scramble.png")
img_width, img_height = im.size
font = ImageFont.truetype("./Vera.ttf", 16)
def image_at_scale(scale):
""" Apply slitscan effect for a given scale factor """
@heavyimage
heavyimage / ermagherd.py
Created January 20, 2019 00:22
ERMAGHERD the nuke interface
import re
class ermagerd:
""" https://gist.github.com/brianseitel/3267351 """
def __init__(self, arg1):
self.result = self.gherd(arg1)
def grab(self):
return self.result