Skip to content

Instantly share code, notes, and snippets.

View fommil's full-sized avatar
😽
having a fantastic day not writing any scala

>>= fommil

😽
having a fantastic day not writing any scala
View GitHub Profile
@matanox
matanox / build.sbt
Created October 23, 2015 13:08
multi-project sbt build definition, involving dependent compiler and sbt plugins
val integrationTest = taskKey[Unit]("Executes integration tests.")
lazy val root = (project in file(".")).aggregate(simpleGraph, compilerPluginUnitTestLib, compilerPluginn, canveSbtPlugin, sbtPluginTestLib).enablePlugins(CrossPerProjectPlugin).settings(
scalaVersion := "2.11.7",
crossScalaVersions := Seq("2.10.4", "2.11.7"),
publishArtifact := false, // no artifact to publish for the virtual root project
integrationTest := (run in Compile in sbtPluginTestLib).value // not working: need to bounty http://stackoverflow.com/questions/33291071/invoking-a-subprojects-main-with-a-custom-task
)
lazy val simpleGraph = (project in file("simpleGraph"))
~/software/tinkerpop/tinkerpop3$ bin/gremlin.sh
\,,,/
(o o)
-----oOOo-(3)-oOOo-----
plugin activated: tinkerpop.server
plugin activated: tinkerpop.utilities
plugin activated: tinkerpop.giraph
gremlin> graph = TinkerGraph.open()
==>tinkergraph[vertices:0 edges:0]
gremlin> graph.io(graphson()).readGraph('data/tinkerpop-modern.json')
#!/bin/sh
set -x
DBUS_NAME="org.freedesktop.login1"
DBUS_PATH="/org/freedesktop/login1"
DBUS_INTERFACE="org.freedesktop.login1.Manager"
DBUS_SIGNAL="PrepareForSleep"
INHIBITOR_PID=
install_background_inhibitor() {
@raulraja
raulraja / SearchService.scala
Created January 26, 2016 23:25
An example of refactoring nested login in the Ensime Search Service with `XorT`
import cats.data.Xor, cats.syntax.xor._, cats.data.XorT
//Some type aliases for semantic purposes
type IndexedSymbols = Iterable[(FileObject, List[FqnSymbol])]
type IndexingError = (String, Throwable)
type ProcessResult[A] = XorT[Future, IndexingError, A]
@eabait
eabait / charting.libraries.md
Last active July 13, 2017 04:34
Charting Libraries
@mandubian
mandubian / gist:0fd090c0f75a46346f5e7898eeac9e28
Last active September 15, 2017 15:11
Improving compile-time for structure based on implicits resolutions
@CarstenKoenig
CarstenKoenig / ScottyScriptDemo.hs
Created September 25, 2017 15:42
Demonstration of getting a scotty server running as a script - needs stack
#!/usr/bin/env stack
-- stack --resolver lts-9.5 script --package scotty
{-# LANGUAGE OverloadedStrings #-}
import Web.Scotty
import Data.Monoid (mconcat)
main = scotty 3000 $ do
@travisbrown
travisbrown / cease-and-desist-de-goes.md
Created July 31, 2020 13:29
Cease and desist letter from John A. De Goes

Please see this response for more context.


Dear Mr. Brown:

We represent the legal interests of our client, Mr. John Arlen De Goes, Maryland, USA.

For several years now, you have repeatedly defamed our client on the internet. Your public blog https://meta.plasm.us/posts/2019/09/01/jdg-and-the-fp-community/ specifically targets our client with the goal to publicly vilify our client. This blog can be easily found with the help of search engines like Google by just searching for the name of our client. On this blog, amongst other false statements, you falsely allege the following about our client:

@olvaffe
olvaffe / i3lock-wait-for-suspend
Created May 30, 2014 17:20
i3lock-wait-for-suspend
#!/bin/sh
DBUS_NAME="org.freedesktop.login1"
DBUS_PATH="/org/freedesktop/login1"
DBUS_INTERFACE="org.freedesktop.login1.Manager"
DBUS_SIGNAL="PrepareForSleep"
INHIBITOR_PIDS=
install_background_inhibitor() {

Code of Conduct

Communication

Times
  • All times will be communicated in a way that is unambiguous. This communication may be a local time, with a UTC offset specified.

For example: