Skip to content

Instantly share code, notes, and snippets.

View marcusbuffett's full-sized avatar
♟️

Marcus Buffett marcusbuffett

♟️
View GitHub Profile
2025-07-23T10:24:36.343588Z INFO burn_train::learner::train_val: Fitting the model:
OXIModel {
encoder: ChessResNet {
input_conv: Conv2d {stride: [1, 1], kernel_size: [3, 3], dilation: [1, 1], groups: 1, padding: Same, params: 9280}
input_bn: BatchNorm {num_features: 64, momentum: 0.1, epsilon: 0.00001, params: 256}
blocks: Vec<0..6> {
0: BasicBlock {
conv1: Conv2d {stride: [1, 1], kernel_size: [3, 3], dilation: [1, 1], groups: 1, padding: Same, params: 36928}
bn1: BatchNorm {num_features: 64, momentum: 0.1, epsilon: 0.00001, params: 256}
conv2: Conv2d {stride: [1, 1], kernel_size: [3, 3], dilation: [1, 1], groups: 1, padding: Same, params: 36928}
This file has been truncated, but you can view the full file.
validate checksum key=ReduceAutotuneKey - ElemInput: Float(F32), ElemOutput: Float(F32), ElemAcc: Float(F32), PotentialLineSize: 4, AxisIsContiguous: true, ReduceAxisShape: 4096, ReduceCount: 64, checksum=a14a9dbdfd906e71ae310b4829971734
00d104e8138e13e2dd8e06
0129d16,
),
info: Some (
(
CubeDim {
x: 16,
y: 16,
z: 1,
"line"
"1.e4 c5 2.Nf3 d6 3.d4 cxd4 4.Nxd4"
"1.e4 c5 2.Nf3 d6 3.d4 cxd4 4.Nxd4 Nf6 5.Nc3"
"1.e4 c5 2.Nf3 d6 3.d4 cxd4 4.Nxd4 Nf6"
"1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4"
"1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6 5.O-O"
"1.e4 e5 2.Nf3 Nc6 3.Bb5 a6 4.Ba4 Nf6"
"1.d4 Nf6 2.c4 g6 3.Nc3 Bg7 4.e4"
"1.e4 c5 2.Nf3 d6 3.d4 cxd4 4.Nxd4 Nf6 5.Nc3 a6"
"1.e4 c5 2.Nf3 e6 3.d4 cxd4 4.Nxd4"
@marcusbuffett
marcusbuffett / condition.txt
Last active November 29, 2023 23:50
overflow of large sea orm condition
This file has been truncated, but you can view the full file.
[src/query_cacher.rs:70] &condition = Condition {
negate: false,
condition_type: Any,
conditions: [
SimpleExpr(
Binary(
Binary(
Column(
TableColumn(
SeaRc(
{
"metadata": {
"kernelspec": {
"name": "python",
"display_name": "Python (Pyodide)",
"language": "python"
},
"language_info": {
"codemirror_mode": {
"name": "python",
use image::Luma;
use qrcode::QrCode;
fn main() {
let bytes_limit = 2953;
let mut bytes = 1000;
let mut step = 100;
let hitchikers_text = std::fs::read_to_string("hitchhikers.txt").unwrap();
loop {
let head_bytes = hitchikers_text
#![feature(proc_macro_hygiene, decl_macro)]
#[macro_use]
extern crate rocket;
extern crate anyhow;
extern crate sled;
use rocket_contrib::json::Json;
use serde::{Deserialize, Serialize};
set nocompatible hidden laststatus=2
if !filereadable('/tmp/plug.vim')
silent !curl --insecure -fLo /tmp/plug.vim
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
endif
source /tmp/plug.vim
call plug#begin('/tmp/plugged')
Plug 'lotabout/skim', { 'dir': '~/.skim', 'do': './install' }
fn convert_to_html(input: &str) -> String {
let cmd = Command::new("pandoc")
.args(&["--from=markdown", "--to=html"])
.stdin(Stdio::piped())
.stdout(Stdio::piped())
.spawn()
.expect("pandoc failed to start");
{
let mut pandoc_stdin = cmd.stdin.unwrap();
pandoc_stdin.write_all(& input.as_bytes());
@marcusbuffett
marcusbuffett / find_unpushed_branches.py
Created June 19, 2019 19:19
Finds branches which are ahead of their remote tracking branch
import os
from subprocess import Popen, PIPE, check_output, STDOUT, CalledProcessError
import shlex
list_branches_command = "git for-each-ref --sort=committerdate refs/heads/ --format='%(refname:short)'"
pipe = Popen(list_branches_command, shell=True, stdout=PIPE)
for branch in pipe.stdout:
branch = branch.strip().decode("utf-8")
get_remote_command = f"git rev-parse --abbrev-ref --symbolic-full-name {branch}@{{u}}"