Skip to content

Instantly share code, notes, and snippets.

@d0iasm
d0iasm / doubly_linked_list.rs
Created February 3, 2024 10:18
Template - Doubly Linked List in Rust
struct Node<T> {
}
struct DoublyLinkedList<T> {
}
impl<T> DoublyLinkedList<T> {
/// Removes the last element from a list and returns it, or None if it is empty.
/// This operation should compute in O(1) time.
fn pop_back(&mut self) -> Option<T> {
@zcyemi
zcyemi / JsonHelper.cs
Created March 14, 2018 13:51
Json.Net.JsonConverter for Unity Vector struct.
using UnityEngine;
using Newtonsoft.Json;
using System;
public class Vec4Conv : JsonConverter
{
public override bool CanConvert(Type objectType)
{
if (objectType == typeof(Vector4))
@sarpulhu
sarpulhu / bitcoinbip39diceware.txt
Last active May 3, 2024 11:57
Bitcoin seed diceware bip39 completely uniform
TOP HALF FIRST ROLL ODD. BOTTOM HALF FIRST ROLL EVEN. FOR NEXT ROLLS IF USING REGULAR DICE 5 OR 6 IS ROLL AGAIN
1,1,1,1,1 abandon
1,1,1,1,2 ability
1,1,1,1,3 able
1,1,1,1,4 about
1,1,1,2,1 above
1,1,1,2,2 absent
1,1,1,2,3 absorb
1,1,1,2,4 abstract
1,1,1,3,1 absurd
@choco-bot
choco-bot / Install.txt
Created May 3, 2024 11:55
flash-decompiler-trillix v5.3.1400 - Failed - Package Tests Results
==> default: Running provisioner: shell...
[ERROR] An error occurred in the underlying SSH library that Vagrant uses.
[ERROR] The error message is shown below. In many cases, errors from this
[ERROR] library are caused by ssh-agent issues. Try disabling your SSH
[ERROR] agent or removing some keys and try again.
[ERROR] If the problem persists, please report a bug to the net-ssh project.
[ERROR] timeout during server version negotiating
@visionscaper
visionscaper / gist:a5b1d8c5a95b08958aefd2a2591a1045
Created May 3, 2024 11:51
MLPug persona chatbot training example used for testing 6xAMD MI100 experimental server build
python examples/persona_chatbot/pytorch/train.py \
--experiment-name persona-bot-6xMI100 \
--num-dataloader-workers 2 \
--use-mixed-precision \
--batch-size 30 \
--batch-chunk-size 10 \
--num-choices 8 \
--sequence-length-outlier-threshold 0.05 \
--learning-rate 6.25e-5 \
--lr-warmup-schedule \
@JBlond
JBlond / bash-colors.md
Last active May 3, 2024 11:50 — forked from iamnewton/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@azadkuh
azadkuh / vim-cheatsheet.md
Last active May 3, 2024 11:50
vim / vimdiff cheatsheet - essential commands

Vim cheat sheet

Starting Vim

vim [file1] [file2] ...