Restoring a tmux session that has stopped showing input (and restoring user sanity in the process):
$ stty sane
import Graphics.Element exposing (Element, show) | |
import Signal exposing (Signal, map, foldp) | |
import Time exposing (fps) | |
type alias Point = {x: Float, y: Float} | |
main : Signal Element | |
main = | |
map show <| foldp update {x=0, y=0} (fps 30) |
import Color exposing (red) | |
import Graphics.Collage exposing (circle, collage, Form, filled, move) | |
import Graphics.Element exposing (Element) | |
import List exposing (repeat) | |
import Signal exposing (Signal, (<~), foldp) | |
import Time exposing (fps) | |
w : Float | |
w = 500 | |
h : Float |
(require rackunit) | |
;;; | |
;; Problème avec notre définition actuelle : | |
(check-equal? (plus "fizz" 1) ;; définition de 'plus pour "fizz" | |
4) | |
(check-equal? (plus 8 1) ;; résultat qui donne "fizz" | |
"fizz") |
{-- Fizzbuzz sur un monoïde ----------------------- | |
Ensemble : le sous-ensemble de Integerzz des éléments pour lesquels "fizzbuzz" est l'indentité. | |
Loi de composition interne : la fonction "pluzz". | |
Élément neutre : ("fizzbuzz", 0) | |
-----------------------------------------------------------} | |
import Graphics.Element exposing (..) |
package com.scratch.test; | |
import org.junit.Test; | |
import java.text.SimpleDateFormat; | |
import java.time.Instant; | |
import java.time.LocalDateTime; | |
import java.time.ZoneId; | |
import java.util.Date; | |
import java.util.TimeZone; |
\n | |
time_namelookup: %{time_namelookup}\n | |
time_connect: %{time_connect}\n | |
time_appconnect: %{time_appconnect}\n | |
time_pretransfer: %{time_pretransfer}\n | |
time_redirect: %{time_redirect}\n | |
time_starttransfer: %{time_starttransfer}\n | |
----------\n | |
time_total: %{time_total}\n | |
\n |
const boom = require('boom') | |
const productProvider = require('./services/product-provider') | |
function getProducts(request, reply) { | |
productProvider.findAll((err, products) => { | |
if (err) { | |
return reply(boom.internal("Something happened!", err)) | |
} | |
reply(products) |
#!/usr/bin/env bash | |
while [[ $# > 1 ]] | |
do | |
key="$1" | |
case $key in | |
-c|--code) | |
CODE="$2" | |
shift |
storage.makeId('dress') | |
.then(a => storage.makeId('dress').then(b => [a, b])) | |
.then(([a, b]) => storage.makeId('dress').then(c => [a, b, c])) | |
.then(([a, b, c]) => { | |
a.should.be.lessThan(b); | |
a.should.be.lessThan(c); | |
b.should.be.lessThan(c); | |
}) |