Skip to content

Instantly share code, notes, and snippets.

View l3dlp's full-sized avatar
🎯
go+wasm revives me ✔️

L3DLP labs l3dlp

🎯
go+wasm revives me ✔️
View GitHub Profile
@l3dlp
l3dlp / go-update.sh
Created April 6, 2026 08:06
Make Golang up-to-date in a bash file
#!/usr/bin/bash
function GO_UPD() {
# Récupération de la version en ligne
# L'option -k a été retirée de curl pour forcer la validation du certificat TLS (sécurité)
local GO_VER_RAW=$(curl -s "https://go.dev/VERSION?m=text")
local GO_VER=$(echo "$GO_VER_RAW" | awk 'NR==1')
if [[ -z "$GO_VER" ]]; then
echo "Erreur : Impossible de récupérer la dernière version de Go en ligne."
@l3dlp
l3dlp / cssdump.js
Created March 19, 2026 09:07
Retrieve the CSS stored in the browser's memory
(async () => {
let css = '';
for (const sheet of document.styleSheets) {
try {
for (const rule of sheet.cssRules) {
css += rule.cssText + '\n';
}
} catch (e) {
console.warn('Blocked:', sheet.href);
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
@l3dlp
l3dlp / chatgpt-coninue-bookmarklet.js
Created January 21, 2023 19:46
ChatGPT "Please continue..." Bookmarklet
javascript:e=document.querySelector("textarea");if(e){e.value = "please continue where you stopped";let t = e.nextElementSibling; if(t && t.tagName === "BUTTON") t.click()}
@l3dlp
l3dlp / index.html
Created October 24, 2022 17:30
qBKWGQX
<div
style="padding: 2rem; max-width: 800px; margin: auto; line-height: 1.5"
>
<main>
<h1 id="dark-theme">Dark theme</h1>
<p>This Uppload example uses a dark theme instead of a light theme.</p>
<p>
You can
<strong
><a
@l3dlp
l3dlp / SMBDIS.ASM
Created April 12, 2022 22:37 — forked from 1wErt3r/SMBDIS.ASM
A Comprehensive Super Mario Bros. Disassembly
;SMBDIS.ASM - A COMPREHENSIVE SUPER MARIO BROS. DISASSEMBLY
;by doppelganger (doppelheathen@gmail.com)
;This file is provided for your own use as-is. It will require the character rom data
;and an iNES file header to get it to work.
;There are so many people I have to thank for this, that taking all the credit for
;myself would be an unforgivable act of arrogance. Without their help this would
;probably not be possible. So I thank all the peeps in the nesdev scene whose insight into
;the 6502 and the NES helped me learn how it works (you guys know who you are, there's no
package main
import (
"gorm.io/driver/sqlite"
"gorm.io/gorm"
)
type job1 struct {
ID int `gorm:"primaryKey"`
UniqueField1 string
@l3dlp
l3dlp / example.html
Created May 17, 2019 17:03 — forked from kylebarrow/example.html
Prevent links in standalone web apps opening Mobile Safari
<!DOCTYPE html>
<head>
<title>Stay Standalone</title>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<script src="stay_standalone.js" type="text/javascript"></script>
</head>
<body>
<ul>
<li><a href="http://google.com/">Remote Link (Google)</a></li>
@l3dlp
l3dlp / a-better-material-fab-menu-with-svg-and-gsap.markdown
Created May 4, 2019 21:59
A Better Material FAB Menu with SVG and GSAP

A Better Material FAB Menu with SVG and GSAP

I noticed loss of fidelity after completion of scale transforms in Safari on the iPad Mini. This MDL button element now contains an SVG circle and an SVG icon. The animation of the circle and menu is handled by TweenMax from GSAP.

A Pen by Daniel Kemper on CodePen.

License.