Skip to content

Instantly share code, notes, and snippets.

@jimregan
jimregan / 53307682507_f49e1eeb67_vm.srt
Last active November 5, 2023 21:05
Edited whisper output of my 30% seminar
1
00:00:01,387 --> 00:00:03,387
[mwahahahaha]
2
00:00:04,202 --> 00:00:11,662
So... Phoneme recognition for fan and prophet: uses of more direct represations- representations of speech.
3
00:00:13,620 --> 00:00:15,840
@jimregan
jimregan / random-slack-emoji.ipynb
Last active March 6, 2023 21:25
random-slack-emoji.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/perl
use warnings;
use strict;
use utf8;
binmode(STDIN, ":utf8");
binmode(STDOUT, ":utf8");
binmode(STDERR, ":utf8");
my %skip = map { $_ => 1 } qw(lj_d ll_d m_d nj_d nn_d r_d rj_d);
@jimregan
jimregan / expand-noun-and-adjective.ipynb
Created August 19, 2021 18:20
expand-noun-and-adjective.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# VAD wrapper is taken from PyTorch Speaker Verification:
# https://github.com/HarryVolek/PyTorch_Speaker_Verification
# Copyright (c) 2019, HarryVolek
# License: BSD-3-Clause
# based on https://github.com/wiseman/py-webrtcvad/blob/master/example.py
# Copyright (c) 2016 John Wiseman
# License: MIT
# Additions Copyright (c) 2021, Jim O'Regan
# License: MIT
import collections
Based on
https://www.dyslexia-reading-well.com/44-phonemes-in-english.html
adapted for US English, and with additions
Lexicon based on wiktionary (but normalised)
@jimregan
jimregan / README.txt
Last active October 25, 2020 21:33
Middle Irish for festus
Lexicon is based on the one from https://github.com/kylebgorman/wikipron
wikipron has all IPA symbols split; I've rejoined (what I assume are) diphthongs
Alignables file was made based on the lexicon; there are undoubtedly missing alignables
Needs festus (part of https://github.com/google/language-resources/)
@jimregan
jimregan / README.txt
Last active October 23, 2020 19:56
Manx pieces
https://en.wikipedia.org/wiki/Manx_language
/* print middle element of list; second if even */
/* http://practice.geeksforgeeks.org/problems/finding-middle-element-in-a-linked-list/1 */
/* tl;dr - two pointers, one incrementing by two */
#include <stdio.h>
#include <stdlib.h>
struct Node {
int data;
struct Node* next;
private static String dropSpaces(String s) {
String out = "";
for(char c : s.toCharArray()) {
if(c != ' ') {
out += c;
}
}
return out;
}
public static String stringDropsString(String haystack, String needle) {