Skip to content

Instantly share code, notes, and snippets.

@AndrasKovacs
AndrasKovacs / ZeroCostGC.md
Last active May 11, 2024 16:30
Garbage collection with zero-cost at non-GC time

Garbage collection with zero cost at non-GC time

Every once in a while I investigate low-level backend options for PL-s, although so far I haven't actually written any such backend for my projects. Recently I've been looking at precise garbage collection in popular backends, and I've been (like on previous occasions) annoyed by limitations and compromises.

I was compelled to think about a system which accommodates precise relocating GC as much as possible. In one extreme configuration, described in this note, there

@Klerith
Klerith / vite-testing-config.md
Last active May 11, 2024 16:30
Vite + Jest + React Testing Library - Configuraciones a seguir

Instalación y configuracion de Jest + React Testing Library

En proyectos de React + Vite

  1. Instalaciones:
yarn add --dev jest babel-jest @babel/preset-env @babel/preset-react 
yarn add --dev @testing-library/react @types/jest jest-environment-jsdom
  1. Opcional: Si usamos Fetch API en el proyecto:
@greymd
greymd / sudo新一.md
Last active May 11, 2024 16:29
sudo新一

 オレは高校生シェル芸人 sudo 新一。幼馴染で同級生の more 利蘭と遊園地に遊びに行って、黒ずくめの男の怪しげな rm -rf / 現場を目撃した。端末をみるのに夢中になっていた俺は、背後から近づいてきたもう1人の --no-preserve-root オプションに気づかなかった。 俺はその男に毒薬を飲まされ、目が覚めたら・・・ OS のプリインストールから除かれてしまっていた!

sudo がまだ $PATH に残っていると奴らにバレたら、また命を狙われ、他のコマンドにも危害が及ぶ』

 上田博士の助言で正体を隠すことにした俺は、 which に名前を聞かれて、とっさに『gnuplot』と名乗り、奴らの情報をつかむために、父親がシェル芸人をやっている蘭の $HOME に転がり込んだ。ところが、このおっちゃん・・・とんだヘボシェル芸人で、見かねた俺はおっちゃんになりかわり、持ち前の権限昇格能力で、次々と難タスクを解決してきた。おかげで、おっちゃんは今や世間に名を知られた名エンジニア、俺はといえばシェル芸 bot のおもちゃに逆戻り。クラスメートの convertojichattextimg にお絵かきコマンドと誤解され少年ワンライナーお絵かき団を結成させられる始末。

 ではここで、博士が作ってくれたメカを紹介しよう。最初は時計型麻酔 kill 。ふたについた照準器にあわせてエンターを押せば、麻酔シグナルが飛び出し、プロセスを瞬時に sleep させることができる。 次に、蝶ネクタイ型 banner 。裏についているダイヤルを調整すれば、ありとあらゆる大きさのメッセージを標準出力できる。必殺のアイテムなら fork 力増強シューズ。電気と磁力で足を刺激し、 :(){ :|:& };: でプロセステーブ

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 11, 2024 16:26
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@sgdc3
sgdc3 / jsontomidi.js
Last active May 11, 2024 16:24
LittleBigPlanet Music Sequencer MIDI Dumper
/*
* LittleBigPlanet Music Sequencer MIDI Dumper
* NodeJS script that extracts music sequencer data from LBP levels in JSON format (jsoninator format)
*
* Author: @sgdc3
* Version: 0.2
* Latest Update: 07 May 2024
*
* HINT: You can obtain the JSON level data using https://github.com/ennuo/toolkit/tree/main/tools/jsoninator
* Output Format: ./out/{Level ID}/{Sequencer UID}/{Sequence Name}/{Sequence Name}-{Track Id}.mid
@anabsolutesloth
anabsolutesloth / AdvRocketryGuideMCEternal.md
Last active May 11, 2024 16:22
A Guide to doing the Advanced Rocketry mod in the MC Eternal Modpack

WARNING: You'll want to have some good infrastructure before starting, as the recipes for the more critical Advanced Rocketry machines are heavily modified to be MUCH more expensive, an ME System would be wise.

1st Stage

The following items will be required to be able to craft everything to get out of the Atmosphere:
MULTIBLOCK CORES:

  • Precision Assembler
  • Cutting Machine
  • Rolling Machine
@kyo-takano
kyo-takano / making-the-most-of-local-llms.ipynb
Last active May 11, 2024 16:19
ローカルLLMはこーやって使うの💢
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@dannberg
dannberg / obsidian-people-template.txt
Last active May 11, 2024 16:18
Dann Berg's People Template for Obsidian. Uses Dataview & Templater plugins. Should be saved as a Markdown file in Obsidian. See full tutorial for setup instructions: https://dannb.org/blog/2022/obsidian-people-note-template/
---
company:
location:
title:
email:
website:
aliases:
---
tags:: [[👥 People MOC]]
@saaiful
saaiful / gist:586e920310cd37d6c4ce
Last active May 11, 2024 16:16
বাংলায় গানিতিক সমস্যার সমাধান
function en2bn(input){
var en = ["1","2","3","4","5","6","7","8","9","0"];
var bn = ["১","২","৩","৪","৫","৬","৭","৮","৯","০"];
input = input.toString();
for( var i = 0; i < 10; i++)
{
var re = new RegExp(en[i], 'g');
input = input.replace(re,bn[i]);
}
return input;