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
| const DEBUG = false; | |
| const MOSQITO_DENSITY = 0.1; | |
| const MAP_HEIGHT = 200; | |
| const MAP_WIDTH = 120; | |
| function randomBoolean() { | |
| return Math.random() < MOSQITO_DENSITY; | |
| } | |
| class Map { |
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
| Name: demo | |
| Version: 0.0.1 |
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
| #!/usr/bin/env bash | |
| basedir="$(cd "$(dirname "${BASH_SOURCE}")" >/dev/null; pwd)" || exit 1 | |
| current_datetime="$(date --utc --iso-8601=ns)" | |
| function main.clean() { | |
| rm -rf "${basedir}/"{001..004}".txt" "${basedir}/"{boo,foo,bar,far} | |
| } | |
| function main.mkfile() { |
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
| const projectid = process.argv[1]; | |
| const clustername = process.argv[2]; | |
| const region = process.argv[3]; | |
| var ovh = require('ovh')({ | |
| endpoint: 'ovh-eu', | |
| appKey: process.env.OVH_APP_KEY, | |
| appSecret: process.env.OVH_APP_SECRET, | |
| consumerKey: process.env.OVH_CONSUMER_KEY, | |
| }); |
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
| def chars = [ | |
| 'a'..'z', '0'..'9', | |
| // 'àâäéèêëìîïòôöùûüÿçñ', | |
| '@#&!=+$£€*?,;.:-_(){}[]' | |
| ] | |
| def printChars(list) { | |
| println(list.join().replaceAll(/[\[\]-]/, /\\$0/)) | |
| } |
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.apache.jmeter.services; | |
| import java.io.ByteArrayOutputStream; | |
| import java.io.Closeable; | |
| import java.io.File; | |
| import java.io.FileNotFoundException; | |
| import java.io.IOException; | |
| import java.io.RandomAccessFile; | |
| import java.nio.charset.Charset; | |
| import java.util.concurrent.ThreadLocalRandom; |
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
| #!/bin/sh | |
| echo "Merging src-* directories into source" | |
| rm -rf "source" | |
| mkdir -p "source" | |
| for source in src-*; do | |
| echo " -- Merging ${source}" | |
| cp -r "${source}"/* "source" | |
| done |
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
| let myName = "Capucin" | |
| var isOver = false | |
| public init() { | |
| // Nothing | |
| } | |
| public func play(_ game:Game, _ teamId:Int) -> Direction { | |
| print("Team ID: \(teamId)") |
NewerOlder