Skip to content

Instantly share code, notes, and snippets.

@eduardofx
eduardofx / go-pointers.md
Created February 11, 2025 19:37
go-pointers

Pointers in Golang

Introduction

Pointers in Go (Golang) are variables that store the memory address of another variable. They are useful for modifying variables inside functions, optimizing memory usage, and handling large data structures efficiently.


1. Declaring and Initializing Pointers

A pointer is declared using the * (asterisk) symbol before the type.

@mahmoudimus
mahmoudimus / base256.py
Created February 11, 2025 19:37
dumb base256 encoding
import re
class Base256:
def __init__(self):
self.list = [['aardvark','adroitness'],['absurd','adviser'],['accrue','aftermath'],['acme','aggregate'],['adrift','alkali'],['adult','almighty'],['afflict','amulet'],['ahead','amusement'],['aimless','antenna'],['Algol','applicant'],['allow','Apollo'],['alone','armistice'],['ammo','article'],['ancient','asteroid'],['apple','Atlantic'],['artist','atmosphere'],['assume','autopsy'],['Athens','Babylon'],['atlas','backwater'],['Aztec','barbecue'],['baboon','belowground'],['backfield','bifocals'],['backward','bodyguard'],['banjo','bookseller'],['beaming','borderline'],['bedlamp','bottomless'],['beehive','Bradbury'],['beeswax','bravado'],['befriend','Brazilian'],['Belfast','breakaway'],['berserk','Burlington'],['billiard','businessman'],['bison','butterfat'],['blackjack','Camelot'],['blockade','candidate'],['blowtorch','cannonball'],['bluebird','Capricorn'],['bombast','caravan'],['bookshelf','caretaker'],['brackish','celebrate'],['breadline','cellulose'],['br
@steveruu
steveruu / prd
Created February 11, 2025 19:37
**1. Odpisy**
* **Účetní odpisy:**
* snižují účetní hodnotu majetku v čase
* **lineární odpisy:** odpisová sazba = 100 / doba životnosti (např. 5 let = 20% ročně)
* **zrychlené odpisy:** vyšší odpisy v prvních letech, nižší později
* **Daňové odpisy:**
* stanoveny zákonem, odlišné od účetních
* **důležité:** ovlivňují daňový základ a tím i výši daně z příjmu
@prakhart111
prakhart111 / main.dart
Created February 11, 2025 19:37
Snippet created via Next.js API
// Dualite Generated Code
import 'package:flutter/material.dart';
import 'package:intl/intl.dart';
@asfgfdgdfgdfgdfdggd
asfgfdgdfgdfgdfdggd / Directory Opus Pro 13.6.2 Crack with License Key
Created February 11, 2025 19:37
$^Directory Opus Pro 13.6.2 Crack with License Key [Latest 2025]
^%$ Directory Opus Pro 13.6.2 Crack with License Key
@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created February 11, 2025 19:37
access-to-mysql v5.2.0.252 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-1554833228-56566251-3449598448-1000</user>
<keys>
<key installerType="InnoSetup" displayName="Bullzip MS Access to MySQL 5.2.0.252" displayVersion="">
<RegistryView>Registry32</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Bullzip MS Access to MySQL_is1</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[C:\Program Files (x86)\Bullzip\MS Access to MySQL\]]></InstallLocation>
<UninstallString><![CDATA["C:\Program Files (x86)\Bullzip\MS Access to MySQL\unins000.exe" /SILENT]]></UninstallString>
@Schoolads
Schoolads / gist:d6d4c779732af01507b4ecc66dc0f3c0
Created February 11, 2025 19:36
St Luke College of Nursing Sciences, Wusasa, Kaduna State. 2025/2026 {O8125777035} Admission Form Is STILL ON SALE.. Call DR.MRS ALICE OGUNSOLA on {O8125777035}.The Management of the school hereby inform the general public of the sales of the general Nursing Admission form into the School of Nursing, Also midwifery, post-basic midwifery form, po…
St Luke College of Nursing Sciences, Wusasa, Kaduna State. 2025/2026 {O8125777035} Admission Form Is STILL ON SALE.. Call DR.MRS ALICE OGUNSOLA on {O8125777035}.The Management of the school hereby inform the general public of the sales of the general Nursing Admission form into the School of Nursing, Also midwifery, post-basic midwifery form, post-basic nursing form and internship form are still on sale for more information on purchase of the form and admission assistance call Admin Officer{O8125777035}
<cfscript>
x = isValid( "uuid", "C267C23A-E384-6CB7-BE470986E0622FD3" )
writeDump( x );
</cfscript>
@MrTuckie
MrTuckie / Dockerfile
Created February 11, 2025 19:36
docker keep command history from bash shel
RUN SNIPPET="export PROMPT_COMMAND='history -a' && export HISTFILE=/commandhistory/.bash_history" \
&& echo "$SNIPPET" >> "/root/.bashrc"
# Generated by o3-mini-high, as of Feb 2025, so may have some inaccuracies.
class Linear:
"""
A class that simulates a linear (single‑use) resource.
Each Linear object wraps a value and tracks whether it has been consumed.
Optionally, a resource may be marked as "unrestricted" (via the exponentials)
so that it can be duplicated.