Skip to content

Instantly share code, notes, and snippets.

View johnomarkid's full-sized avatar

John Omar johnomarkid

View GitHub Profile
```
~ >>> npm i @fly/core
> integer@1.0.7 install /Users/johnomar/node_modules/integer
> node-gyp rebuild
CXX(target) Release/obj.target/integer/src/integer.o
../src/integer.cpp:329:21: warning: 'Value' is deprecated [-Wdeprecated-declarations]
v8::String::Value utf16(string);
^
(defui Sections
static om/IQueryParams
(params [this]
{:pouchq {}})
static om/IQuery
(query [this]
'({:learn/sections [:learn/sections]} ?pouchq))
Object
(componentWillUpdate [this next-props _]
(let [vid-title (get-in next-props [:learn/active :video :title])
@johnomarkid
johnomarkid / tmux-cheatsheet.markdown
Created November 18, 2016 06:45 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
potentialScore : Location -> Mark -> Board -> Int
potentialScore location mark board =
-- calculate the score for rows, cols, and verticals
-- return the max score
let
rowScore =
get (fst location) board
|> List.map (\v -> if v == mark then 1 else 0)
|> Debug.log "row: "
|> List.sum
module GameLogic exposing (..)
import Model exposing (..)
-- Helpers
createScoreboard : Mark -> Board -> List (List Int)
createScoreboard mark board =
module CracklePop (..) where
import Graphics.Element exposing (show)
pattern : Int -> ( Int, Int )
pattern n =
( n % 5, n % 3 )
Excite me:
1. Talk to users - basically built bitfountain like this.
2. Write a project spec
3. Learn a new skill to fill in a gap
4. Do support - learn a lot like that
5. Use Sketch/Photoshop/etc. to design user flows and wireframes
Don't Excite me:
1. Ship good looking CSS directly to our main repo
2. Decide core KPIs for projects at Zapier
@johnomarkid
johnomarkid / DRect
Last active December 15, 2015 05:19
DRect is a module to ease the pain of logging CGRect
DRect
=====
For iOS/OSX development.
If you are sick of NSLogging your CGRects like this:
NSLog(@"x_origin: %f, y_origin: %f, width: %f, height: %f",view.frame.origin.y, view.frame.origin.x, view.frame.size.width, view.frame.size.height);
DRect that shit.