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!
- liblinear-ruby: Ruby interface to LIBLINEAR using SWIG
//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) { |
#!/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 |
#!/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" |
-- | |
-- 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; |
# .___.__ | |
# __| _/|__| ____ ____ | |
# / __ | | |/ \ / ___\ | |
# / /_/ | | | | \/ /_/ > | |
# \____ | |__|___| /\___ / | |
# \/ \//_____/ | |
# | |
# Make a "ding" sound on your Mac! Useful for notifying you when a command | |
# line script has finished. | |
# |