I hereby claim:
- I am eugenen on github.
- I am eugenen (https://keybase.io/eugenen) on keybase.
- I have a public key ASC1OZRhY5Qa14Vc8yfL9YL_Z87sI5NwSAZ3qO1ts_dp-Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
flags: {} | |
compiler: ghcjs-0.2.0.20151230.3_ghc-7.10.2 | |
compiler-check: match-exact | |
setup-info: | |
ghcjs: | |
source: | |
ghcjs-0.2.0.20151230.3_ghc-7.10.2: | |
url: "https://github.com/nrolland/ghcjs/releases/download/v.0.2.0.20151230.3/ghcjs-0.2.0.20151230.3.tar.gz" |
When coming from an object oriented background to functional programming you might be wondering if and/or how functional programming allows for modeling abstractions in our domain and how we go from an abstract model to working code.
Here is my attempt to provide a path so you can update your thought processes to aid in the transition from OO to FP.
```javascript
/ requires generic_view */ (function () { YAHOO.G4.ActivitiesView = function (cont, opts) { YAHOO.G4.ActivitiesView.superclass.constructor.call (this, cont, opts); };
var Dom = YAHOO.util.Dom, Config = YAHOO.util.Config, ActivitiesView = YAHOO.G4.ActivitiesView, Lang = YAHOO.lang, GenericView = YAHOO.G4.GenericView;
ActivitiesView.API_DO_URL = ‘/api/activity/do/’;
ActivitiesView.label_formatter = function (elCell, oRecord, oColumn, oData) { var color = oRecord.getData(‘color’), title = oRecord.getData(‘title’);
elCell.innerHTML = '<span class=\"t-label-dt\">'+title+'</span>';
}
#!/usr/bin/env runhaskell | |
{-# LANGUAGE OverloadedStrings #-} | |
import Turtle | |
import Prelude hiding (FilePath) | |
import qualified Data.Text as T | |
import System.Environment (getArgs) | |
usage = "Please specify module name you would like to build as first argument." |
tell application "System Events" | |
set desktopCount to count of desktops | |
repeat with desktopNumber from 1 to desktopCount | |
tell desktop desktopNumber | |
set picture to "/Library/Desktop Pictures/Beach.jpg" | |
end tell | |
end repeat | |
end tell |
This is an explosive mixture of ClojureScript, Rx, React/Om, core.async, github CORS api, ace, marked, web workers etc craftedengineered together to give you the best gist editing tool, ever... well, at least a good try :-)
It's currently an alfa-quality prototype, so do not expect to much.
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |