Skip to content

Instantly share code, notes, and snippets.

@HugsLibRecordKeeper
HugsLibRecordKeeper / output_log.txt
Created February 11, 2025 17:01
Rimworld output log published using HugsLib
Log uploaded on Wednesday, February 12, 2025, 1:01:24 AM
Loaded mods:
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)
HugsLib(UnlimitedHugs.HugsLib)[ov:11.0.4]: 0Harmony(av:2.3.3,fv:1.2.0.1), HugsLib(av:1.0.0,fv:11.0.4)
HugsLib_zh(RWZH.ChinesePack.HugsLib): (no assemblies)
@BlowerPot
BlowerPot / readme.txt
Created February 11, 2025 17:01
Untitled Puzzlescript Plus Script
Play this game by pasting the script in https://auroriax.github.io/PuzzleScript/editor.html
@andrescerv
andrescerv / gist:652d1a792ef43a78b67ac93ef410b8bd
Last active February 11, 2025 20:34
peek_data_engineering_submission.md

Peek - Data Engineering - Submission Template

Applicant Name

Andres Cervantes

Additional Information You Would Seek Out

There are many ways of modeling and approaching this problem, and there are many unknown factors that could determine which approach is better. Please list additional factors/information you would seek out.

@eepymeowers
eepymeowers / Make a Android ROM.md
Last active February 11, 2025 17:03
A (hopefully) comprehensive guide on how to build Android for a device (WIP!!!!!)

How to build Android for a device

Pre-requisites

Make sure the machine you'll be building on has the recommended requirements; the bare minimum is 32GB RAM, if you are going to use zram during the build. Decreasing the job count will help with RAM usage, and could even possibly get it to build on 8GB RAM, but I recommend 48GB or more of RAM.

Create the directory you'll do your build in with mkdir crDroid && cd crDroid (substitute crDroid for whatever you want the folder to be called, it doesn't need to be called anything specific)

For Debian 12 and newer (as of Feb 2025) (or any distro based on Debian 12 or newer, with these packages in the repos) run this: sudo apt install bc bison build-essential ccache curl flex g++-multilib gcc-multilib git git-lfs gnupg gperf imagemagick lib32ncurses5-dev lib32readline-dev lib32z1-dev liblz4-tool libncurses5 libncurses5-dev libsdl1.2-dev libssl-dev libwxgtk3.0-gtk3-dev libxml2 libxml2-utils lzop pngcrush rsync schedtool squashfs-tools xsltproc zip zlib1g-dev

# e) Morfolojik Gradyan: Dilation ve erosion arasındaki fark.
morph_gradient = cv2.morphologyEx(image, cv2.MORPH_GRADIENT, kernel)
@pizlonator
pizlonator / pizlossa.md
Created February 11, 2025 16:59
Pizlo SSA Form

This describes how I do SSA form, which avoids the need to have any coupling between CFG data structures and SSA data structures.

Let's first define a syntax for SSA and some terminology. Here's an example SSA node:

A = Add(B, C)

In reality, this will be a single object in your in-memory representation, and the names are really addresses of those objects. So, this node has an "implicit variable" called A; it's the variable that is implicitly assigned to when you execute the node. If you then do:

X = Sub(A, 1)
# c) Opening (Açma): Erosion sonrası dilation (küçük gürültülerin giderilmesi için).
opening = cv2.morphologyEx(image, cv2.MORPH_OPEN, kernel)
# d) Closing (Kapama): Dilation sonrası erosion (küçük deliklerin doldurulması için).
closing = cv2.morphologyEx(image, cv2.MORPH_CLOSE, kernel)
@Schoolads
Schoolads / gist:270a2e381f673a4ab68aac274dd36392
Created February 11, 2025 16:59
School of Nursing, Gwagwalada. 2025/2026 (Admission form) Is Out. Call The School's Admin. Officer (DR.MRS ALICE OGUNSOLA) on (O8125777035)(+2348125777035) for more Information On How to apply and admission Assistance. Forms into other programme are also now available. Contact the school admin - O8125777035 for more inquiries.
School of Nursing, Gwagwalada. 2025/2026 (Admission form) Is Out. Call The School's Admin. Officer (DR.MRS ALICE OGUNSOLA) on (O8125777035)(+2348125777035) for more Information On How to apply and admission Assistance. Forms into other programme are also now available. Contact the school admin - O8125777035 for more inquiries.
@damp11113
damp11113 / iKB1_CPY.py
Created February 11, 2025 16:59
iKB-1 library for RP2xxx circuitpython
import board
import busio
import time
import digitalio
IKB_1_ADDR = 0x48
IKB_1_ADDR_2 = 0x49
# Detect board type and set I2C pins accordingly
i2c1 = busio.I2C(board.GP1, board.GP0)
//formas de crear relaciones entre tablas
---forma mas detallada
Schema::table('posts', function (Blueprint $table) {
$table->unsignedBigInteger('user_id');
$table->foreign('user_id')->references('id')->on('users');
});
---forma mas concisa
Schema::table('posts', function (Blueprint $table) {
$table->foreignId('user_id')->constrained('users');
});