See Configuring a remote for a fork.
git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
See Syncing a fork
object Example extends App { | |
/** | |
* Extract users from following paths (from given tweet-JSON): | |
* __ \ "user" | |
* __ \ "retweeted_status" \ "user" | |
* __ \ "retweeted_status" \ "quoted_status" \ "user" | |
* __ \ "quoted_status" \ "user" | |
* and replace those where only user-fields `name` and `id_str` remain | |
* |
{ | |
"created_at": "Tue May 12 21:04:07 +0000 2015", | |
"id": 598232209208832000, | |
"id_str": "598232209208832000", | |
"text": "Suomen @PinnallaFI-twiittidatan kiroilufrekvenssi kuvastaa melko hyvin #mmkisat-ratk.hetkiä\n#visualisointi #perkele http://t.co/VHurLxeHgg", | |
"source": "<a href=\"http://twitter.com\" rel=\"nofollow\">Twitter Web Client</a>", | |
"truncated": false, | |
"in_reply_to_status_id": null, | |
"in_reply_to_status_id_str": null, | |
"in_reply_to_user_id": null, |
object SlickEnumerationSupport { | |
def enumerationTypeName[V <: Enumeration.Value : ClassTag] = { | |
val valueSymbol = runtimeMirror.classSymbol(classTag[V].runtimeClass) | |
val valueTypeName = valueSymbol.name.decodedName.toString | |
val enumTypeName = valueSymbol.owner.name.decodedName.toString | |
// Always use public schema | |
s"${enumTypeName}_${valueTypeName}".toLowerCase | |
} |
"pool-1-thread-4" #31 daemon prio=5 os_prio=0 tid=0x00007f3cb8014800 nid=0x377b waiting on condition [0x00007f3cff8f8000] | |
java.lang.Thread.State: WAITING (parking) | |
at sun.misc.Unsafe.park(Native Method) | |
- parking to wait for <0x00000000ec1cc150> (a java.util.concurrent.FutureTask) | |
at java.util.concurrent.locks.LockSupport.park(LockSupport.java:175) | |
at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:429) | |
at java.util.concurrent.FutureTask.get(FutureTask.java:191) | |
at scalaz.concurrent.StrategysLow$$anon$3$$anonfun$apply$2.apply(Strategy.scala:81) | |
at scala.Function0$class.apply$mcZ$sp(Function0.scala:34) |
FROM ubuntu:14.04.3 | |
MAINTAINER Pyppe | |
ENV DEBIAN_FRONTEND noninteractive | |
RUN apt-get -y install software-properties-common | |
RUN add-apt-repository -y ppa:libreoffice/ppa | |
RUN apt-get -y update | |
RUN apt-get install -y libreoffice ttf-kochi-mincho |
{ | |
"matched": true, | |
"explanation": { | |
"value": 2.1227224, | |
"description": "sum of:", | |
"details": [ | |
{ | |
"value": 2.1227224, | |
"description": "product of:", | |
"details": [ |
[ | |
{ | |
"id": "611004027", | |
"name": "Salla Vuorikoski", | |
"screenName": "svuorikoski", | |
"reactionCountByOthers": 6321, | |
"reactions": [ | |
{ | |
"id": "601907907", | |
"count": 165 |
See Configuring a remote for a fork.
git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git
See Syncing a fork
wget "http://kartat.kapsi.fi/files/kuntajako/kuntajako_4500k/etrs89/shp/TietoaKuntajaosta_2017_4500k.zip"
unzip TietoaKuntajaosta_2017_4500k.zip
ogr2ogr -f GeoJSON -t_srs crs:84 SuomenKuntajako_2017_4500k.geo.json SuomenKuntajako_2017_4500k.shp
object Http4sBlazeServerBuilder { | |
case class Server(fiber: Fiber[IO, Nothing]) { | |
def shutdownNow(): Unit = fiber.cancel.unsafeRunSync() | |
} | |
type MappedService = (String, HttpRoutes[IO]) | |
private implicit val cs = IO.contextShift(ExecutionContext.Implicits.global) | |
def startServer(port: Int, |