Skip to content

Instantly share code, notes, and snippets.

View strobe's full-sized avatar

strobe strobe

View GitHub Profile
@strobe
strobe / .spacemacs
Last active September 26, 2017 06:05
;; -*- mode: emacs-lisp -*-
;; This file is loaded by Spacemacs at startup.
;; It must be stored in your home directory.
(defun dotspacemacs/layers ()
"Configuration Layers declaration.
You should not put any user code in this function besides modifying the variable
values."
(setq-default
;; Base distribution to use. This is a layer contained in the directory
<ul>
<li>[TIMESTAMP_IS_MISSING] Реклама от Виктора и чем занимается</li>
<li>[TIMESTAMP_IS_MISSING] Монорепы</li>
<li>[00:01:54] Lightbend, Twitter stack, etc. Виктора Камбек!</li>
<li>[00:27:35] Путешествие в Java и обратно Ожидания от Scala в будущем; МОЖЕТ GO? // Виктор</li>
<li>[00:37:13] streaming - Storm, Akka Streams</li>
<li>[00:41:01] базы - mongodb, postgres</li>
<li>[00:43:27] деплой</li>
<li>[01:12:32] <a href="https://github.com/lampepfl/dotty/issues/2887">Odersky - higher-kinded language import and declaring higher-kinded types officially unsound.</a></li>
<li>[01:15:35] <a href="https://blog.janestreet.com/ironing-out-your-development-style/">JaneStreet - Ironing out your development style</a></li>
@strobe
strobe / .gitlab-ci.yml
Last active August 18, 2017 04:30
convert org files with ditaa diagrams to html
# This file is a template, and might need editing before it works on your project.
# see https://docs.gitlab.com/ce/ci/yaml/README.html for all available options
variables:
GIT_SUBMODULE_STRATEGY: recursive
build1:
stage: build
cache:
paths:
- org-spec/
<ul>
<li>[00:03:51] <a href="https://docs.google.com/forms/d/14KWpoF8nI4xXoN8jVGH1i-zehjLKytXpQQMKdTDVQ5U/edit#responses">Результаты опроса слушателей</a></li>
<li>[00:08:04] Спасибо всем, гостям и обзор кто в каком был</li>
<li>[00:09:27] уже год !!!</li>
<li>[00:11:48] Scala Center - Aid the ecosystem in upgrading to sbt 1.0.x
<ul>
<li><a href="https://gist.github.com/larsrh/310a470a43c62cc1d44b94586022717d">https://gist.github.com/larsrh/310a470a43c62cc1d44b94586022717d</a></li>
<li><a href="https://scala.epfl.ch/minutes/2017/05/30/may-30-2017.html">https://scala.epfl.ch/minutes/2017/05/30/may-30-2017.html</a></li>
</ul>
</li>
<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>
@strobe
strobe / compile-emacs.sh
Last active June 28, 2020 16:35 — 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>[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>

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
@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)))
sctags -f TAGS -e -R core/* api/*