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
# This is the default .slate file. | |
# If no ~/.slate file exists this is the file that will be used. | |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
# Resize Bindings | |
bind right:alt resize +10% +0 | |
bind left:alt resize -10% +0 |
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
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta content="width=device-width,initial-scale=1" name="viewport"> | |
<link rel="shortcut icon" href="data:image/svg+xml,%3C%3Fxml version='1.0' standalone='no'%3F%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 20010904//EN' 'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'%3E%3Csvg version='1.0' xmlns='http://www.w3.org/2000/svg' width='512.000000pt' height='512.000000pt' viewBox='0 0 512.000000 512.000000' preserveAspectRatio='xMidYMid meet'%3E%3Cg transform='translate(0.000000,512.000000) scale(0.100000,-0.100000)'%0Afill='%23000000' stroke='none'%3E%3Cpath d='M2096 3515 c-439 -660 -457 -685 -479 -674 -12 7 -69 41 -126 76 -57%0A34 -105 63 -107 63 -2 0 -314 -466 -694 -1035 l-690 -1035 2560 0 2560 0 -870%0A1305 -870 1305 -180 0 -180 0 -227 340 c-124 187 -229 340 -233 340 -4 0 -212%0A-308 -464 -685z m617 -75 l147 -220 180 0 180 0 488 -732 c269 -403 492 -740%0A497 -748 11 -18 57 -53 -610 454 -302 230 -555 420 -561 423 -7 2 -116 -72%0A-243 -1 |
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
diff --git a/src/lib/gen1/calc.zig b/src/lib/gen1/calc.zig | |
index a1cb8797..e801ba4f 100644 | |
--- a/src/lib/gen1/calc.zig | |
+++ b/src/lib/gen1/calc.zig | |
@@ -449,7 +449,10 @@ pub fn update( | |
if (try transitions(unfix(original), c1, c2, allocator, writer, .{ | |
.durations = durations, | |
.cap = true, | |
- })) |stats| try expect(stats.frontier <= MAX_FRONTIER); | |
+ })) |stats| { |
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
set -e | |
for file in `ls /Users/kjs/Code/src/github.com/scheibo/zig/build`; do | |
if [ "$file" != "master" ]; then | |
ln -sfn ~/Code/src/github.com/scheibo/zig/build/{$file,master} | |
zig version | |
make integration | |
fi | |
done |
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
const builtin = @import("builtin"); | |
const std = @import("std"); | |
const assert = std.debug.assert; | |
const expect = std.testing.expect; | |
const expectEqual = std.testing.expectEqual; | |
const expectError = std.testing.expectError; | |
const Ti = i64; | |
const Tu = u64; |
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
diff --git a/src/test/fuzz.zig b/src/test/fuzz.zig | |
index 803469c4..8f69dfaa 100644 | |
--- a/src/test/fuzz.zig | |
+++ b/src/test/fuzz.zig | |
@@ -21,7 +21,11 @@ var frames: ?std.ArrayList(Frame) = null; | |
const debug = false; // DEBUG | |
const showdown = pkmn.options.showdown; | |
-const chance = pkmn.options.chance and debug; | |
+const chance = pkmn.options.chance; // and debug; |
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
const std = @import("std"); | |
const assert = std.debug.assert; | |
fn hybrid(p: anytype, q: anytype) @TypeOf(p, q) { | |
assert(p >= 1); | |
assert(q >= 1); | |
const T = @TypeOf(p, q); | |
var u: T = undefined; |
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 fractions import Fraction | |
value_table = {} | |
move_table = {} | |
max_hp = 353 | |
# Body Slam min damage | |
low_hp = 95 | |
attacks = ["bslam", "blizzard", "hyperbeam"] | |
crit = {0: Fraction(402, 512), 1: Fraction(110, 512)} |
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
{ | |
cnt: 50703, | |
sum: 91891, | |
avg: 1.812338520403132, | |
var: 1.4551970537972987, | |
std: 1.2063154868430144, | |
sem: 0.0053572766650075085, | |
moe: 0.010500262263414717, | |
rme: 0.579376432449224, | |
min: 1, |
NewerOlder