Skip to content

Instantly share code, notes, and snippets.

View iamthiago's full-sized avatar

Thiago Pereira iamthiago

  • Stockholm, Sweden
View GitHub Profile
Name: Flash
Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc=
if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676
Thank you!
@pedroxs
pedroxs / steps_for_dic_file.txt
Last active May 23, 2017 19:41
Install dictionaries to use with IntelliJ
# reference StackOverflow: https://stackoverflow.com/a/1950073/1453658
❯ sudo dnf install aspell-pt_BR
❯ aspell --lang pt_BR dump master | aspell --lang pt_BR expand | tr ' ' '\n' > portugues.dic
@N1v0k
N1v0k / docker.cleanup.sh
Created November 14, 2016 09:20
Cleanup Docker (remove stopped images)
#!/bin/bash
docker rm -v $(docker ps --filter status=exited -q 2>/dev/null) 2>/dev/null
docker rmi $(docker images --filter dangling=true -q 2>/dev/null) 2>/dev/null

Applied Functional Programming with Scala - Notes

Copyright © 2016-2018 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
@davegurnell
davegurnell / BigData.scala
Last active September 14, 2021 04:53
Slick database mapping of >22 columns using HLists.
/* ===== NOTE =====
*
* This code sample is out-of-date!
*
* If you're looking for support for shapeless HLists in Slick queries,
* check out [Slickless](https://github.com/underscoreio/slickless).
*
* ================
*/
import slick.driver.MySQLDriver.simple._
if [ ! -e /home/jenkins/.gvm/scripts/gvm ]
then
wget https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer
chmod +x gvm-installer
./gvm-installer
fi
source /home/jenkins/.gvm/scripts/gvm
gvm install go1
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 16, 2025 13:41
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@ngocdaothanh
ngocdaothanh / gist:3764694
Created September 22, 2012 00:43
Scala Assignment: Recursion
package recfun
import scala.collection.mutable.ListBuffer
import common._
/** https://class.coursera.org/progfun-2012-001/assignment/view?assignment_id=4 */
object Main {
def main(args: Array[String]) {
println("Pascal's Triangle")
for (row <- 0 to 10) {
@patriknw
patriknw / TellThroughputPerformanceSpec2.scala
Created April 2, 2012 18:56
TellThroughputPerformanceSpec used for the 50 million msg/s test
case object Run
case object Msg
class Destination extends Actor {
def receive = {
case Msg sender ! Msg
}
}
class Client(