Skip to content

Instantly share code, notes, and snippets.

View cognominal's full-sized avatar

Stéphane Payrard cognominal

View GitHub Profile
@cognominal
cognominal / green-run-button-missing.md
Last active June 16, 2024 15:44
green run button missing

In vscode EDU introduction, the green triangle run button to run code is missing from the .py editor. In chrome MacOS. screenshot

@cognominal
cognominal / Makefile.in
Created May 13, 2024 12:45
messing with Makefile generation for integrating HAMT as a MoarVM repr
.PHONY: clean test
SRCS := src/hamt/cache.c
# src/hamt/hamt.c \
# src/hamt/murmur3.c \
# src/hamt/uh.c \
# src/reprs/hamt-node.c
OBJS := $(SRCS:.c=%O%)
@cognominal
cognominal / Makefile.in
Created May 13, 2024 12:41
messing with makefile generation
‎‎​
@cognominal
cognominal / ast-bingo.md
Last active December 3, 2023 04:24
AST bingo

AST TS Bingo

What is AST TS Bingo

The game is to write typescript programs that generate an AST that scores the most according to the rules stated below. An abstract typescript syntax tree is a data structure that represents the source code of a typescript program.

The left panel contains your program. The right panel contains generated AST

@cognominal
cognominal / .tours---quickpick-menus.tour
Last active October 26, 2023 22:27
quickpick-menus tour
{
"$schema": "https://aka.ms/codetour-schema",
"title": "quickpick menus",
"steps": [
{
"title": "Introduction",
"description": "I am exploring how Quickpick menus to program my 'shortcut extension', the goal is to create a provider that find the shortcut for each command in the shortcut menu for a given categoty\n"
},
{
"file": "src/vs/workbench/contrib/quickaccess/browser/quickAccess.contribution.ts",
@cognominal
cognominal / main.tour
Created September 5, 2023 00:51
treesitter codetout
{
"$schema": "https://aka.ms/codetour-schema",
"title": "treesitter",
"steps": [
{
"title": "Introduction",
"description": "I use playground as a way to familiarize myself with playground.js"
},
{
"file": "docs/assets/js/playground.js",
@cognominal
cognominal / ferris-wheel-css-only.markdown
Created June 29, 2023 22:51
Ferris wheel (CSS only)
@cognominal
cognominal / keybindings.json
Last active May 16, 2023 09:23
vscode mac keybindings
// Mac specific ?
// I try to keep many of my keybindings in the alt+* format
// Some are alternate of existing more complex keybindings.
// to optimize the keybinding space, the same keybindings will be used for different commands
// on different contexts. I keep them alphabetized
// I don't want to clobber emacs bindings with the alt-* bindings
// except when they have alternative using the arrow keys.
[
{
"key": "alt+a",
@cognominal
cognominal / delimied-parses.raku
Created February 17, 2023 01:22
delimited-parses.raku
=begin pod
Capturing stuff with arbitrary complex delimiters
without real parsinhg... but with Perl parser.
Except the end delimiter is brokem
Cannot resolve caller end(Any:U: H:D); none of these signatures matches:
(Any:U: *%_ --> 0)
(Any:D: *%_)
@cognominal
cognominal / pa
Last active February 16, 2023 21:42
parse
#! /usr/bin/env raku
use Grammar::Tracer;
my $s = q:to<END>;
fun a {
}
#
fun b {
whatever