Skip to content

Instantly share code, notes, and snippets.

Julian Fleischer scravy

Block or report user

Report or block scravy

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.txt
### Keybase proof
I hereby claim:
* I am scravy on github.
* I am scravy (https://keybase.io/scravy) on keybase.
* I have a public key ASDeIpZp4Noqd8mYAEpKe4FGE0opfrjJK1SoWGZsGE_xrAo
To claim this, I am signing this object:
View run-unit-tests.sh
# tested on macOS, required GNU Parallel (`brew install parallel`)
src/test/test_unite --list_content 2>&1 | \
grep -v -F ' ' | \
awk '{ print "src/test/test_unite --run_test=" $0 " > /dev/null 2>&1 && echo - [x] " $0 " || echo - [ ] " $0 }' | \
parallel -j 0 bash -c 2> /dev/null | \
sort
@scravy
scravy / go-haskell-drugs.md
Last active Jan 24, 2019
golang and haskell
View go-haskell-drugs.md

<dev one> [7:20 PM]

yes!

go code immediately injects into the brain, no need to even read it 🙂

what a lovely language

<dev two> [7:20 PM]

@scravy
scravy / insanity.md
Created Dec 11, 2018
Sanity and Insanity in different programming languages
View insanity.md

Java:

class Person {
    private String firstName;
    private String lastName;
      
    public String getDisplayName() {
        return firstName + " " + lastName;
    }
View ToString.scala
package com.simplaex.gist
import java.util.Objects
object ToString {
trait Formattable {
override def toString: String = {
val sb = new StringBuilder
for (field <- getClass.getDeclaredFields if !field.isSynthetic) {
View FuturesWithRecover.scala
import java.util.concurrent.Executors
import scala.concurrent.{ExecutionContext, Future}
object Main extends App {
val executorService = Executors.newFixedThreadPool(5)
implicit val executionContext: ExecutionContext = ExecutionContext.fromExecutorService(executorService)
View minmax.java
package aufgabe1;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Random;
import java.util.concurrent.Callable;
public class MinMax<T extends Comparable<T>> {
View matrix.hs
{-# LANGUAGE Haskell2010
, FlexibleContexts
#-}
{-# OPTIONS -Wall #-}
module Main where
import Control.Monad
import Control.Monad.ST
import Data.List
@scravy
scravy / Makefile
Created Feb 2, 2013
AWT started from JNI (does not work, using Mac OS X)
View Makefile
JAVAHOME=/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home
swing: swing.c StartAWT.class
gcc -Wall -pedantic --std=c99 swing.c -ljvm \
-L$(JAVAHOME)/jre/lib/server \
-I$(JAVAHOME)/include \
-I$(JAVAHOME)/include/darwin \
-o $@
install_name_tool -add_rpath $(JAVAHOME)/jre/lib/server $@
You can’t perform that action at this time.