Skip to content

Instantly share code, notes, and snippets.

View pazworld's full-sized avatar

pazworld pazworld

View GitHub Profile
@pazworld
pazworld / .00-README.md
Last active January 5, 2023 07:39
study "Learn You Some Erlang for Great Good!"

This is gist to study "Learn You Some Erlang for Great Good!"

This gist is merged into pazworld/study repository.

% this program solve the question from https://twitter.com/nya3_neko2/status/1481503969965142016
-module(gakkou).
-export([permutation/1, start/0, test/0]).
permutation(L) ->
lists:reverse(permutation([], [], L)).
permutation(Results, Current, []) ->
[lists:reverse(Current) | Results];
@pazworld
pazworld / .gitignore
Last active October 10, 2020 14:43
BowlingGameKata in Erlang 3
*.beam
@pazworld
pazworld / .gitignore
Last active September 25, 2020 11:15
BowlingGameKata in Erlang 2
*.beam
@pazworld
pazworld / .gitignore
Last active September 23, 2020 12:50
BowlingGameKata in Erlang
*.beam
@pazworld
pazworld / wayback.js
Created September 15, 2020 01:54
Bookmarklet that shows current web page in Internet Archive
javascript:(function(){window.location.href='https://web.archive.org/web/*/'+document.URL;})();
@pazworld
pazworld / .gitignore
Last active June 13, 2021 06:41
wxErlang graphic test for chip8er
*.beam
@pazworld
pazworld / 00-README-search-evernote-beta-editor.md
Last active February 26, 2024 09:55
Bookmarklet search for the Evernote contents (for beta web editor environment)

Description

Bookmarklet search for the Evernote contents. This is for "beta web editor", you must switch to beta editor previously.

Bookmarklet Code

javascript:(function(){var o=' notebook:"my notebook"',s=window.prompt("Search for Evernote"),u;if(!s)return;u="https://www.evernote.com/client/web#?query="+s+o;location.href=encodeURI(u);})();
@pazworld
pazworld / 00-README-firstslim.md
Created October 31, 2019 22:42
my first slim test

First Slim

@pazworld
pazworld / charge_notify.sh
Last active November 11, 2019 06:40
Battery overcharge notification script for my ThinkPad X220 under Arch Linux
#!/bin/sh -eu
# Battery overcharge notification script for my ThinkPad X220 under Arch Linux
# most ideas and codes are from
# https://linoxide.com/linux-how-to/remind-unplug-charging-laptop-arch-linux/
# thanx
MAX_BAT=70
MIN_BAT=40
BAT_DEV="/org/freedesktop/UPower/devices/battery_BAT0"