Skip to content

Instantly share code, notes, and snippets.

View btforsythe's full-sized avatar

Brian T Forsythe btforsythe

View GitHub Profile
@btforsythe
btforsythe / basic-mini-painting-toolkit.md
Last active August 2, 2019 14:35
Basic Miniature Painting/Modeling Toolkit

Basic Miniature Painting/Modeling Toolkit

This document primarily links to product descriptions at (Dick) Blick, Scale Hobbyist, and MicroMark. These online retailers offer affordable pricing and a good range of products that are usually in stock.

Brushes

Sure, we're talking about painting, but many paints are much the same. Brushes are critical.

You may think that you need a teeny tiny brush to paint miniatures, but realize that the point of one sharp brush is the same size as another, no matter how large the brush. Until brush size gets significantly larger, smaller brushes simply hold less paint. We use smaller brushes when we want to load them with less paint to minimize accidents. As you become more experienced, you'll become more comfortable with using larger brushes for smaller work.

@btforsythe
btforsythe / craft-the-world.md
Last active August 28, 2018 18:30
Craft the World notes

Craft the World

TODOs

  • Create one training area for each dwarf. Dwarves will train automatically when they're not busy.
  • re-equip dwarves when portals open (this also gives an opportunity to revisit equipment)
    • (un)equip fire/silver/special arrows!
    • shields for warriors (minimum), or everyone (old shields for others, probably?)
    • whetstones (?) for warriors
  • gloves for archers
@btforsythe
btforsythe / miniature-painting-modeling-tools-recommendations.md
Last active August 2, 2019 14:35
Miniature Painting/Modeling Tools Recommendations

Miniature Painting/Modeling Tools Recommendations

Shopping List

Required items have checkboxes.

Painting

@btforsythe
btforsythe / CategoryRepository.java
Created March 8, 2018 16:48
langfod reviews site, full stack refactoring
package com.dihelix.langfod.reviewssitefullstack;
import org.springframework.data.repository.CrudRepository;
public interface CategoryRepository extends CrudRepository<Category, Long> {
public Category findByName(String name);
}
@btforsythe
btforsythe / RotateInPlace.java
Created October 26, 2017 01:11
Rotate an array in place
package codefights;
public class RotateInPlace {
private int[][] a;
public RotateInPlace(int[][] a) {
this.a = a;
}
@btforsythe
btforsythe / VirtualPetShelter.java
Last active January 12, 2019 18:41
Feeding and water virtual pets: from names classed to method references
package virtualpet;
import java.util.HashMap;
import java.util.Map;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Predicate;
import java.util.stream.Stream;
public class VirtualPetShelter {
@btforsythe
btforsythe / aquarium-checklist.md
Last active January 12, 2019 22:44
aquarium checklist (some steps for newbies)
  1. tank supplies (incomplete list)
    • aquarium and stand of chosen size (20G high is great option)
    • light timer
    • 2g bucket
    • ammonia solution to test biofilter
    • a bottle of Seachem prime (can use old juice/liquid bottle)
    • baggies/jars of fish foods (mysis is good option)
  2. initial tank setup
    • put hardware in place
  • paint back of aquarium (black paint and sponge brush)
@btforsythe
btforsythe / Dog.java
Created October 6, 2017 21:13
Examples of testing abstract class in Java
package virtualpet;
public class Dog extends VirtualPet {
public Dog(String name) {
super(name);
}
@Override
public void tick() {
@btforsythe
btforsythe / AnimalsIterator.java
Created September 28, 2017 23:17
Dorothy's Fears
package oz;
import java.util.Iterator;
public class AnimalsIterator implements Iterator<String> {
private String[] animals;
int index; // defaults to zero
public AnimalsIterator(String... animals) {
@btforsythe
btforsythe / clusters-kata.md
Created September 26, 2017 21:24
Clusters Kata

Clusters kata

The problem

Let's say that we have a Collection<Integer> or an int[] (array) of numbers, and we would like to count the groups of adjacent elements with the same value (clumps).

Example

input |output