This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:- module dogcrypt2. | |
:- interface. | |
:- import_module io. | |
:- pred main(io::di, io::uo) is det. | |
:- implementation. | |
:- import_module int, list, string, solutions. | |
main(!IO) :- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let Block = { level: Natural, list: List Text } | |
let blacklist: List Block = | |
[ { level = 0 | |
, list = | |
[ "reddit.com" | |
, "old.reddit.com" | |
, "www.reddit.com" | |
, "twitter.com" | |
, "x.com" | |
, "nitter.poast.org" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2024 dwt | terminus, LLC | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# The above copyright notice and this permission notice shall be included in all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
const std::size_t num_buttons = 16; | |
const std::size_t total_buttons = num_buttons + 4; | |
#define FOR_EACH_NUMBER(n) "Button " #n, | |
const char* english[total_buttons] = { | |
#include "numbers.def" | |
"Hat Up", | |
"Hat Down", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstddef> | |
#include <cstdio> | |
#include <utility> | |
constexpr std::size_t num_digits(unsigned char n) noexcept | |
{ | |
if (n < 10) | |
return 1; | |
if (n < 100) | |
return 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2023 dwt | terminus, LLC | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# The above copyright notice and this permission notice shall be included in all |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
const input = [1.0, 2.0, 3.0, 4.0, 5.0]; | |
const code = document.getElementById('code'); | |
const output = document.getElementById('output'); | |
let timeoutId; | |
async function init() { | |
let pyodide = await loadPyodide(); | |
await pyodide.loadPackage('numpy'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BEGIN { FS = "," } | |
NR == 1 { | |
for (i = 0; i < NF; ++i) | |
hdr[i] = $i | |
} | |
NR > 1 { | |
for (i = 0; i < NF; ++i) | |
print "[" i - 1 "]: " hdr[i] " = " $i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires AutoHotkey v2.0 | |
^+F12:: | |
{ | |
run "rundll32.exe shell32.dll Control_RunDLL mmsys.cpl" | |
WinWait "ahk_class #32770" | |
Send "{Down 2}" | |
Send "{Tab 2}{Enter}" | |
WinWait "ahk_class #32770" | |
Sleep 50 | |
Send "^{Tab}^{Tab}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright (c) 2023 Derrick W. Turk / terminus, LLC | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights | |
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
# copies of the Software, and to permit persons to whom the Software is | |
# furnished to do so, subject to the following conditions: | |
# The above copyright notice and this permission notice shall be included in all |
NewerOlder