Skip to content

Instantly share code, notes, and snippets.

@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 7, 2025 02:21
Rimworld output log published using HugsLib
Log uploaded on Friday, February 7, 2025, 10:25:23 AM
Loaded mods:
边缘世界-特性拓展【RimWorld Trait Expanded】(RimWorld.Trait.Expanded): (no assemblies)
Harmony(brrainz.harmony)[mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Core(Ludeon.RimWorld): (no assemblies)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
Ideology(Ludeon.RimWorld.Ideology): (no assemblies)
Biotech(Ludeon.RimWorld.Biotech): (no assemblies)
Anomaly(Ludeon.RimWorld.Anomaly): (no assemblies)
青的更多特性【More Traits】(Q.M): (no assemblies)
@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 7, 2025 02:20
Rimworld output log published using HugsLib
Log uploaded on Thursday, February 6, 2025, 6:20:43 PM
Loaded mods:
Prepatcher(zetrith.prepatcher): 0Harmony(2.3.3), 0PrepatcherAPI(1.2.0), 0PrepatcherDataAssembly(1.0.0), PrepatcherImpl(1.0.0), Prestarter(1.0.0)
Harmony(brrainz.harmony)[v:2.3.1.0][mv:2.3.1.0]: 0Harmony(2.3.3), HarmonyMod(2.3.1)
Faster Game Loading(Taranchuk.FasterGameLoading): FasterGameLoading(1.0.0), System.Drawing(av:4.0.0,fv:4.6.57)
Fishery - Modding Library(bs.fishery): 0PrepatcherAPI(1.2.0), 1Fishery(0.6.1), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Core(Ludeon.RimWorld): (no assemblies)
Better Log - Fix your errors(bs.betterlog): 0PrepatcherAPI(1.2.0), 1Fishery(av:0.6.1,fv:0.5.1.2), BetterLog(1.1.0), System.Runtime.CompilerServices.Unsafe(av:6.0.0,fv:6.0.21.52210)
Performance Fish(bs.performance): PerformanceFish(0.6.2)
Royalty(Ludeon.RimWorld.Royalty): (no assemblies)
@armandofox
armandofox / question.html
Created February 7, 2025 02:19
Example question.html for student to upload personal cheatsheet. See detailed instructions in CBTF Course Staff Handbook
<pl-question-panel>
Instructions on what makes a valid cheatsheet go here.
Name your cheatsheet "cheatsheet.pdf" and use the panel below to upload it.
</pl-question-panel>
<pl-file-upload file-names="cheatsheet.pdf">
</pl-file-upload>
@tsrkzy
tsrkzy / index.html
Last active February 7, 2025 02:24
image upload sample
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<title>カメラ起動テスト</title>
<style>
/* 必要に応じてスタイルを追加してください */
#cameraInput {
display: none;
}
@VictorPietro
VictorPietro / search-by-year-jet-smart-filters.php
Created February 7, 2025 02:18
Search by year Jet Smart Filters
<?php
/* Search by year Jet Smart Filters */
/* I want to share this code that allows you to search by year on Jet Smart Filters. */
// 1. Create a meta field named 'example-date', which is type date saved as timestamp.
// 2. Set a query on query builder that will fetch all the years of a meta field (in this case, meta field is named example-date, created on step 1).
@dexcompiler
dexcompiler / sum-check-protocol.cs
Created February 7, 2025 02:16
A simple demonstration of the sum check protocol
using System.Security.Cryptography;
Console.WriteLine
(
"""
Hello!
Here's a sum-check protocol demonstration.
The sum-check protocol is an interactive proof system that allows a prover
to convince a verifier that the sum of a multivariate polynomial over
@patricklohn
patricklohn / Telefone-Js
Created February 7, 2025 02:16
Formatar telefone em JS
function formatarTelefone(value) {
value = value.replace(/\D/g, ""); // Remove tudo que não for número
if (value.length > 10) {
return value.replace(/^(\d{2})(\d{5})(\d{4})$/, "($1) $2-$3");
} else {
return value.replace(/^(\d{2})(\d{4})(\d{0,4})$/, "($1) $2-$3");
}
}
https://learn.microsoft.com/en-us/windows/wsl/systemd#how-to-enable-systemd
https://ollama.com/download/linux
1 - sudo nano /etc/wsl.conf
2 - Add values
[boot]
systemd=true
3 - Ctrl + X, select Y to save your change
@hpcdisrespecter
hpcdisrespecter / padder.sh
Created February 7, 2025 02:16
Center and pad cartesian POSCAR
#!/bin/bash
if [ $# -ne 2 ]; then
echo "Usage: $0 <file> <amount>"
exit 1
fi
if [ $2 -lt 0 ]; then
echo "Amount must be positive"
exit 1
fi
@Daniel-Iteso
Daniel-Iteso / Movie.java
Created February 7, 2025 02:14
Here's a code that consumes the MovieDBApi to call for information related to any given movie name
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
@JsonIgnoreProperties(ignoreUnknown = true)
public class Movie {
@JsonProperty("id")
private long id;
@JsonProperty("title")