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 orjson # pip install orjson | |
import hashlib | |
def deterministic_split_jsonl_orjson(input_file, train_file, test_file, | |
id_field='id', test_ratio=0.2, random_seed=42): | |
train_count = 0 | |
test_count = 0 | |
threshold = int(test_ratio * 2**32) | |
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
Prompt> How does one debug a crash with warp terminal on startup? | |
Here are several approaches to debug a Warp terminal crash on startup: | |
## 1. Check Crash Logs | |
First, look for crash logs in the system logs: | |
# Check system logs for Warp crashes | |
log show --predicate 'process == "Warp"' --last 1h | |
# Or check Console.app for crash reports |
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 perl | |
use strict 'vars'; | |
use warnings; | |
use Plack; | |
use Plack::Test::Agent; | |
use Socket; | |
my $server = 'Standalone'; |
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
festival |
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
this |
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
use strict; | |
use warnings; | |
use 5.010; | |
my $var; | |
$var //= 2; | |
say $var; | |
my @array_multiplied = qw(3 5 7) x 3; |