This file contains 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
#!/usr/bin/env bash | |
BRANCH=origin/master | |
TEST_KEYWORD="Expect" | |
function runTest() { | |
./node_modules/.bin/elm-test | |
} | |
# look for a new test in a + line in the diff | |
function testJustAdded(){ |
This file contains 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
#!/usr/bin/env bash | |
function test() { | |
runhaskell FiboSpecs.hs | |
} | |
function commit() { | |
git add . | |
git commit --squash=lastRed | |
} |
This file contains 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
#!/usr/bin/env bash | |
function test() { | |
runhaskell FiboSpecs.hs | |
} | |
function commit() { | |
git add . | |
git commit | |
git tag -f lastRed | |
} |
This file contains 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
"use strict"; | |
import {should} from "chai"; | |
should(); | |
function fizzbuzz(n) { | |
const rules = [{multiple: 3, word: "fizz"}, {multiple: 5, word: "buzz"}]; | |
return rules.filter(({multiple, _}) => n % multiple === 0) | |
.map(({_, word}) => word) | |
.reduce((a, b) => a + b, "") |
This file contains 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
:loop | |
timeout 120 | |
git reset --hard -q | |
git clean -f -q . | |
goto :loop |
This file contains 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
import Data.So | |
fizz : Integer -> Bool | |
fizz n = (n `mod` 3) == 0 | |
buzz : Integer -> Bool | |
buzz n = (n `mod` 5) == 0 | |
data FizzBuzz : (n: Integer) -> Type where | |
Fizz : {auto fizz : So (fizz n)} -> FizzBuzz n |
This file contains 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
#!/usr/bin/env sh | |
while : | |
do | |
sleep 120 | |
git reset --hard -q | |
git clean -f -q . | |
done |