Skip to content

Instantly share code, notes, and snippets.

View vil1's full-sized avatar
❤️
Speading love

Valentin Kasas vil1

❤️
Speading love
  • 47degrees
  • between a chair and a keyboard
View GitHub Profile
package main
import (
"sort"
"fmt"
)
type Element struct {
a int
b string
package com.fullsix.edito.protocol.site;
import com.fullsix.edito.api.Channel;
import com.fullsix.edito.api.PublicationMethod;
import com.google.common.collect.ImmutableSet;
import javax.annotation.concurrent.Immutable;
import java.io.Serializable;
import java.net.URL;
import java.util.Set;
object Events {
object Event {
def build(typee: String) = {
typee match {
case "foo" => new FooEvent
case "bar" => new BarEvent
}
}
}
package scalaio
import shapeless._, poly._
object list extends (Id ~> List) {
def apply[T](t : T) = List(t)
}
object headOption extends (List ~> Option) {
def apply[T](l : List[T]) = l.headOption
package ahoy
import scala.collection.mutable
object transducer {
type Reducer[A, R] = R => A => R
trait Transducer[A, B] {
#!/bin/sh
### BEGIN INIT INFO
# Provides:
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start Event Store at boot time
# Description: Runs the Event Store database node
### END INIT INFO
import shapeless._
object definition {
case class Property[A](a: A)
case class Embed[A](a: A)
case class Hidden[A](a: A)
def Prop[X] = Property[X] _

Keybase proof

I hereby claim:

  • I am vil1 on github.
  • I am vil1 (https://keybase.io/vil1) on keybase.
  • I have a public key ASD4Pv7Kw1kr7JQAj75RVhwQLhCd5-GAMRgsaT24xOQGKQo

To claim this, I am signing this object:

@vil1
vil1 / REPLesent.scala
Last active April 27, 2017 07:50
slides of my presentation "Shapeless ? Easy !" at ScalarConf 2016
/*
* Copyright 2015 Marconi Lanna
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@vil1
vil1 / 🏳️.md
Last active September 8, 2019 00:05

This is a witch hunt.

When you exclude a relentless innovator from a conference, when this exclusion results in excluding the young woman from North-Africa who was supposed to share the stage with him, it has nothing to do with promoting innovation and inclusivity. It is a witch hunt.

When you bar someone from contributing to a FLOSS project based on alleged aggressive communication without providing any concrete example of the said behavior nor explaining what you did to make this behavior stop before taking such extreme decision, it has nothing to do with making your community a better place. It is a witch hunt.

Witch hunts are bad. Not because they burn people with no fair trial and that some of the burnt people may not have been witches in the first place.

Witch hunts are bad because they burn people. Period.