Skip to content

Instantly share code, notes, and snippets.

View artfoundry's full-sized avatar
💭
Makin web apps!

David Markowitz artfoundry

💭
Makin web apps!
View GitHub Profile

Dungeon randomizer v2

Creates a random dungeon in which you can explore. Lighting radius around character is 1 tile, and explored tiles get displayed as player moves around.

A Pen by David Markowitz on CodePen.

License.

@artfoundry
artfoundry / gist:6577031
Created September 16, 2013 05:40
ActiveRecord Congress Database 1: Modeling congresspeople solution part 3 is not sorted by number of congress - sorted by state
https://github.com/artfoundry/ar-sunlight-legislators
@artfoundry
artfoundry / gist:6546708
Created September 13, 2013 04:12
DB Drill - AR Student Schema solution
https://github.com/artfoundry/ar-student-schema

##Initializing a new repo Type in what comes AFTER the $...do not type in the $

BASIC git initialization and repo creation:

$ git init

This command creates an empty git repository - basically a .git directory with subdirectories for objects, refs/heads, refs/tags, and template files. An initial HEAD file that references the HEAD of the master branch is also created.

6 1 9 _ 3 _ _ 4 _
2 7 _ _ 6 1 _ _ 8
_ _ _ _ 4 7 6 2 1
4 8 6 3 _ 2 _ 7 9
_ _ _ _ 1 4 5 8 _
_ 3 1 _ _ 9 _ 6 _
_ _ 5 7 2 _ 8 _ 6
3 2 _ 1 _ 6 _ 5 7
@artfoundry
artfoundry / boggle_board.rb
Created August 30, 2013 02:42
Boggle, unfinished
class BoggleBoard
def initialize
@board = Array.new(4) {Array.new(4, Hash.new)}
@dice = Hash.new {
"die0" => "AAEEGN",
"die1" => "ELRTTY",
"die2" => "AOOTTW",
"die3" => "ABBJOO",
"die4" => "EHRTVW",
"die5" => "CIMOTU",