Skip to content

Instantly share code, notes, and snippets.

View willwillis's full-sized avatar

Will Willis willwillis

View GitHub Profile
#!/usr/bin/perl
#
# This is a script I used (many years ago) to
# have my paypal balanced texted to me. Srlys doubt it
# still works - and there's prolly an api to call now :/
# (circa early 2000's)
#
use strict;
use warnings;
#!/usr/bin/perl
use Date::Calc qw/:all/;
#
# posting some more scripts
# from back in the day
#
#
my %days_till = (
Graduation => Delta_Days( Today(), 2007, 12, 16 ),
MyLastFinal => Delta_Days( Today(), 2007, 12, 8 ),
package Website;
use Moose;
use WWW::Mechanize;
use Data::Dumper; # for debugging
our $VERSION = '0.01';
has 'login_url' => (is => 'rw', default => 'https://secure.loginz.com');
has 'user' => (is => 'rw', isa => 'Str', required => 1);
(defun ask-before-closing ()
"Ask whether or not to close, and then close if y was pressed"
(interactive)
(if (y-or-n-p (format "Are you sure you want to exit Emacs? "))
(if (< emacs-major-version 22)
(save-buffers-kill-terminal)
(save-buffers-kill-emacs))
(message "Canceled exit")))
@willwillis
willwillis / split LDS ward list
Created March 4, 2011 04:09
splits a ward directory from lds.org based on last names
#!/opt/local/bin/perl
use strict;
my $print_to_files = 1;
my $full_roster = '/Users/will/Downloads/221899-2011-03-03.csv';
die "$full_roster does not exist!" unless -e $full_roster;
@willwillis
willwillis / Xtract_links.pl
Created October 8, 2011 05:36
before rss
#!/usr/bin/perl
# Script to retrieve a list from sharepoint, which contains
# /etc/hosts type information and dump it in hosts format
#
# It's recomended to enter the username on the command line and let it prompt
# for the password
#
# The column names for the list items are hard coded.
#
https://github.com/gangverk/flask-swagger
https://mmcardle.github.io/django_builder/#!/home
https://www.django-rest-framework.org/
https://github.com/Brobin/drf-generators (4 different models.. why so many, I probably don't understand drf)
https://github.com/agconti/cookiecutter-django-rest
https://github.com/jpadilla/django-project-template (More for vanilla django)
https://github.com/django-json-api/django-rest-framework-json-api (this looks promising)
@willwillis
willwillis / python-module-publish-best-practice.txt
Last active October 29, 2019 23:11
Proper way to make and publish a Python module
1. starting here: https://www.youtube.com/watch?v=OSnRl8yF9a4
1.a https://www.bernat.tech/pep-517-and-python-packaging/
who knew? https://colab.research.google.com/notebooks/welcome.ipynb