Skip to content

Instantly share code, notes, and snippets.

Avatar

Bryan Maass escherize

View GitHub Profile
@escherize
escherize / gist:4004858
Created Nov 2, 2012 — forked from lambdabaa/gist:4004776
ClassDojo Coding Challenge: Finding the Minimum Weight Path Through a Matrix
View gist:4004858

Finding the Minimum Weight Path Through a Matrix

Consider a matrix of integers (ie [[3, 1, 4], [1, 5, 9], [2, 6, 5]]). For a better visual, we can draw this matrix like so:

| 3 1 4 |
| 1 5 9 |
| 2 6 5 |

@escherize
escherize / gist:5217856
Created Mar 21, 2013
getting setup for pygame on mac
View gist:5217856
https://python-guide.readthedocs.org/en/latest/starting/install/osx/
add to the end of your ~/.profile (or ~/.bash_profile):
export PATH=/usr/local/bin:$PATH
install brew:
ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"
install XQuartz:
http://xquartz.macosforge.org/landing/
View gist:7498404
import random
class BigBoard():
def __init__(self):
_ = range(1,33);random.shuffle(_)
self.board = _[:32]
self.previous_number = 0
self.P1_MARK = " X"
self.P2_MARK = " O"
self.mark = self.P1_MARK
self.cpu_tries = 5
View notes.org

Send in the runa work

Proofread/comments

Complete the email

Fix Dbg in test file.

Send Alex files

super thesaurus (wordless)

build database (via elastic search wikipedia river [building now]!)

from wiki

View userspecific.el
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Bryan.el -- Bryan Maass's emacs cfgs
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; theme
(load-theme 'solarized-dark 't)
;; html stuff
(require 'web-mode)
View *cider-repl playground:57154*.txt
room-dimensions [[15.25 11.25] [11.5 13.5] [12.5 9.75]]
total-sq-ft 1267
price 3635
room-sizes (171.5625 155.25 121.875)
cost-per-sq-foot 3635/1267
common-space 818.3125
common-space-pp 163.6625
area-per-room [498.8875 318.9125 285.5375]
cost-per-room (1431.2991811365428 914.9541732438831 819.2019041041831)
let result: ("1431.30" "914.95" "819.20")
View apple.clj
(ns playground.apple
[:require [print.foo :refer :all]])
(defn rent-finder [{:keys [room-dimensions total-sq-ft price] :as apt-info}]
(print-let [room-dimensions room-dimensions
total-sq-ft total-sq-ft
price price
room-sizes (for [[w h] room-dimensions] (* w h))
cost-per-sq-foot (/ price total-sq-ft)
common-space (- total-sq-ft (apply + room-sizes))
View el-get-hub.org

ElGetHub

Why el-get?

Problem: Emacs package managment sucks. ELPA breaks your shit. Solution: El-get is the answer, but:

Problem: There’s nowhere to checkout all the cool el-get recipes. Solution: El-Get Hub, a place to share that stuff.

View init.el
(setq ring-bell-function
(lambda () (message "*beep*"))) ; dont beep outloud, thats rude.
View sarah.org

stuff

Interaction design

Create the layout of the interface

Define Interaction patterns best suited in the context

Incorporate user needs collected during User Research, into the designs

Features and Information that are important to the user

Interface behavior like drag-drop, selections, mouse over actions, and so on

Effectively communicate strengths of the system

Make the interface intuitive by building affordances

Maintain consistency throughout the system

You can’t perform that action at this time.