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/bash | |
| # depends on https://github.com/sindresorhus/capture-website-cli | |
| # npm install --global capture-website-cli | |
| BASE=https://wahapedia.ru/wh40k9ed/factions/craftworlds/ | |
| UNITS="Avatar-of-Khaine Farseer Warlock Dire-Avengers Guardian-Defenders Rangers Striking-Scorpions Warp-Spiders Phoenix Dark-Reapers War-Walkers Wraithlord" | |
| echo "<html><style>img {width:100%;}.unit{width:80%;margin: auto;margin-bottom: 1em;}</style><body>" > index.html | |
| for u in $UNITS; 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
| import java.util.zip.* | |
| import groovy.json.* | |
| def sprite = [ | |
| isStage: false, | |
| name: 'letters', | |
| variables: [:], | |
| lists: [:], | |
| broadcasts: [:], | |
| blocks: [:], |
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
| import java.util.zip.* | |
| import groovy.json.* | |
| def sprite = [ | |
| isStage: false, | |
| name: "letters", | |
| variables: [:], | |
| lists: [:], | |
| broadcasts: [:], | |
| blocks: [:], |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
| #include "Blink.h" | |
| Blink::Blink( Scheduler* s, | |
| int pin, | |
| unsigned long intervalOn, | |
| unsigned long intervalOff ) : Task(intervalOn, TASK_FOREVER, s) { | |
| this->pin = pin; | |
| this->intervalOn = intervalOn; | |
| this->intervalOff = intervalOff <= 0 ? intervalOn : intervalOff; | |
| pinMode(pin, OUTPUT); |
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
| # command line to install | |
| sudo systemctl enable $PWD/interim_temp.service | |
| sudo systemctl start interim_temp |
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 ruby | |
| require_relative 'stats' | |
| def run_test(ndice) | |
| acc = [] | |
| 0.upto((6 ** ndice) - 1) do |dscore| | |
| ds = dscore.to_s(6).rjust(ndice,'0').split(//).map{|s| s.to_i + 1} | |
| v = yield(ds) | |
| acc << v | |
| end |
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/bash | |
| # Homebrew dependencies for Mac: | |
| # brew tap bedrock-viz/tap | |
| # brew install coreutils findutils bedrock-viz | |
| # | |
| # Also depends on docker | |
| # lazy error handling :-P | |
| set -e |
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 ruby | |
| $experiments = 10000 | |
| # distance fudging - assume distance X is "within X" for rules purposes | |
| $startRange = 24 | |
| $range = $startRange | |
| $attemptChargeRange = 10 | |
| $rounds = 5 |
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 ruby | |
| $experiments = 10000 | |
| # distance fudging - assume distance X is "within X" for rules purposes | |
| $startRange = 24 | |
| $range = $startRange | |
| $attemptChargeRange = 10 | |
| $rounds = 5 |
NewerOlder