Skip to content

Instantly share code, notes, and snippets.

@sunmeat
sunmeat / Program.cs
Created February 11, 2025 17:02
working with stored procedure Dapper example
// в БД Store должна быть такая хранимая процедура:
/*
CREATE PROCEDURE rectangle
@width float, @height float,
@square float output, @perimeter float output AS
SET @square = @width * @height
SET @perimeter = (@width + @height) * 2
*/
@dpiponi
dpiponi / quine.c
Created February 11, 2025 17:02
A quine that uses no operations other than +, -, *, % and /.
/*
* This is a literate quine. That means that
* 1. the comments will tell you a little about how it works and
* 2. if you compile and run it its output will be identical to its source
* code even though it doesn't look at its original source. It literally
* contains within itself a complete recipe for how to display itself.
*
* Quines are ten a penny. This one is unusual because
* 1. its main loop consists solely of a loop to print characters
* generated by a function called programChar() and
@yug27kk
yug27kk / index.html
Created February 11, 2025 17:02
Untitled
<div class="happy-valentines">
<div class="valentines-day-card">
<div class="clouds"></div>
<div class="hearts">
<div class="heartOne">
<div class="left-side"></div>
<div class="right-side"></div>
</div>
<div class="heartTwo">
<div class="left-side"></div>
import pandas as pd
import requests
import json
# Load the CSV file
file_path = 'df_getrunresults.csv'
df = pd.read_csv(file_path)
# Define the Custom Data API endpoint and API key
API_ENDPOINT = 'https://yourinstance.getdx.net/api/customData.setAll' # Replace with the actual endpoint
@WarFade
WarFade / records.txt
Created February 11, 2025 17:01
TG Forward
📌 Recorder & Jqrgood Bots Payment ⚡
09/02
1] @jqrgood_28_bot
• Video Time: 01:52 PM
• Link: https://infotecharmy.in/lifafa?id=R1LM5eu
2] @jqrgood_29_bot
• Video Time: 07:27 PM
@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)