Skip to content

Instantly share code, notes, and snippets.

private void Main_OnLoaded(object sender, RoutedEventArgs e)
{
var thread = new Thread(() => TextThread("Testing..."));
thread.Start();
}
private void TextThread(string text, Brush brush = null)
{
var brushFixed = brush ?? Brushes.Black;
//'Block' is a Textblock in my form
//All of this method works perfectly fine
private void AddLine(string text)
{
if (Block.Inlines.Any())
Block.Inlines.FirstInline.Foreground = Brushes.Black;
var line = new Run(text+"\n") {Foreground = Brushes.Black};
Block.Inlines.Add(line);
using System;
namespace FizzBuzz
{
internal class Program
{
private static void Main(string[] args) => new Action<Action<int>>(f => (f = (x => (x > 1 ? new Action(() => f.Invoke(x - 1)) : () => { }).Invoke()) + f).Invoke((args != null && args.Length > 0 ? new Func<int>(() => int.Parse(args[0] ?? "100")) : () => 100).Invoke())).Invoke(x => { Console.WriteLine(new Func<string, string>(s => s == "" ? "{0}" : s).Invoke((x % 3 == 0 ? "Fizz" : "") + (x % 5 == 0 ? "Buzz" : "")), x); });
}
}
eNrtPWtz27ayn6tfgfFM77RjySb4pm9yzvhtN3biSE7c9EsGliCLDUUqJGVH6fS_n13wLZEipDxO5940M65N7i4W-14AJJ_9-9PUI488jNzAf75D95Qdwv1hMHL9h-c7b27PevbOv__VeXbD4smr8dHc9fDOvzo_PRO_E48_cu_5jkN3SMzCBx6_zUhp74HUPfNHbvwyCKcMoF4GPs-uVf-65uHQ9XgUZZeHHouil2zKn-_cufFwskNYNOT-6Li4_pIPw2DK_CEPd8iUuf4gGH7g8XkYzGcwkx0yY3484YF_7fpBeB6MMtr5dfZn5fqjy5-ugxGQvry-edW_zZg7Duc84x5m_tOzG48teDiIWUwi-PF853AYu48cxoGZX7lTNwZizJsDJZXu7DfggNDZA78oASstsCdsCj_bwQczzkc5GN0z6feEvAn56XjMhUiOQxDfBHXUzvWmsNdzL3Znnovqz9kymjAuVohTpZH8bRAz7-Rm0M5IAhlI6BDMeHITuFHgb0RYCvg4mN67Ph9tBHz4-NAOfM18dhxEEvMbxCU9GGoTWJ9_rEBSrQnyhH8qwExjDcEKpNEIeemX_FKnawiWIamjN3P4GMTg8u3CuXLHheHphqqvcbPhAUJf-sOCBdtZR_iNH_KIh48l_1w3RBXlBiIvL09XWTuJPn_gfmkYZc9wlLVDXXE-nJxDeO6zmMsZXMk6HGutpBC6LCnTXEe3RlCUyiEsi0nZc0Arpq5Ypm3Y9loqSzKz99R10BvK69Tn4cNiMHG5V8zKsdS1YisjlcUnNUp1OlIom87pkUVlt7Ks9f6SwkvN5Jp7nAPCiMvmms0xbsLgT8x_3mZoh-E0mJdCo2OsnXUCXp50c9S9mSwidwgJRVQQfT6aDyuBizZi5qn8OnjkU3ABUQhAmVRKumoj9pEHNdnS_NV1dYvn1aE0iyyO2fDDSTB6kJayGKQOgzainLkhyCxyS2nQMtuBX0HVdsxmxcSN5pSMblUdQAJ4ZQC1ORA_TGIfKnfp
@SteffenBlake
SteffenBlake / RollSeeds
Created March 27, 2021 00:20
Simple example program for comparing seed rolling algs
using System;
using System.Collections.Generic;
namespace ConsoleApp3
{
class Program
{
const double Thresh1 = 0.6;
const double Thresh2 = 0.7;
const double Thresh3 = 0.8;
@SteffenBlake
SteffenBlake / gist:93d442c0413425112e17de8e13642215
Last active September 24, 2024 13:41
Security Camera handy links

Cheap gear to get the job done

  1. Reolink PoE 5MP RLC-522 - https://www.amazon.ca/gp/product/B01AL5D85W/ref=ppx_yo_dt_b_asin_title_o06_s00
  2. Mokerlink 1 to 4 port PoE switch - https://www.amazon.ca/MokerLink-Ethernet-Support-IEEE802-3af-Fanless/dp/B07SGBQNLM/ref=sr_1_4
  3. (Kind of works) Raspberry Pi 4 - https://www.amazon.ca/CanaKit-Raspberry-Starter-Kit-4GB/dp/B07WRMR2CX/ref=sr_1_4 3a. (Recommended) Nanopi R4S (Way better performance but likely has to ship from China, but it is the far superior device for same price)
  4. Recommended: Also get yourself a USB 3.0 portable hard drive, preferably 2TB+, of your preferred brand

Also likely needed:

private int[] PlayerBroadcasters = new int[0];
[SerializeField] private Toggle BroadcastToggle;
public void OnBroadcastToggle()
{
BroadcasterId = Networking.LocalPlayer.playerId;
Broadcast = BroadcastToggle.isOn;
Networking.SetOwner(Networking.LocalPlayer, gameObject);
@SteffenBlake
SteffenBlake / ControlPlane.yaml
Last active September 15, 2021 06:03
Example Control Plane cloud config
# CONTROL PLANE
ssh_authorized_keys:
- <YOUR SSH-RSA KEY HERE> ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQ........... etc etc
hostname: <CONTROL_PLANE_NAME_HERE>
## SET TO YOUR LOCAL TIMEZONE BELOW
run_cmd:
- "touch /etc/localtime"
- "cp /usr/share/zoneinfo/Canada/Mountain /etc/localtime"
@SteffenBlake
SteffenBlake / 3.18PoisonConcRangerStart.md
Last active May 10, 2022 17:24
PoE 3.18 Poisonous Concoction Ranger League Start

Tips

Vendor String:

Remember: 8x Whetstones = 1x Bauble (Act 3 on)

Save 4 baubles for lv 42 to use on Hallowed Life Flask and lv 61 to use on Divine Life Flask

Socket Links:

ACT 1

Vendor String: g-g-r|g-r|nne

Enemy at the Gate

  • Lv 2 - Splitting Steel (support with bleed)

Breaking Some Eggs

  • Lv 2+ - Dash
  • $$$ - Steelskin