Skip to content

Instantly share code, notes, and snippets.

View menxit's full-sized avatar

Federico Ginosa menxit

View GitHub Profile
@menxit
menxit / .spacemacs
Created April 6, 2018 21:12
.spacemacs
;; -*- 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

Keybase proof

I hereby claim:

  • I am menxit on github.
  • I am menxit (https://keybase.io/menxit) on keybase.
  • I have a public key ASCiu15L-4v-q_-P_b2LDGT4wZNOYAmbK9HWvTCTFN_w5wo

To claim this, I am signing this object:

0xD0D4a30F89f9dd7353694059aA949fC7170B9CCd
@menxit
menxit / ProducersConsumers.scala
Last active November 8, 2017 11:05
Dijkstra Semaphore in Scala
object ProducersConsumers {
val N = 5
val NUMBER_OF_PRODUCERS = 10
val NUMBER_OF_CONSUMERS = 2
val PIENE = new Semaphore(0)
val VUOTE = new Semaphore(N)