Discover gists
This file contains 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
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) |
This file contains 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
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) |
This file contains 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
<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> |
This file contains 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>カメラ起動テスト</title> | |
<style> | |
/* 必要に応じてスタイルを追加してください */ | |
#cameraInput { | |
display: none; | |
} |
This file contains 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
<?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). |
This file contains 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.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 |
This file contains 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
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"); | |
} | |
} |
This file contains 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
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 |
This file contains 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 | |
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 |
This file contains 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 com.fasterxml.jackson.annotation.JsonIgnoreProperties; | |
import com.fasterxml.jackson.annotation.JsonProperty; | |
@JsonIgnoreProperties(ignoreUnknown = true) | |
public class Movie { | |
@JsonProperty("id") | |
private long id; | |
@JsonProperty("title") |