Skip to content

Instantly share code, notes, and snippets.

View rorymalcolm's full-sized avatar

rory malcolm rorymalcolm

View GitHub Profile
@rorymalcolm
rorymalcolm / create_listening_history.sql
Created April 24, 2023 22:57
Create Listening History
CREATE TABLE
listening_history AS
SELECT
*
FROM
read_json (
'endsong_*.json',
maximum_object_size = 10485760,
json_format = 'array_of_records',
columns = {
#!/bin/sh
for f in *; do
if [ -d "$f" ]; then
# $f is a directory
echo $f
figlet -f cricket -w 200 $f
cd $f
git checkout master && git pull
cd ../
@rorymalcolm
rorymalcolm / AsciiTreeGenerator.java
Last active December 13, 2019 17:20
Ascii Tree Generator
public class AsciiTreeGenerator {
public static void main(String[] args) {
generateLines(Integer.parseInt(args[0]));
}
private static void generateLines(int height) {
System.out.print(generateLine(height, 0));
}

Keybase proof

I hereby claim:

  • I am rorymalcolm on github.

  • I am rorymalcolm (https://keybase.io/rorymalcolm) on keybase.

  • I have a public key ASDcipV-4bRgw7YTsdt9l27ZfSICHW1BPzm-ZtoltgH5Cgo