Skip to content

Instantly share code, notes, and snippets.

View jacoby's full-sized avatar
🌮
I ❤️ Tacos

Dave Jacoby jacoby

🌮
I ❤️ Tacos
View GitHub Profile
@jacoby
jacoby / build_log
Created March 5, 2024 20:51
Build Log for trying to do Jekyll on my blog. Error on line 97,98
Run docker run \
Unable to find image 'jekyll/builder:latest' locally
latest: Pulling from jekyll/builder
df9b9388f04a: Pulling fs layer
837e9cfc7e43: Pulling fs layer
c7850f1a8c23: Pulling fs layer
6ca4c39baa3d: Pulling fs layer
daa3a8cb79d3: Pulling fs layer
227459856603: Pulling fs layer
6ca4c39baa3d: Waiting
@jacoby
jacoby / test.py
Created March 1, 2024 04:49
Python test
#!/usr/bin/env python
from sys import argv
import os
def read_file (file):
if os.path.exists(file):
with open( file , "r") as f:
words = f.read()
f.closed
@jacoby
jacoby / ash_valentine.pl
Created February 14, 2024 20:36
Perl program to show when Ash Wednesday falls on St. Valentine's Day
#!/usr/bin/env perl
use strict;
use experimental qw{say};
use DateTime;
use DateTime::Event::Easter;
my $val_day = 14;
my $val_mon = 2;
my $api = DateTime::Event::Easter->new(day=>'Ash Wednesday');
@jacoby
jacoby / get_temp.pl
Last active September 24, 2023 21:09
store_temp.pl pulls the current temperature from darksky.net (formerly forecast.io) and stores it in Redis. get_temp.pl retrieves it.
#!/usr/bin/env perl
# retrieves the current temperature from REDIS to be used in the bash prompt
# I should also get curr_time and, if the difference is too big, prints nothing
# but not implemented yet.
use feature qw{ say state unicode_eval unicode_strings } ;
use strict ;
use warnings ;
use utf8 ;
@jacoby
jacoby / build.perl-5.36.1.log
Last active July 3, 2023 18:11
Perl 5.38 not building in perlbrew on WSL
Auto-guessed '5.36.1'
Nothing else to do, '5.36.1' is fine
Beginning of configuration questions for perl5.
Checking echo to see how to suppress newlines...
...using \c
The star should be here-->*
First let's make sure your kit is complete. Checking...

Keybase proof

I hereby claim:

  • I am jacoby on github.
  • I am jacoby (https://keybase.io/jacoby) on keybase.
  • I have a public key whose fingerprint is EEFB 8804 862C ECCF A99F A873 2AEE 731D B3FB 3D5F

To claim this, I am signing this object:

#!/usr/bin/env perl
use strict;
use warnings;
use Benchmark qw(:all);
my $count = 1_000_000;
timethese(
$count,
{
@jacoby
jacoby / ladder.pl
Created October 11, 2021 04:40
Current Ladder Code
#!/usr/bin/env perl
use strict ;
use warnings ;
use feature qw{ say postderef signatures } ;
no warnings qw{ experimental } ;
use utf8 ;
use JSON ;
use List::Util qw{min} ;
@jacoby
jacoby / fitbit.download.py
Created April 15, 2013 18:13
Using my DB and FitBit Python code to download the last five days of FitBit data (because I don't necessarily sync the thing every day)
#!/usr/bin/env python
# downloads last five days of fitbit info, not including the current day.
# the current day's info isn't finished, and I often don't have it sync
# during the weekend
import datetime
import httplib
import os
import simplejson as json
@jacoby
jacoby / beating_my_head_against_a_moose.pl
Created January 19, 2021 21:35
This is my commented understanding of the suggestions, after it was made to work. Wondering if I should blog this.
#!/usr/bin/env perl
use strict;
use warnings;
# This must come before `main`. Most Moose uses will be in a
# separate module, but for the Perl Challenge code, I try to
# keep in all in one file to avoid issues.
package Stack;