start new:
tmux
start new with session name:
tmux new -s myname
``` | |
~ >>> 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]) |
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 |
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. |