This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q
- quitSPC w /
- split window verticallySPC w
- - split window horizontallySPC 1
- switch to window 1SPC 2
- switch to window 2SPC w c
- delete current window
import akka.actor._ | |
import akka.stream.scaladsl.Flow | |
import org.apache.spark.streaming.dstream.ReceiverInputDStream | |
import org.apache.spark.streaming.receiver.ActorHelper | |
import akka.actor.{ ExtensionKey, Extension, ExtendedActorSystem } | |
import scala.reflect.ClassTag | |
object AkkaStreamSparkIntegration { |
This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet
SPC q q
- quitSPC w /
- split window verticallySPC w
- - split window horizontallySPC 1
- switch to window 1SPC 2
- switch to window 2SPC w c
- delete current windowhaoyi-mbp:Ammonite haoyi$ ~/amm | |
Loading... | |
Welcome to the Ammonite Repl 0.5.2 | |
(Scala 2.11.7 Java 1.8.0_25) | |
haoyi-Ammonite@ load.ivy("org.scalaj" %% "scalaj-http" % "2.2.0") | |
haoyi-Ammonite@ import ammonite.ops._, scalaj.http._ | |
import ammonite.ops._, scalaj.http._ | |
haoyi-Ammonite@ Http("https://api.github.com/repos/scala/scala").asString | |
res2: HttpResponse[String] = HttpResponse( |
print("UPDATE AUG 2023: this script is beyond old and broken") | |
print("You may find interesting and more up to date resources in the comments of the gist") | |
exit() | |
from slacker import Slacker | |
import json | |
import argparse | |
import os | |
# This script finds all channels, private channels and direct messages |
#!/usr/bin/python3 | |
# pip3 install markdown | |
template = """<!DOCTYPE html> | |
<html dir="rtl"> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> |
lazy val dotEnvFile = taskKey[String]("Defines the file to load environment variables from") | |
dotEnvFile := ".env" | |
// The task returns the loaded dotEnv file and a map of the loaded variables, in case it would need to be manipulated somewhere else | |
lazy val loadEnv = taskKey[(File, Map[String, String])]("""Loads the environment variables from file defined by task `dotEnvFile` (they must follow the format "export X=Y")""") | |
loadEnv := { | |
val logger = ConsoleLogger() | |
val sourceFileName = dotEnvFile.value |
import shapeless._ | |
import scalaz._ | |
import Scalaz._ | |
object console extends App { | |
trait Foo[A] { | |
type B | |
def value: B |
(note: replace ORGANIZATION
and PROJECT
)
git clone git clone [email protected]:ORGANIZATION/PROJECT.git my-repository
import akka.actor._ | |
import akka.event.{LookupClassification, EventBus} | |
import akka.event.ActorEventBus | |
case class Book(title: String, authors: List[String]) | |
class AuthorBookBus(author: String) extends EventBus | |
with LookupClassification | |
with ActorEventBus { | |
code.google.com | |
googleapis.com | |
googleusercontent.com | |
ytimg.com | |
youtube.com | |
youtube-nocookie.com | |
bitbucket.org | |
thepiratebay.se | |
humblebundle.com | |
plus.url.google.com |