Skip to content

Instantly share code, notes, and snippets.

View oakmac's full-sized avatar

Chris Oakman oakmac

View GitHub Profile
@oakmac
oakmac / out.txt
Created May 14, 2015 02:32
PROS 10 Days of JavaScript, Day 8 Script
oakmac@oakmac-desktop:~$ node puzzle.js
75 total option objects
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Mon: George Bixby, Marketing, Apple
Tue: Michael Crawford, Finance, Windows
Wed: John Maxwell, Customer Service, Apple
Thu: Elliot Almond, Manufacturing, Windows
Fri: Harvey Grace, Engineering, Windows
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2373046875 total option combinations
@oakmac
oakmac / index.html
Last active August 29, 2015 14:21
Example of Layering Technique for z-indexed menus
<!doctype html>
<html lang="en-us">
<head>
<meta charset="utf-8" />
<meta content="IE=edge" http-equiv="X-UA-Compatible" />
<title>z-index Layering Example</title>
<style>
* {
margin: 0;
padding: 0;
```in
(defn foo [x]
(bar) ;; comment1
(baz) ;; comment2
```
```out
(defn foo [x]
(bar) ;; comment1
(baz)) ;; comment2
;; this input
(defn foo
([x] (foo x nil))
([x y]
(bar x (if y y {}))))
;; produces this output when ran through parinfer
(defn foo
([x] (foo x nil))
([x y
@oakmac
oakmac / styles.less
Created December 15, 2015 21:44
italicize clojure symbols in Atom
atom-text-editor::shadow {
span.meta.symbol.clojure {
font-style: italic;
}
}
@oakmac
oakmac / out.txt
Created December 24, 2015 07:19
Python Indent Mode tests pass!
Running Indent Mode tests...
Test 7 was a success.
Test 21 was a success.
Test 35 was a success.
Test 49 was a success.
Test 63 was a success.
Test 87 was a success.
Test 97 was a success.
Test 111 was a success.
Test 121 was a success.
oakmac@oakmac-desktop:~/parinfer.py$ python tests.py
..
----------------------------------------------------------------------
Ran 2 tests in 0.073s
OK
oakmac@oakmac-desktop:~/parinfer.py$
oakmac@oakmac-desktop:~/parinfer.py$ python perf.py
Testing file with 2864 lines
Indent Mode: 1.288776 s
Paren Mode: 1.374673 s
oakmac@oakmac-desktop:~/parinfer.py$ python perf.py
Testing file with 2864 lines
Indent Mode: 1.3307 s
Paren Mode: 1.394969 s
oakmac@oakmac-desktop:~/parinfer.py$ python perf.py
Testing file with 2864 lines
(def people [
{
:first-name "Phil"
:last-name "Gambling"
:age 31
}
{
:first-name "Chris"
:last-name "Pounds"
:age 26
var people = [
{
firstName: 'Phil',
lastname: 'Gambling',
age: 31
},
{
firstName: 'Chris',
lastName: 'Pounds',
age: 26