Skip to content

Instantly share code, notes, and snippets.

View setphen's full-sized avatar

Stephen Lindberg setphen

View GitHub Profile
@setphen
setphen / ColorRunners
Last active August 29, 2015 14:22
processing sketch using toxiclibs TColor
import toxi.color.*;
import toxi.util.*;
import java.util.*;
ColorTheme t;
ColorList list;
ArrayList<runner> runners;
void setup() {
[338.26, 438.22];[340.61, 439.87]
[145.01, 203.32];[147.22, 205.03]
[429.42, 327.76];[431.61, 323.01]
[200.62, 330.36];[202.34, 328.35]
[181.79, 187.1];[183.03, 181.86]
[486.31, 379.55];[491.12, 380.0]
[223.23, 268.11];[224.45, 272.28]
[236.14, 372.38];[240.07, 368.47]
[421.6, 376.3];[424.28, 375.74]
[332.9, 370.14];[336.78, 370.87]
import bpy
import telegram
TOKEN=""
CHAT_ID=""
def alert(self):
bot = telegram.Bot(token=TOKEN)
bot.send_message(chat_id=CHAT_ID, text="Render complete")
@setphen
setphen / qfixtoggle.vim
Last active May 4, 2018 19:59
Toggle QuickFix window
" toggles the quickfix window.
command -bang -nargs=? QFix call QFixToggle(<bang>0)
function! QFixToggle(forced)
if exists("g:qfix_win") && a:forced == 0
cclose
else
copen
endif
endfunction
<template>
<div class="container">
<a v-if="showRestart()" href="/pages/guided-signup#/experience/1/">Take the quiz again</a>
<p v-if="showRestart()" class="or">or</p>
<a href="/">Just let me shop</a>
</div>
</template>
<style lang="scss" scoped>
@import 'shopify/stylesheets/base/_variables.scss';
@setphen
setphen / _margin.scss
Created March 26, 2019 20:11
margin utility classes
$_directions: "top" "bottom" "left" "right";
$_sizes: (
"auto": auto,
"x-small": $x-small-spacing,
"small": $small-spacing,
"base": $base-spacing,
"large": $large-spacing,
"x-large": $x-large-spacing
);
@setphen
setphen / NOTES.md
Created May 7, 2019 17:41
a file I keep in a project directory to organize my workflow

STANDUP:

TODO:

ON HOLD:

@setphen
setphen / dot
Created May 12, 2019 00:25
configuration for dotfiles management
# function for managing dotfiles
# https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/
# With arguments: acts like git
# Without arguments: git status
dot() {
if [[ $# -gt 0 ]]; then
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@
else
/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME status
fi
@setphen
setphen / gist:4a3236728fa0eab16cbd2504d7d0b70e
Created June 4, 2019 16:28 — forked from lmccart/gist:2273a047874939ad8ad1
p5.js + p5.dom.js + clmtracker.js
<html>
<head>
<script src="clmtrackr.js"></script>
<script src="model_pca_20_svm.js"></script>
<script src="p5.js"></script>
<script src="p5.dom.js"></script>
<script>
var ctracker;
Attack/Decay/Sustain/Release: self-explanatory
Three-band EQ: For isolating Hi/Mid/Lo (This could be high/lowpass filter, alternatively)
Alter pitch: For tuning samples
Pitch bend: Change the pitch throughout length of the sample (for bass drum dips/rises, eg)
Shaper: Some sort of distortion filter to emphasize certain frequencies and get a little fuzz or character