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
# type this in your Terminal/iTerm/whatever: | |
# get conda | |
brew install miniforge | |
conda init "$(basename "${SHELL}")" # as indicated by homebrew | |
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
<?php | |
declare(strict_types=1); | |
use PHPUnit\Framework\Assert; | |
use PHPUnit\Framework\Constraint\Callback; | |
use PHPUnit\Framework\Constraint\Constraint; | |
/** | |
* This is a replacement for InvocationMocker::withConsecutive() which is |
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
<?php | |
declare(strict_types=1); | |
use Doctrine\DBAL\Driver\Exception as TheDriverException; | |
use Doctrine\DBAL\Exception\DriverException; | |
use PHPUnit\Framework\TestCase; | |
final class MyTest extends TestCase | |
{ |
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
from kb import KMKKeyboard | |
from kmk.keys import KC | |
from kmk.modules.layers import Layers | |
from kmk.modules.modtap import ModTap | |
from kmk.hid import HIDModes | |
from kmk.handlers.sequences import send_string | |
import supervisor | |
from kmk.extensions.peg_oled_Display import Oled,OledDisplayMode,OledReactionType,OledData | |
from kmk.extensions.peg_rgb_matrix import Rgb_matrix | |
from kmk.modules.split import Split, SplitSide, SplitType |
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 php | |
<?php | |
if (isset($argv[1]) && ($argv[1] == '--help' || $argv[1] == '-h')) { | |
echo sprintf( | |
"Usage: \n [igbinary-serialized data] | %s\n", | |
basename(__FILE__) | |
); | |
exit(); | |
} |