Curry in Swift and Javascript

Issue #185 You may encounter curry in everyday code without knowing it. Here is a bit of my reflections on curry and how to apply it in Javascript and Swift. Taking one parameter in Haskell In Haskell, all function officially takes only 1 parameter. Function with many parameters are just curried, which means they will be partially applied. Calling sum 1 just returns a function with 1 parameter, then 2is passed into this function....

March 24, 2019 · 6 min · 1129 words · Khoa

How to get properties of JSValue in JavascriptCore

Issue #179 let rough = context.objectForKeyedSubscript("myObject") myObject.toDictionary()

March 19, 2019 · 1 min · 7 words · Khoa

Learning flexbox

Issue #62 CSS body height https://www.kirupa.com/html5/make_body_take_up_full_browser_height.htm Flexbox Properties of flex https://codepen.io/enxaneta/full/adLPwv Visual guide to flexbox https://scotch.io/tutorials/a-visual-guide-to-css3-flexbox-properties align-items vs align-content https://stackoverflow.com/questions/27539262/whats-the-difference-between-align-content-and-align-items align-items vs justify-content https://stackoverflow.com/questions/35049262/difference-between-justify-content-vs-align-items multiple line https://stackoverflow.com/questions/41789278/first-child-full-width-in-flexbox

August 4, 2017 · 1 min · 27 words · Khoa