This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| "Chris Rathman / [email protected] | |
| ************************************************************************ | |
| * Allowable characters: * | |
| * - a-z * | |
| * - A-Z * | |
| * - 0-9 * | |
| * - .+/\*~<>@%|&? * | |
| * - blank, tab, cr, ff, lf * | |
| * * | |
| * Variables: * |
| MySQL commands (from http://www.pantz.org/software/mysql/mysqlcommands.html) | |
| Create a database on the sql server. | |
| mysql> create database [databasename]; | |
| List all databases on the sql server. | |
| mysql> show databases; | |
| Switch to a database. | |
| mysql> use [db name]; |
| (defn neighbors-of [cell] | |
| (set (for [dx [-1 0 1] dy [-1 0 1] :when (not (= [dx dy] [0 0]))] | |
| [(+ dx (first cell)) (+ dy (second cell))]))) | |
| (defn alive? [[cell freqs] world] | |
| (or (and (= 2 freqs) (contains? world cell)) (= 3 freqs))) | |
| (defn tick [world] | |
| (let [frequencies (frequencies (reduce #(concat %1 (neighbors-of %2)) [] world))] | |
| (set (keys (filter #(alive? % world) frequencies))))) |
| Object | |
| Behavior | |
| ClassDescription | |
| Class | |
| Metaclass | |
| BlockClosure | |
| Boolean | |
| False | |
| True | |
| Browser |
This gist is part of a blog post. Check it out at:
http://jasonrudolph.com/blog/2011/08/09/programming-achievements-how-to-level-up-as-a-developer
| /**********************************************/ | |
| /* | |
| /* Tomorrow Skin by Ben Truyman - 2012 | |
| /* | |
| /* Based on Chris Kempson's Tomorrow Theme: | |
| /* https://github.com/ChrisKempson/Tomorrow-Theme | |
| /* | |
| /* Inspired by Darcy Clarke's blog post: | |
| /* http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
| /* |
| Subject: Re: [pdxruby] Re: Complex return value anti-pattern? | |
| From: Ward Cunningham <[email protected]> | |
| Date: Thu, 29 Nov 2012 08:23:26 -0800 | |
| Pair programming is often misunderstood. | |
| To understand pairing one must examine the world views of programmers. For | |
| many (perhaps all programmers historically) programming is difficult and re | |
| quires skill and concentration to be successful. For others, and here we fi | |
| nd roots in dynamic languages, programming is easy but requires imagination |