Skip to content

Instantly share code, notes, and snippets.

View empjustine's full-sized avatar

大関 金城 秀喜 カシオ empjustine

View GitHub Profile
[00:00:05.000 --> 00:00:10.000] [music]
[00:00:40.000 --> 00:00:45.000] You know, the world of English is a fun and exciting place to be.
[00:00:45.000 --> 00:00:50.000] I'm so glad you could join me for another lesson.
[00:00:50.000 --> 00:00:55.000] [music]
[00:02:35.000 --> 00:02:40.000] A long time ago, in this sleepy rural idyll, a big change took place.
[00:02:40.000 --> 00:02:46.000] One which would alter the course of our industrial development and go on to change the world forever.
[00:02:46.000 --> 00:02:52.000] That change was made by one man. His name? Abraham Darby.
[00:02:52.000 --> 00:02:57.000] [music]
[00:03:07.000 --> 00:03:12.000] Abraham Darby was born in 1678 at Woodsetton near Sedgley,
[00:03:12.000 --> 00:03:17.000] which at that time was part of the County of Staffordshire.

statements

select BANNER_FULL from V$VERSION;

select TO_CHAR(N, 'TM') as N, vsize(N), dump(N) from (
-- toy multipart/form-data parser for https://redbean.dev/
-- if you want something that actually works, check fullmoon:
-- https://github.com/pkulchenko/fullmoon/blob/9d62cff189b106ddb540c98539861e27c418055f/fullmoon.lua#L267
Write('<!DOCTYPE html>')
-- boundary --
local content_type = GetHeader('Content-Type')
local boundary = content_type:match("boundary=(.+)")
#!/bin/bash
# Cronic v4 - cron job report wrapper
# Copyright 2007-2016 Chuck Houpt. No rights reserved, whatsoever.
# Copyright 2025. No rights reserved, whatsoever.
# Public Domain CC0: http://creativecommons.org/publicdomain/zero/1.0/
set -eu
TMP=$(mktemp -d)
We couldn’t find that file to show.
Number.isSafeInteger(Number.MIN_SAFE_INTEGER);
Number.isSafeInteger(Number.MAX_SAFE_INTEGER);
Number.MIN_SAFE_INTEGER === -(2 ** 53 - 1); // -9007199254740991
Number.MAX_SAFE_INTEGER === (2 ** 53 - 1); // -9007199254740991
Number.MAX_SAFE_INTEGER === 9_007_199_254_740_991;
#!/bin/sh
# strftime strptime format
# 2024-W52-3
current_iso_week_date="$(date +'%G-W%V-%u')"
# 2024-12-25T18:59:50-03:00
current_iso_8601_date="$(date +'%Y-%m-%dT%H:%M:%S%:z')"
# 2024-12-25T22:00:41Z
XDG_DATA_HOME="${XDG_DATA_HOME:-${HOME}/.local/share}"
XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-${HOME}/.config}"
XDG_STATE_HOME="${XDG_STATE_HOME:-${HOME}/.local/state}"
XDG_DATA_DIRS='/usr/local/share/:/usr/share/'
XDG_CONFIG_DIRS='/etc/xdg'
XDG_CACHE_HOME="${XDG_CACHE_HOME:-${HOME}/.cache}"
#XDG_RUNTIME_DIR="/run/user/$(id -ru)"
We couldn’t find that file to show.
@empjustine
empjustine / index.js
Created November 5, 2023 22:00
recast sort imports
import fs from 'node:fs';
import recast from 'recast';
const { namedTypes: n, builders: b } = recast.types.builders;
const code = fs.readFileSync(process.stdin.fd, 'utf-8');
const ast = recast.parse(code);
const imports = ast.program.body.filter(node => n.ImportDeclaration.check(node));