- Install IntelliJ + Scala Plugin
- Don’t do the Coursera courses yet.
- Don’t do the “red book” Functional Programming in Scala yet.
- Do: http://underscore.io/books/
- Essential Scala
- Essential Play
- Essential Slick
- Do Scala for the Impatient: https://www.amazon.com/Scala-Impatient-Cay-S-Horstmann/dp/0321774094
- The Neophyte’s Guide to Scala http://danielwestheide.com/scala/neophytes.html
| class Node { | |
| constructor (val) { | |
| this.val = val; | |
| this.prev = null; | |
| this.next = null; | |
| } | |
| } | |
| class DoublyLinkedList { | |
| constructor () { |
| #!/bin/sh | |
| #_( | |
| #_DEPS is same format as deps.edn. Multiline is okay. | |
| DEPS=' | |
| {:deps {clj-time {:mvn/version "0.14.2"}}} | |
| ' | |
| #_You can put other options here | |
| OPTS=' |
| (ns my.promises | |
| "Demo to show different approaches to handling promise chains in ClojureScript | |
| In particular, this file investigates how to pass data between Promise | |
| callbacks in a chain. | |
| See Axel Rauschmayer's post | |
| http://2ality.com/2017/08/promise-callback-data-flow.html for a problem | |
| statement. |
| namespace :db do | |
| require 'sequel' | |
| Sequel.extension(:migration) | |
| MIGRATIONS_PATH = 'db/migrations' | |
| def db_conn_env | |
| ENV["BOOKSHELF_DATABASE_URL"] | |
| end |
| /* | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2016 Esa-Matti Suuronen <esa-matti@suuronen.org> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. |
So one of the painful points of using docker on OS X is that you need to run a virtualbox VM, which often suffers from performance issues. With xhyve, a OS X virtualization system, and docker-machine-xhyve you can now have docker use the native OS X hypervisor to run containers.
No more dealing with virtualbox shenanigans!
In this script, I've also set up a way to autoconfigure terminal sessions to load docker's environment vars (dependent on docker-machine) so you do not have to run eval $(docker-machine env whatever) every time you open a new terminal window.
A primer/refresher on the category theory concepts that most commonly crop up in conversations about Scala or FP. (Because it's embarassing when I forget this stuff!)
I'll be assuming Scalaz imports in code samples, and some of the code may be pseudo-Scala.
A functor is something that supports map.
| #import <Foundation/Foundation.h> | |
| #import "RCTBridgeModule.h" | |
| #define RCT_EXTERN_MODULE(objc_name, objc_supername) \ | |
| RCT_EXTERN_REMAP_MODULE(objc_name, objc_name, objc_supername) | |
| #define RCT_EXTERN_REMAP_MODULE(js_name, objc_name, objc_supername) \ | |
| objc_name : objc_supername \ | |
| @end \ | |
| @interface objc_name (RCTExternModule) <RCTBridgeModule> \ |
| // for an updated version see https://github.com/jsdf/react-native-refreshable-listview | |
| var React = require('react-native') | |
| var { | |
| ListView, | |
| ActivityIndicatorIOS, | |
| StyleSheet, | |
| View, | |
| Text, | |
| } = React |