Skip to content

Instantly share code, notes, and snippets.

View volgar1x's full-sized avatar

Antoine Chauvin volgar1x

View GitHub Profile
module Main where
main = run tests where
run [] = putStrLn "no tests to run"
run [x] = x
run (x:xs) = x >> sep >> run xs
tests = [
myConcatTest,
concatManyTest,
package org.heater.core.plugin;
import com.google.inject.AbstractModule;
import com.google.inject.multibindings.Multibinder;
import org.heater.api.HeaterActivator;
import java.util.ArrayList;
import java.util.List;
public class PluginManager {
case msg is InventoryContentMessage:
if(getQualifiedClassName(msg) != getQualifiedClassName(InventoryContentMessage))
{
return false;
}
icmsg = msg as InventoryContentMessage;
defmodule AcmeApp.Flash do
import Plug.Conn
defmodule UnknownFlashException do
defexception key: nil
def message(exception), do: "unknown flash " <> inspect(exception.key)
end
defmodule Item do
<div class="row">
<div class="col-md-8 col-md-offset-2">
<p class="lead">
<h1>Why subscribe ?</h1>
Because,!
</p>
</div>
</div>
heroku logs -n 5000 --app "$1" | grep router | grep -Po 'fwd="\K.*?(?=")' | uniq | wc -l
@Singleton
public class MyService extends FsmService {
@RequiredArgsConstructor
static class Started {
final Map<Class<?>, Map<Integer, Object>> objects;
}
@RequiredArgsConstructor
static class Find {
package shitty.iut;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static List<String> getWords(String line) {
List<String> result = new ArrayList<String>();
(defun add (elem arbre)
(cond
((null arbre)
(list elem nil nil))
((plus-grand elem (rac arbre))
(list (rac arbre)
(sag arbre)
(add elem (sad arbre))))
((plus-petit elem (rac arbre))
defmodule Conn do
defstruct halted: false
end
def send(conn, _) when conn.halted do # does not compile
conn
end
def send(conn, _) when conn[:halted] do # does compile
conn