Skip to content

Instantly share code, notes, and snippets.

@volfegan
volfegan / circlesTunnelSpiral.pde
Last active December 17, 2019 23:44
Circles in Circles moving to give the illusion of spirals
//visual output: https://twitter.com/VolfeganGeist/status/1205621889416208384
//reference code for some of the effects used: https://twitter.com/ky0ju_art/status/1175391601121611776
//attempt to recreate: https://twitter.com/Borrachas/status/1204855395006763009
float a, b, c=0, x, y, d, r=600*2, h=600/2, s=40;
void setup() {
size(600, 600);
}
void draw() {
background(#EFF2D0);
for (x=0; x<=r; x+=s*2) {
@chandeeland
chandeeland / prepare-commit-msg
Last active May 24, 2018 23:01
this will try to detect your Jira ticket id from your branch name and insert it into your commit message
#!/bin/bash
BRANCH_NAME=$(git symbolic-ref --short HEAD)
if [ -z "$BRANCH_NAME" ]; then
exit 0
fi
if [ "master" = "$BRANCH_NAME" ]; then
exit 0
fi
@chandeeland
chandeeland / git-branch.sh
Last active June 23, 2022 15:17
a little bash toy to help find branches easier
#!/bin/bash
GIT=`which git`
FOUND=`$GIT branch | grep $1 | sed -e 's/^[ *] //' | sed -e 's/remotes\/origin\///g' |sort -u`
NUM_FOUND=`echo $FOUND|wc -l`
echo
if [ $NUM_FOUND -gt 1 ]; then
echo 'FOUND THESE MATCHING BRANCHES'
echo
echo "$FOUND"
@gbuesing
gbuesing / ml-ruby.md
Last active February 28, 2024 15:13
Resources for Machine Learning in Ruby

UPDATE a fork of this gist has been used as a starting point for a community-maintained "awesome" list: machine-learning-with-ruby Please look here for the most up-to-date info!

Resources for Machine Learning in Ruby

Gems

@chandeeland
chandeeland / DC21_Shepherd_Fleet_Script
Created August 5, 2013 14:37
Shepherd's DC21 schemaverse entry
--
-- Schemaverse Fleet Script for DefCon 21 (2013)
-- @author shepherd <[email protected]>
--
-- Exploiting a missing constraint on insert/update to ship rules
--
UPDATE my_fleets SET
script_declarations = '
num_miners integer;
@benpickles
benpickles / ding.sh
Created November 25, 2010 14:33
Make a "ding" sound on your Mac!
# .___.__
# __| _/|__| ____ ____
# / __ | | |/ \ / ___\
# / /_/ | | | | \/ /_/ >
# \____ | |__|___| /\___ /
# \/ \//_____/
#
# Make a "ding" sound on your Mac! Useful for notifying you when a command
# line script has finished.
#