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
use eframe::egui::{self, TextBuffer}; | |
#[derive(Clone)] | |
struct TodoItem { | |
text: String, | |
completed: bool, | |
editing: bool, | |
} | |
fn main() { |
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
use std::sync::Arc; | |
use eframe::egui::{self, Context}; | |
mod update_queue; | |
use update_queue::{AppAsyncExt, ContextAsyncExt}; | |
fn main() { | |
let native_options = eframe::NativeOptions::default(); | |
eframe::run_native( |
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
import struct | |
import pathlib | |
def fatal(msg): | |
print(msg) | |
from sys import exit | |
exit(2) |
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
### Keybase proof | |
I hereby claim: | |
* I am amperl on github. | |
* I am amperl (https://keybase.io/amperl) on keybase. | |
* I have a public key whose fingerprint is 27E2 0827 BFB1 9A4D 5887 537A A6EF 26B4 522D 9F1A | |
To claim this, I am signing this object: |
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
import argparse | |
import os | |
import json | |
from collections import defaultdict | |
def convert(xlt_path, json_path): | |
xlt = None | |
with open(xlt_path, 'rb') as f: | |
xlt = f.read().decode('utf-16').split('\r\n') |
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
import argparse | |
import struct | |
import os | |
def extract(path, out_path): | |
try: | |
os.makedirs(out_path, exist_ok=True) | |
except OSError: | |
raise Exception("Couldn't create output path.") |