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
// Incremental Drift on 32x32 grid - Jim Bumgardner | |
// | |
int nbrPoints = 1024; | |
int cx,cy; | |
float crad; | |
float cycleLength, speed; | |
int startOffset = 0; | |
int counter =0 ; | |
boolean isSquare = true; |
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
# DreamImage.py - parameterized deepdream with support for multiple models, | |
# auto-image-scaling, guided dreaming and kaleido mode (self-guided). | |
# Jim Bumgardner 7-12-15 | |
# this assumes the deploy file is called 'deploy.prototxt' - you may need | |
# to rename it if using a different model such as googlenet_places205. | |
# sample invocations that produce nice results: | |
# python dreamImage.py -i $1.jpg -model ../../caffe/models/googlenet_places205 -end inception_3a/output -iter 20 -octaves 5 -o $1_m3a.jpg | |
# python dreamImage.py -i $1.jpg -model ../../caffe/models/googlenet_places205 -end inception_3b/output -iter 20 -octaves 5 -o $1_m3b.jpg |
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
PImage myImage; | |
void setup() | |
{ | |
size(500,500); | |
myImage = loadImage("test.png"); | |
} | |
void draw() | |
{ |
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
// Jim Bumgardner 2015 | |
import processing.pdf.*; | |
boolean outputPDF = true; | |
boolean outputNumbers = false; | |
boolean addFrameHoles = true; | |
String outputFileName = "test_spiral_11_5"; | |
float mmToPoints = 2.83464567; | |
float mmtoInches = 0.0393701; |
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
# Hidato | |
# | |
# Sample Hidato Solver - Jim Bumgardner | |
from Numberjack import * | |
def get_neighbors(idx, width, height): # get list of indices of neighbor cells | |
cx = idx % width | |
cy = idx // width | |
nebs = [] |
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
# Hidato | |
# | |
# Sample Hidato Solver - Jim Bumgardner | |
from Numberjack import * | |
import random | |
def get_neighbors(idx, width, height): # get list of indices of neighbor cells | |
cx = idx % width | |
cy = idx // width |
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
# KenKen/Inky Solver using NumberJack - Jim Bumgardner | |
from Numberjack import * | |
# | |
# Ensure that the sum of the segments | |
# in cc == res | |
# | |
bStats = {'cnt':0,'failures':0,'backtracks':0,'walltime':0,'propags':0,'checks':0} |
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
# KenKen/Inky Solver using NumberJack - Jim Bumgardner | |
from Numberjack import * | |
# | |
# Ensure that the sum of the segments | |
# in cc == res | |
# | |
bStats = {'cnt':0,'failures':0,'backtracks':0,'walltime':0,'propags':0,'checks':0} |
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
# KenKen/Inky Solver using NumberJack - Jim Bumgardner | |
from Numberjack import * | |
# | |
# Ensure that the sum of the segments | |
# in cc == res | |
# | |
bStats = {'cnt':0,'failures':0,'backtracks':0,'walltime':0,'propags':0,'checks':0} |
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
# KenKen/Inky Solver using NumberJack - Jim Bumgardner | |
from Numberjack import * | |
# | |
# Ensure that the sum of the segments | |
# in cc == res | |
# | |
bStats = {'cnt':0,'failures':0,'backtracks':0,'walltime':0,'propags':0,'checks':0} |
OlderNewer