interface: punching card --> terminal: (teletype --> video terminal :vt100:1978 ) -> GUI
containers: process
sed --> awk --> perl --> raku --> shaku
chunkingr
punched card :inventor:1725 but< a tape>
interface: punching card --> terminal: (teletype --> video terminal :vt100:1978 ) -> GUI
containers: process
sed --> awk --> perl --> raku --> shaku
chunkingr
punched card :inventor:1725 but< a tape>
sub trim($s) { | |
$_ = $s; | |
s/ ^ \s+//; | |
s/ \s+ $//; | |
$_ | |
} | |
say "'" ~ trim(" toto ") ~ "'" |
# the goal of this experiment is to access the long name of a method | |
# that result in the current match. | |
# A match being derived from cursor, maybe its $!name is what I want. | |
# I try to add a &name method in Cursor.nqp but it does not it. | |
# I list the method name to check. | |
# that was obvious. I tested using nqp instead of ./nqp | |
sub quicksort(@list, $low, $high, &compare) { | |
if $low < $high { | |
my $q := partition(@list, $low, $high, &compare); |
#! /usr/bin/env raku | |
my @files = dir; | |
for @files { | |
rename $_, sprintf("%03s", $0 ) ~ $1 if /(\d+)(.*)/; | |
} |
just trying
#! /usr/bin/env raku | |
=begin pod | |
rk-bisect is given three arguments. | |
A file path, a raku one liner, and a sha1 (5 chars min). | |
A each stage of the bisection, $_ is set to | |
the string content of the file. The one liner | |
is executed and the commit is considered good if | |
the oneliner value is truthy. | |
Eventually rk-bisect print the sha1 of the first bad commit. |
# unit class Sexpr; | |
# use Grammar::Tracer; | |
grammar Sexpr-Grammar is export { | |
token ws { [ <comment> | \s ]* } #| <wb> } | |
rule TOP { <.ws>? <TOP-sexpr>+ } | |
rule TOP-sexpr { <sexpr> } | |
rule sexpr { '(' <declare>? <itemy> * ')' } # { say $/.Str } } | |
token itemy { <sexpr> | <wordy> } | |
token comment { \h* '#' \V* \v } |
<script> | |
import * as yootils from 'yootils'; | |
import { createEventDispatcher } from 'svelte'; | |
const dispatch = createEventDispatcher(); | |
// export let name; | |
let type = 'vertical', h, w, size, pos; | |
let dragging = false | |
let refs = {} |
<div id="f" class='root'> | |
<div id="g"> | |
<div id="k">foo</div> | |
</div> | |
</div> | |
<div id='diag'> | |
kkkkk | |
</div> |