Skip to content

Instantly share code, notes, and snippets.

View strobe's full-sized avatar

strobe strobe

View GitHub Profile
{
"id": "vip-hello",
"cmd": null,
"cpus": 0.1,
"mem": 64,
"disk": 0,
"instances": 1,
"container": {
"type": "DOCKER",
"volumes": [],
@strobe
strobe / iperf w docker
Created June 30, 2016 04:22
iperf on azure
docker logs 80e086681cf5
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[ 4] local 172.17.0.2 port 5001 connected with 10.0.0.5 port 35326
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-10.7 sec 11.8 MBytes 9.21 Mbits/sec
[ 5] local 172.17.0.2 port 5001 connected with 10.0.0.5 port 35334
[ 5] 0.0-10.2 sec 11.6 MBytes 9.53 Mbits/sec
@strobe
strobe / ramdisk-create.sh
Last active April 21, 2017 02:43
ensime-server tests script
#!/bin/bash
diskutil erasevolume HFS+ 'ramdisk' `hdiutil attach -nomount ram://8388608`
@strobe
strobe / it-tests.log
Created April 1, 2017 11:22
ensime tests logs
[info] Loading global plugins from /Users/evgeniy/.sbt/0.13/plugins/project
[info] Loading global plugins from /Users/evgeniy/.sbt/0.13/plugins
[info] Loading project definition from /Users/evgeniy/Dropbox/dev/12_scala/01_Exploation/ensime-server/project
[info] Resolving key references (12318 settings) ...
[info] Set current project to ensime (in build file:/Users/evgeniy/Dropbox/dev/12_scala/01_Exploation/ensime-server/)
[info] Setting version to 2.11.8
[info] Reapplying settings...
[info] Set current project to ensime (in build file:/Users/evgeniy/Dropbox/dev/12_scala/01_Exploation/ensime-server/)
[info] ImplicitAnalyzerSpec:
[info] ImplicitAnalyzer
sctags -f TAGS -e -R core/* api/*
@strobe
strobe / tags.el
Last active May 19, 2017 21:58
ensime ctags config for spacemacs
;; ensime - etags-select (see: http://ensime.org/editors/emacs/hacks/#tags
;; and for .ctags config https://gist.github.com/salomvary/3372e9cd40f5b09a928b)
(defun ensime-edit-definition-with-fallback ()
"Variant of `ensime-edit-definition' with ctags if ENSIME is not available."
(interactive)
(unless (and (ensime-connection-or-nil)
(ensime-edit-definition nil))
(projectile-find-tag)))

Advanced Functional Programming with Scala - Notes

Copyright © 2017 Fantasyland Institute of Learning. All rights reserved.

1. Mastering Functions

A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.

val square : Int => Int = x => x * x
<ul>
<li>[00:00:51] <a href="http://developer.lightbend.com/blog/2017-06-12-faster-scala-compiler/">Towards a faster Scala compiler</a></li>
<li>[00:07:31] <a href="http://dotty.epfl.ch/docs/)">new Dotty Documentation</a></li>
<li>[00:08:26] ANNOUNCING DOTTY 0.1.2-RC1, A MAJOR STEP TOWARDS SCALA 3
<ul>
<li><a href="http://www.scala-lang.org/blog/2017/05/31/first-dotty-milestone-release.html)">http://www.scala-lang.org/blog/2017/05/31/first-dotty-milestone-release.html)</a></li>
<li><a href="http://www.cakesolutions.net/teamblogs/dotty)">http://www.cakesolutions.net/teamblogs/dotty)</a></li>
</ul>
</li>
<li>[00:19:04] <a href="http://underscore.io/blog/posts/2017/05/29/why-we-open-sourced-our-books.html)">Underscore - Why We Open Sourced our Books</a></li>
@strobe
strobe / compile-emacs.sh
Last active December 2, 2024 06:15 — forked from ba0f3/compile-emacs.sh
Compile emacs 25.2 on CentOS 7.x
yum install gcc make ncurses-devel giflib-devel libjpeg-devel libtiff-devel
wget wget http://ftp.gnu.org/gnu/emacs/emacs-25.2.tar.xz
tar xJf emacs-25.2.tar.xz
cd emacs-25.2
./configure --without-x --without-selinux
make && sudo make install
<ul>
<li>[TIMESTAMP_IS_MISSING] Проблема с тред пулами</li>
<li>[00:00:53] анонс - следующий выпуск 6 авг. будет юбилейным, мы к нему подготовим опрос</li>
<li>[00:01:03] sbt 1.0
<ul>
<li><a href="http://www.scala-sbt.org/1.0/docs/sbt-1.0-Release-Notes.html">http://www.scala-sbt.org/1.0/docs/sbt-1.0-Release-Notes.html</a></li>
<li><a href="https://github.com/sbt/sbt/releases/tag/v1.0.0-RC2">https://github.com/sbt/sbt/releases/tag/v1.0.0-RC2</a></li>
</ul>
</li>
<li>[00:11:05] <a href="https://www.kickstarter.com/projects/andanthor/scalaquest-a-game-to-learn-scala">ScalaQuest</a></li>