- iso_datetime
-
Date and time in ISO 8601 UTC, e.g.
20240428T051943Z
= 2024-04-28 (time T) 05:19:43 (UTC Z)
iso_date
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
import terjemahkan | |
jadikan: | |
n = 10 | |
untuk i dari 1..2: | |
jadikan: j = n + i | |
variabel: | |
a = 10 | |
cetak "j itu ", j |
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
# first phase, build Furnace | |
FROM alpine:3.18 AS builder | |
RUN apk add --no-cache --update \ | |
git cmake ninja gcc g++ alsa-lib-dev mesa-dev musl-dev | |
RUN git clone --recursive https://github.com/tildearrow/furnace | |
WORKDIR /furnace |
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
# based on https://github.com/choltreppe/parlexgen | |
import std/[strutils, options, strformat] | |
import parlexgen, macros | |
type | |
# kinds of expressions | |
ExpKind = enum | |
expNum, # a numeric constant | |
# operators |
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 "regex >= 0.20.2" | |
import strformat | |
import os | |
import strutils | |
import regex | |
when is_main_module: | |
var is_in_doc: bool = false | |
var matches: RegexMatch |
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 "regex >= 0.20.2" | |
import strformat, strutils | |
import parseopt | |
import os | |
import options | |
import regex | |
type ProgramOptions = object | |
strict: bool |
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
#!/usr/bin/env python3 | |
""" | |
below is the kind of docstrings it'll work with | |
it's admittedly very limited | |
;; | |
; Here's a Doxygen-format docstring. | |
; | |
; @param hl Target |
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
#!/usr/bin/python | |
import csv | |
import sys | |
if len(sys.argv) < 2: | |
print("midicsv_convert_timebases.py [to_timebase]") | |
print() | |
print("e.g. midicsv MYMIDI.mid | midicsv_convert_timebases.py 96 | csvmidi - > MYMIDI_corrected.mid") | |
exit(0) |
NewerOlder