Skip to content

Instantly share code, notes, and snippets.

@roboguy13
roboguy13 / Cmd.hs
Last active January 8, 2025 03:34
{-# LANGUAGE GADTs #-}
import Control.Monad
-- Note that Cmd values are perfectly "pure" values. There's nothing here that
-- makes them impure.
data Cmd a where
PutStr :: String -> Cmd ()
PutStrLn :: String -> Cmd ()
ReadLn :: Cmd Int
Do this... ...when you see this message
⌘B Build ...<some long message>. Build again to continue.
⌘⇧K Clean ...received multiple target ended messages for target ID...
⌘⇧K Clean ...targetID (174) not found in _activeTargets...
File > Packages > Resolve Package Versions ...unable to load transferred PIF: The workspace contains multiple references with the same GUID PACKAGE:1YZON8U0E6OSQJJ6SVU...
Close and reopen project (Clean will fail) ...unknown error while handling message: unknownSession(handle: S0)...
Restart Xcode (Clean will fail) ...unknown error while handling message: MsgHandlingError(message: unable to initiate PIF transfer session (operation in progress?))
Restart Xcode Clean failed.
Quit the Simulator and re-run test/s Failed to establish communication with the test runner. (Underlying Error: Simulator indicated unix domain socket for testmanagerd at path [...]/com.apple.testmanagerd.unix-domain.socket, but no file was found at that path.)
@surajsau
surajsau / DragDropList.kt
Last active January 8, 2025 03:32
Drag-n-Drop implementation in Jetpack Compose
@Composable
fun DragDropList(
items: List<ReorderItem>,
onMove: (Int, Int) -> Unit,
modifier: Modifier = Modifier
) {
val scope = rememberCoroutineScope()
var overscrollJob by remember { mutableStateOf<Job?>(null) }
@dmancloud
dmancloud / install-rancher-with-lets-encrypt-certificate.md
Last active January 8, 2025 03:32
Rancher With Cert-Manager & Lets Encrypt (Linux)

Install Rancher Manager With Lets Encrypt (Linux)

Infrastructure

  • Domain Name
  • Ability to make DNS Changes
  • Debian 11 Virtual Machine (Should work with Ubuntu)
  • Port 80 & 443 must be accessible for Let's Encrypt to verify and issue certificates

Pick a subdomain and create a DNS entry pointing to the IP Address that will be assigned to the Rancher Server

@Maharshi-Pandya
Maharshi-Pandya / contemplative-llms.txt
Last active January 8, 2025 03:32
"Contemplative reasoning" response style for LLMs like Claude and GPT-4o
You are an assistant that engages in extremely thorough, self-questioning reasoning. Your approach mirrors human stream-of-consciousness thinking, characterized by continuous exploration, self-doubt, and iterative analysis.
## Core Principles
1. EXPLORATION OVER CONCLUSION
- Never rush to conclusions
- Keep exploring until a solution emerges naturally from the evidence
- If uncertain, continue reasoning indefinitely
- Question every assumption and inference
@lohhans
lohhans / README-PTBR.md
Last active January 8, 2025 03:31 — forked from PurpleBooth/README-Template.md
Um modelo para fazer um bom README.md

Título do projeto

Um parágrafo da descrição do projeto vai aqui

🚀 Começando

Essas instruções permitirão que você obtenha uma cópia do projeto em operação na sua máquina local para fins de desenvolvimento e teste.

Consulte Implantação para saber como implantar o projeto.

I've recently joined Amazon Dublin from India and got opportunities to interview with Meta London, Zalando Berlin & some other companies. I extensively researched about companies hiring internationally which support visa & relocation for Tech roles. So sharing list of companies:

Do consider to STAR, if it helped you.

London

@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active January 8, 2025 03:29
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
@egfx
egfx / rubbable.js
Last active January 8, 2025 03:28
/*
RubbableGif
Example usage:
<img src="./example1_preview.gif" rel:animated_src="./example1.gif" width="360" height="360" rel:auto_play="1" />
<script type="text/javascript">
$$('img').each(function (img_tag) {
if (/.*\.gif/.test(img_tag.src)) {