Skip to content

Instantly share code, notes, and snippets.

View trammell's full-sized avatar

John Trammell trammell

  • Ruffalo Noel Levitz
  • Minneapolis, MN
  • 09:30 (UTC -06:00)
View GitHub Profile
# From https://dev.to/justdamilare/create-homebrew-taps-for-private-github-repos-14dm
require "download_strategy"
class GitHubPrivateRepositoryDownloadStrategy < CurlDownloadStrategy
require "utils/formatter"
require "utils/github"
@trammell
trammell / domain.yml
Last active March 3, 2023 23:14
Rasa domain file with a very long utterance
# the first response in this domain file triggers a BlockingIO error
version: "3.1"
intents:
- greet
- goodbye
- affirm
- deny
- mood_great
@trammell
trammell / lakota-nlp.ipynb
Created December 14, 2022 04:04
CSci 5511 jupyter notebook for Lakota language NLP
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@trammell
trammell / keybase.md
Created November 19, 2017 03:55
keybase.md

Keybase proof

I hereby claim:

  • I am trammell on github.
  • I am johntrammell (https://keybase.io/johntrammell) on keybase.
  • I have a public key ASDBMtWHqT1Ig90VOSljKzoX3ow56Jj1DdCOylMZemYyPwo

To claim this, I am signing this object:

@trammell
trammell / prune-columns.pl
Created March 11, 2016 15:28
A short Perl script to remove columns from a CSV file, based on column headers.
#!/usr/bin/perl
=pod
=head1 NAME
prune-columns.pl - prune columns from a CSV file
=head1 USAGE
@trammell
trammell / foreach-benchmark.ps1
Last active March 10, 2016 03:43
Some PowerShell code benchmarking the ForEach command
#Get-Command -CommandType All | foreach { $_ }
foreach ($ent in Dir c:\) { $ent.Name }
Dir c:\ | foreach { $_.Name }
Dir c:\ | ForEach-Object { $_.Name }
function Benchmark-Command ([ScriptBlock]$Expression, [int]$Samples = 1, [Switch]$Silent, [Switch]$Long) {
<#
.SYNOPSIS
@trammell
trammell / run.sh
Last active December 21, 2015 16:18
run.sh from M102 week 6 -- shard setup
mkdir a0 a1 a2
mkdir b0 b1 b2
mkdir c0 c1 c2
mkdir d0 d1 d2
mkdir cfg0 cfg1 cfg2
# config servers
@trammell
trammell / mips.py
Last active December 15, 2015 16:29
Snippet to translate MIPS assembler to bytecode
#!/usr/bin/python
import sys
def main():
for line in sys.stdin:
print line
# parse out operator
# parse out operands
@trammell
trammell / rename
Created July 18, 2011 14:35
Perl rename script
#!/usr/bin/perl
# Usage: rename perlexpr [files]
($regexp = shift @ARGV) || die "Usage: rename perlexpr [filenames]\n";
if (!@ARGV) {
@ARGV = <STDIN>;
chomp(@ARGV);
}
@trammell
trammell / cpan-index-reload.pl
Created July 14, 2011 15:40
Small script to reload CPAN index.
#!/usr/bin/perl
use strict;
use warnings FATAL => 'all';
use CPAN;
CPAN::Index->reload;