Skip to content

Instantly share code, notes, and snippets.

View kew-l's full-sized avatar

klew kew-l

  • Danmark
View GitHub Profile
@kew-l
kew-l / tg2p.st
Created March 4, 2020 15:24 — forked from jdevoo/tg2p.st
Not so Terse Guide to Pharo
"**************************************************************************
* Allowable characters: *
* - a-z *
* - A-Z *
* - 0-9 *
* - .+/\*~<>@%|&? *
* - blank, tab, cr, ff, lf *
* *
* Variables: *
* - variables must be declared before use *
@kew-l
kew-l / ng-aura.hoon
Created November 17, 2019 17:35
~nidsyp-widsum hoon school week 1 assignment
|= in=@
^- @p
`@p`in
@kew-l
kew-l / gist:897d4a34c5052577c906
Created November 24, 2015 20:51
many-to-many count
for c in Category.objects.all():
print "{cname}: {num_items} items".format(cname=c.name, num_items=c.annotate(num_items=Count('item'))[0].num_items)
// ========================== KeySnail Init File =========================== //
// You can preserve your code in this area when generating the init file using GUI.
// Put all your code except special key, set*key, hook, blacklist.
// ========================================================================= //
//{{%PRESERVE%
plugins.options["tanything_opt.keymap"] = {
"C-z" : "prompt-toggle-edit-mode",
"SPC" : "prompt-next-page",
"b" : "prompt-previous-page",