This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case msg is InventoryContentMessage: | |
if(getQualifiedClassName(msg) != getQualifiedClassName(InventoryContentMessage)) | |
{ | |
return false; | |
} | |
icmsg = msg as InventoryContentMessage; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="row"> | |
<div class="col-md-8 col-md-offset-2"> | |
<p class="lead"> | |
<h1>Why subscribe ?</h1> | |
Because,! | |
</p> | |
</div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku logs -n 5000 --app "$1" | grep router | grep -Po 'fwd="\K.*?(?=")' | uniq | wc -l |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Singleton | |
public class MyService extends FsmService { | |
@RequiredArgsConstructor | |
static class Started { | |
final Map<Class<?>, Map<Integer, Object>> objects; | |
} | |
@RequiredArgsConstructor | |
static class Find { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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>(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |