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
#ifndef CURRENCY_H | |
#define CURRENCY_H | |
#include <string> | |
#include <iomanip> | |
#include <iostream> | |
class Currency { | |
protected: | |
int whole; //whole is the note amount such as 1 whole for 1 dollar. |
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
{ | |
"database": { | |
"serverInstance": "localhost", | |
"username": "sa", | |
"defaultPassword": "Password123!", | |
"port": 1433, | |
"connectionTimeout": 30, | |
"databases": [ | |
"entity-service", | |
"uploader-service", |
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
# 3. Morfolojik işlemler için çekirdek (kernel) tanımlayalım. | |
# Burada 5x5 boyutunda dikdörtgen bir çekirdek kullanıyoruz. | |
kernel = cv2.getStructuringElement(cv2.MORPH_RECT, (5, 5)) |
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
#include <iostream> | |
int main() { | |
int rows, cols, num; | |
std::cout << "Введіть кількість рядків: "; | |
std::cin >> rows; | |
std::cout << "Введіть кількість стовпців: "; | |
std::cin >> cols; | |
std::cout << "Введіть число: "; |
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
graph TD | |
A[User Requests App] --> B{Auto Rollout Option?} | |
B -->|False| C[Business Application Owner] | |
B -->|True| E[SAGA: Grant Access] | |
C --> D{Business Owner Decision} | |
D -->|Accept| E | |
D -->|Reject| F[Request Rejected] |
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 requests | |
from requests.adapters import HTTPAdapter | |
from urllib3.util.ssl_ import create_urllib3_context | |
from urllib3.poolmanager import PoolManager | |
# Custom SSL adapter to force the hostname for SSL verification | |
class HostHeaderSSLAdapter(HTTPAdapter): | |
def init_poolmanager(self, *args, **kwargs): | |
context = create_urllib3_context() | |
kwargs['ssl_context'] = context |
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
-- Basic Selection | |
SELECT data FROM artifacts; -- Whole JSONB object | |
SELECT data->>'name' FROM artifacts; -- Get string value (->>') | |
SELECT data->'details' FROM artifacts; -- Get JSON value (->) | |
-- Checking for existence/values | |
SELECT * FROM artifacts WHERE data ? 'name'; -- Has key 'name'? | |
SELECT * FROM artifacts WHERE data @> '{"type": "weapon"}'; -- Contains this JSON? | |
SELECT * FROM artifacts WHERE data->>'status' = 'active'; -- Exact value match |
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 Tuesday, February 11, 2025, 4:55:51 PM | |
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) | |
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) | |
RimNature! [continued](RimNature.velcroboy333)[mv:1.0.0.1]: (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
using Microsoft.Data.SqlClient; | |
using Dapper; | |
using System.Text; | |
namespace _7._Dapper | |
{ | |
class Program | |
{ | |
static void Main() | |
{ |
This file has been truncated, but you can view the full file.
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 Tuesday, February 11, 2025, 4:55:31 PM | |
Loaded mods: | |
Auto Mod Config(Garethp.ModlistConfigurator)[mv:1.0.0]: ModlistConfigurator(0.0.0) | |
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)[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) |
NewerOlder