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
set epoch to do shell script "perl -e 'print ~~time'" | |
set dir to "/tmp/" & epoch | |
do shell script "mkdir " & dir | |
tell application "Slack" to activate | |
tell application "System Events" | |
set counter to 1 | |
repeat 1000 times | |
delay 1 | |
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
#!/bin/sh | |
# this script relies on a bunch of stuff | |
# | |
# 1. ffmpeg has been installed by brew | |
# 2. The instructions from https://blog.castopod.org/install-whisper-cpp-on-your-mac-in-5mn-and-transcribe-all-your-podcasts-for-free/ | |
# have been followed to install whisper.cpp and the models. These are: | |
# cd ~/co | |
# git clone https://github.com/ggerganov/whisper.cpp.git | |
# cd whisper.cpp |
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
<!DOCTYPE html> | |
<head> | |
<style> | |
body { background: purple; font-family: Helvetica, sans-serif } | |
h1 { font-size: 100pt; font-size: 20vw; text-align: right} | |
h2 { font-size: min(3vw, 50px) } | |
p { font-size: min(2vw, 30px) } | |
#time { background: yellow; padding: 0.5vw } | |
.cyan { background: cyan; padding: 0.5vw } |
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
SQLite version 3.11.0 2016-02-15 17:29:24 | |
Enter ".help" for usage hints. | |
sqlite> SELECT name, rating | |
...> FROM wikipedia_films | |
...> JOIN imdb_films | |
...> USING (name, year) | |
...> ORDER BY rating DESC | |
...> LIMIT 100; | |
It's a Wonderful Life|8.6 | |
Die Hard|8.2 |
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/perl | |
# set the iterm background depending on what directory you're in. | |
# 1) put this file in you path. | |
# 2) put this in your .zshrc | |
# function chpwd() { | |
# change-terminal-background | |
# } | |
# 3) Create the directory ~/setup/whatever/bg |
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/perl | |
use strict; | |
use warnings; | |
use HTTP::Tiny; | |
use IPC::Run3 qw( run3 ); | |
use JSON::PP qw( encode_json decode_json ); | |
my $PROJECT_ID = ...; # The numbers at the end of your project URL |
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
package ojoJojo; | |
use Mojo::Base -strict; | |
use ojo; | |
use Mojo::Util qw(monkey_patch); | |
use Mojo::JSON::Pointer; | |
use Scalar::Util qw( blessed ); | |
sub import { |
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
const url = "http://www.rcscares.org/lunch-menu/" | |
try { | |
// ########################################### | |
// work out the name of the dow we want lunch for | |
// ########################################### | |
const days = [ | |
"Monday", |
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/perl | |
use strict; | |
use warnings; | |
use File::Spec::Functions qw(catfile); | |
use File::Basename qw(dirname); | |
use HTML::Strip (); | |
use JSON::PP qw(decode_json); | |
use LWP::UserAgent (); |
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
{ | |
"title" : "iTunes direct", | |
"rules" : [ | |
{ | |
"manipulators" : [ | |
{ | |
"from" : { | |
"modifiers" : { | |
"mandatory" : [ | |
"fn", |
NewerOlder