This is gist to study "Learn You Some Erlang for Great Good!"
This gist is merged into pazworld/study repository.
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]; |
*.beam |
*.beam |
*.beam |
javascript:(function(){window.location.href='https://web.archive.org/web/*/'+document.URL;})(); |
*.beam |
Bookmarklet search for the Evernote contents. This is for "beta web editor", you must switch to beta editor previously.
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);})();
#!/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" |