Skip to content

Instantly share code, notes, and snippets.

View ponsfrilus's full-sized avatar
🤖
Ideas are easy. Execution is everything.

Nicolas Borboën ponsfrilus

🤖
Ideas are easy. Execution is everything.
View GitHub Profile
// ANSI Terminal stlye \u001B[1municorn\u001B[22m
// ZWJ https://en.wikipedia.org/wiki/Zero-width_joiner 👶
// UNICODE ☆ 🤓 え 术
const testStrings = [
'2189☆ 404⑂ nodejs-learning-guide (@chyingp/Ruby)',
'Nodejs学习笔记以及经验总结,公众号"程序猿小卡"',
'🤓 Build your own (insert technology here)',
'后端架构师技术图谱',
'☆🤓端',
'☆ 🤓 端',
@ponsfrilus
ponsfrilus / puppeteer timeline
Last active January 28, 2019 09:59
puppeteer timeline
This file has been truncated, but you can view the full file.
{"traceEvents":[{"pid":305,"tid":305,"ts":493945222891,"ph":"X","cat":"toplevel","name":"ThreadControllerImpl::DoWork","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":52,"tdur":52,"tts":31828},
{"pid":305,"tid":305,"ts":493945222971,"ph":"X","cat":"toplevel","name":"ThreadControllerImpl::DoWork","args":{"src_file":"../../base/trace_event/trace_log.cc","src_func":"SetEnabled"},"dur":510,"tdur":142,"tts":31908},
{"pid":305,"tid":305,"ts":493945222986,"ph":"S","cat":"toplevel","name":"RendererAudioState","args":{},"tts":31926,"id":"0xaf62a16724f057fc"},
{"pid":305,"tid":305,"ts":493945222986,"ph":"T","cat":"toplevel","name":"RendererAudioState","args":{"step":"silent"},"tts":31938,"id":"0xaf62a16724f057fc"},
{"pid":305,"tid":305,"ts":493945223014,"ph":"S","cat":"toplevel","name":"RendererVisibility","args":{},"tts":31954,"id":"0xaf62a16724f057fc"},
{"pid":305,"tid":305,"ts":493945223014,"ph":"T","cat":"toplevel","name":"RendererVisibility","args":{"step":"renderer_visible"
@ponsfrilus
ponsfrilus / mal_token.sh
Last active June 27, 2024 16:18
Bash script to retreive a MyAnimeList (MAL) API access Token
#!/usr/bin/env bash
#
# Simplify the TOKEN generation for the My Anime List API (MAL API).
#
# Link to this file: https://gist.github.com/ponsfrilus/5fa501752595c972f568b61fb192e8b5
#
# Usage:
# export MAL_CLIENT_ID='phiequ3nah4phohqu7aephae5va8eePu' MAL_CLIENT_SECRET='oof1EilohLaimeigi5eithei0Johlai4hud2EiTee8Ien3iRieTouSeiv1phaiti';
# ./mal_token.sh [--refresh]
# Note: these are pwgen generated, they won't work.
@ponsfrilus
ponsfrilus / README.md
Last active January 20, 2024 20:26
Replacement between markers

Replacement between markers

I'm looking for a sed command that replace a part of the [target.md] file identified by the <!-- start:block --> and <!-- end:block --> markers.

This part of the file has to be replaced either with [replaceA.md] or [replaceB.md], but the marker have to be there at the end, so we can start the process again.

You can clone this gist to get the files:

{
"slug": "codingClubDE",
"title": "Coding Club für Mädchen — DE",
"description": "Quiz für den SPS-Tag Wettbewerb am 8. Juni 2024.",
"image": "https://www.epfl.ch/education/education-and-science-outreach/wp-content/uploads/2020/01/Visuel-Coding-Club-plusieurs-pictos.png",
"visibility": "public",
"shuffle": true,
"info": {
"date": "2024-06-08",
"timeLimit": "15 Minuten",