Skip to content

Instantly share code, notes, and snippets.

View tonytins's full-sized avatar
📚

Tony Bark tonytins

📚
View GitHub Profile
@tonytins
tonytins / zig_tasks.json
Created April 28, 2024 03:28
Zig Tasks
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "zig build",
"type": "shell",
"command": "zig build"
},
@tonytins
tonytins / spacehey-macos-dark.css
Created January 6, 2024 22:03
macOS Dark Theme for SpaceHey by Alexis Scobey
/* Note: I, Alexis Scobey, am in no way a professional. */
/* This stylesheet doesn't follow any good practices, and I'm surprised it works at all */
/* I'm also unsure about copyright, so you're using this at your own risk. */
/* If you do use it, and it turns out to be illegal, we should totally be prison buddies though */
/* I'm just kidding, of course. Mostly. */
/* Sets the background image and scaling, as well as the font */
/* Note: it's probably a bad idea long-term to pull this from osxdaily's CDN, but I'm too lazy to mirror it elsewhere. */
body{
background-image: url(https://cdn.osxdaily.com/wp-content/uploads/2020/10/macos-big-sur-wallpaper-2.jpg);
@tonytins
tonytins / workloads.sh
Last active October 12, 2022 21:49
.NET Workloads
#!/bin/bash
sudo dotnet workload install maui
sudo dotnet workload install maui-maccatalyst maui-ios maui-android
sudo dotnet workload install wasm-tools
@tonytins
tonytins / jsonhelper.gd
Created August 8, 2022 20:19
JSON Helper
extends Node
func key_value(json_path, json_file, key, is_dictionary = false):
var file = File.new()
var full_path = str(json_path + json_file);
if file.file_exists(full_path):
file.open(full_path, File.READ)
var result = parse_json(file.get_as_text())
if is_dictionary == true:
result.clear()
@tonytins
tonytins / actions.yml
Last active September 7, 2022 15:16
Github Actions Branch Template
name: Example
on:
push:
branches: [develop, main, "feature/**", "patch/**"]
pull_request:
branches: [develop, main, "feature/**", "patch/**"]
jobs:
build_name:
@tonytins
tonytins / news_ticker.txt
Last active May 26, 2021 03:54
SC3k News Ticker Messages
50 Car Pile-Up Results In New City Sculpture
9 Out Of 10 Sims Prefer Cranberry Jelly Over Preserves
After 36 Years Of Marriage, Man Discovers Wife Is Actually A Rare Yucca Plant
All Raccoons Cheat At Poker, Animal Researchers Say
Ancient Meteorite Revealed To Be Burnt Burger
Ball Lightning Destroys Toupee But Polishes Victim's Car
Bark Art Exhibition By Bark Simson
Big Game Bistro Opens Amid Animal Rights Protests
Black And White Ball Disrupted By Bank Robbery
Black And White Ball Preparations Underway
@tonytins
tonytins / SourceBuilder.cs
Last active November 15, 2020 20:22
Source generator helper
using System;
using System.Text;
namespace SourceGen
{
internal class SourceBuilder
{
public SourceBuilder(string nameSpace, params string[] usings)
{
var builder = new StringBuilder($@"// This code was auto-generated{Environment.NewLine}");
@tonytins
tonytins / dotnet.yml
Last active September 17, 2020 22:15
Continuous integration for .NET. This assumes everything is in the /src directory.
name: .NET Core
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
dotnet: ["3.1.200", "3.1.201"]
@tonytins
tonytins / compilation-license.txt
Created February 13, 2019 03:46
The compilation license used by Crypto++.
Compilation Copyright (c) [year] [person/company] All rights reserved.
This copyright applies only to this software distribution package
as a compilation, and does not imply a copyright on any particular
file in the package.
All individual files in this compilation are placed in the public domain by
Wei Dai and other contributors.
[Credits here]