Skip to content

Instantly share code, notes, and snippets.

{-# LANGUAGE DeriveGeneric, TypeSynonymInstances, FlexibleInstances, OverloadedStrings #-}
import Data.Aeson
import Data.DateTime
import Data.Text
import Control.Monad
import qualified Data.ByteString.Lazy as B
import Network.HTTP.Conduit (simpleHttp)
import GHC.Generics

Récompenses pour les bénévoles de la Nuit du jeu Oniris 2016

  • 2 heures: Entrée gratuite (valeur de 15.-) + 1 bon boisson
  • 4 heures: Entrée gratuite + 3 bons boisson + 2 bons snacks
  • 6 heures: Entrée gratuite + T-shirt Oniris + Accès à la salle bénévoles avec boissons gratuites + 3 bons boisson + 2 bons snacks
  • 8 heures: Entrée gratuite + T-shirt Oniris + Accès à la salle bénévoles avec boissons gratuites + 2 Marque-pages oniris + 3 bons boisson + 2 bons snacks + 1 souper chaud
  • 12 heures: Entrée gratuite + T-shirt Oniris + Accès à la salle bénévoles avec boissons gratuites + 2 Marque-pages oniris + 7 bons boisson + 5 bons snacks + 1 souper chaud + L'amour inconditionnel du comité
foobar:playcloud benjamin$ docker-compose up -d
Creating playcloud_redis_1
Creating playcloud_coder_1
Creating playcloud_proxy_1
foobar:playcloud benjamin$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
1129ea3c7007 playcloud_proxy "mvn spring-boot:run" 7 seconds ago Up 6 seconds 0.0.0.0:3000->8080/tcp playcloud_proxy_1
7796932fd042 playcloud_coder "/usr/bin/python /usr" 7 seconds ago Up 6 seconds 1234/tcp playcloud_coder_1
680c36c55fc7 redis "docker-entrypoint.sh" 7 seconds ago Up 6 seconds 6379/tcp playcloud_redis_1
foobar:playcloud benjamin$ docker inspect 1129ea3c7007
foobar:playcloud benjamin$ docker-compose logs
Attaching to playcloud_proxy_1, playcloud_coder_1, playcloud_redis_1
redis_1 | _._
redis_1 | _.-``__ ''-._
redis_1 | _.-`` `. `_. ''-._ Redis 3.2.0 (00000000/0) 64 bit
redis_1 | .-`` .-```. ```\/ _.,_ ''-._
proxy_1 | [INFO] Scanning for projects...
proxy_1 | Downloading: https://repo.spring.io/libs-release/org/apache/maven/plugins/maven-help-plugin/2.2/maven-help-plugin-2.2.pom
redis_1 | ( ' , .-` | `, ) Running in standalone mode
Downloaded: https://repo.spring.io/libs-release/org/apache/maven/plugins/maven-help-plugin/2.2/maven-help-plugin-2.2.pom (9 KB at 6.2 KB/sec)
class Point
def __init__(self, x, y):
self._x = x
self._y = y
def to_string(self):
return str(self._x) + " + " + str(self._y) + "i"
Dear scotchit reader,
As you are probably about to read one of my reviews, I will keep things short at first and explain
more in the end. Here's the criteria I take into account. All of those are scored on 10,
and I calculate a compound score from those, going up to a 100 points.
- Nose
- Taste
- Finish
- Complexity:
@benjaminsavoy
benjaminsavoy / navbar.html
Last active December 31, 2015 14:49
A not-too-fugly navigation bar that I use with the ivory framework at http://weice.in/ivory/
<div class="nav">
<div class="row space-bot">
<div class="c3 first">
<h4 class="nav-title">My Site</h4>
</div>
<div class="c8">
<div class="row"><ul class="nav">
<li class="c3"><h5>Menu 1</h5><ul>
<li><a href="/#11">Option 1.1</a></li>
<li><a href="/#12">Option 1.2</a></li>
<!-- sample API query -->
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns2="http://object.api.zuora.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ns1="http://api.zuora.com/">
<SOAP-ENV:Header>
<ns1:SessionHeader>
<ns1:session>LiUBQF...ugxg2jJuCA==</ns1:session>
</ns1:SessionHeader>
</SOAP-ENV:Header>
<SOAP-ENV:Body>
<ns1:query>
<ns1:queryString>select id from account</ns1:queryString>
Request SOAP Message = <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://api.zuora.com/" xmlns:ns2="http://object.api.zuora.com/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header/><SOAP-ENV:Body><ns1:login><ns1:username>someuser</ns1:username><ns1:password>somepass</ns1:password></ns1:login></SOAP-ENV:Body></SOAP-ENV:Envelope>
Response SOAP Message = <?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault xmlns:fns="http://fault.api.zuora.com/"><faultcode>fns:INVALID_VALUE</faultcode><faultstring>Invalid login. User name and password do not match.</faultstring><detail><fns:LoginFault><fns:FaultCode>INVALID_VALUE</fns:FaultCode><fns:FaultMessage>Invalid login. User name and password do not match.</fns:FaultMessage></fns:LoginFault></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
# If -Pdebug=true then we give some additional output to help stack debugging.
debug=${debug-false}
if [[ "$debug" == "true" ]]; then
echo -e "\n##### BEGIN TOMCAT7 INFO #####"
_dir=$(pwd)
cd "$app_dir/.genapp/setup_status"
for _file in *; do
echo -e "\n----- Setup status for $_file is: -----"
cat "$_file"