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
| local wezterm = require("wezterm") -- Pull in the wezterm API | |
| local config = wezterm.config_builder() -- This will hold the configuration. | |
| -- Spawn a fish shell in login mode | |
| config.default_prog = { "/usr/bin/fish", "-l" } | |
| config.font = wezterm.font_with_fallback({ | |
| "JetBrains Mono" | |
| , "Noto Color Emoji" -- Assumed to have Emoji Presentation | |
| , "Symbols Nerd Font Mono" |
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 argparse | |
| import io | |
| import os | |
| import pathlib | |
| import re | |
| from rich.console import Console | |
| from rich.text import Text | |
| """ Convert Wezterm terminal capture to SVG. """ | |
| parser = argparse.ArgumentParser(description = "Convert terminal captures to svg") |
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
| model: | |
| base_learning_rate: 1.0e-4 | |
| target: ldm.models.diffusion.ddpm.LatentDiffusion | |
| params: | |
| parameterization: "v" | |
| linear_start: 0.00085 | |
| linear_end: 0.0120 | |
| num_timesteps_cond: 1 | |
| log_every_t: 200 | |
| timesteps: 1000 |
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
| /* | |
| * Module code goes here. Use 'module.exports' to export things: | |
| * module.exports.thing = 'a thing'; | |
| * | |
| * You can import it from another modules like this: | |
| * var mod = require('events'); | |
| * mod.thing == 'a thing'; // true | |
| */ | |
| module.exports = (function(){ | |
| const _eventLevel = { |
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
| #! /bin/bash | |
| export DISPLAY=:0 XAUTHORITY=~/.Xauthority | |
| Xephyr :1 -once -screen 1920x1080 -extension GLX & | |
| export DISPLAY=:1 | |
| openbox-session & | |
| $@ |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.Threading.Tasks; | |
| using Xunit; | |
| using Xunit.Sdk; | |
| namespace Linsft.UnitTesting | |
| { | |
| public class AssemblyTest |
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
| #undef HID_ENABLED | |
| // Arduino Due ADC->DMA->USB 1MSPS | |
| // by stimmer | |
| // from http://forum.arduino.cc/index.php?topic=137635.msg1136315#msg1136315 | |
| // Input: Analog in A0 | |
| // Output: Raw stream of uint16_t in range 0-4095 on Native USB Serial/ACM | |
| // on linux, to stop the OS cooking your data: | |
| // stty -F /dev/ttyACM0 raw -iexten -echo -echoe -echok -echoctl -echoke -onlcr |