This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func! WordProcessor() | |
" movement changes | |
map j gj | |
map k gk | |
" formatting text | |
setlocal formatoptions=1 | |
setlocal noexpandtab | |
setlocal wrap | |
setlocal linebreak | |
" spelling and thesaurus |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
NewerOlder