Skip to content

Instantly share code, notes, and snippets.

View jessykate's full-sized avatar

Jessy Kate Schingler jessykate

View GitHub Profile

Coordi-nations: A New Institutional Structure for Global Cooperation

Introduction:

In today’s complex and interconnected world, the existing nation-state system faces significant challenges in addressing global issues and promoting international cooperation. In this essay, we elaborate upon the notion of “coordi-nations” as a new institutional structure with the potential to foster cooperation at a global scale. Coordi-nations present themselves as an alternative to the nation-state system that recognize new ways of organizing and facilitating collective action. By leveraging the opportunities presented by the information and communication revolution, coordi-nations have the ability to tackle global challenges while promoting inclusivity, participation, and diversity.

The Limitations of Nation-States:

Nation-states, despite their historical significance, exhibit several limitations. Membership in traditional nation-states ar

@jessykate
jessykate / .zshrc
Last active July 19, 2023 20:25
a "most recent" command showing file listing of mobi, pdf and epub across sub-directories sorted by time
# Show the most recent files of type mobi, pdf or epub, sorted with most recent at the bottom. Works on files and subdirectories of the current directory.
# Useful references:
# find -printf is not POSIX. `-printf` becomes `-print0 | xargs -0 stat -f`
# need to convert format specifiers as well.
# '%A@ %Ab %Ad %AY %AH:%AM || %P' shows last access time in seconds since the epoch. the month, day, year and time, a "||" separator, then filename.
# POSIX's `find` printf arguments: https://man7.org/linux/man-pages/man1/find.1.html
# POSIX version (Linux)
alias mr="find . -type f \( -iname '*.pdf' -o -iname '*.mobi' -o -iname '*.epub' \) -printf '%A@ %Ab %Ad %AY %AH:%AM || %P \n' | sort -n | cut -f2- -d\" \""
#!/usr/bin/env python
import sys
import csv
'''
usage: ./cobudget_merge.py file1.csv file2.csv ... fileN.csv
combine cobudget allocations across mulitple files and print result to stdout.
take the full outer join of the rows in each file, *summing* balances if an
email is present multiple times.
@jessykate
jessykate / .change-tab-color-pwd
Created June 14, 2016 01:04 — forked from jakeonrails/.change-tab-color-pwd
How to have change the tab color in iTerm2 based on what folder or directory you are in
#!/usr/bin/env python
"""
Set terminal tab / decoration color by the server name.
Get a random colour which matches the server name and use it for the tab colour:
the benefit is that each server gets a distinct color which you do not need
to configure beforehand.
"""
@jessykate
jessykate / customizable_email_templates.py
Last active March 28, 2016 19:05
A Django pattern for creating customizable, re-useable email templates. Admins can define a number of standard templates, and these templates are then injected into email forms as default content, which can then be selected from and customized on the fly before being sent.
# Models.py
class EmailTemplate(models.Model):
''' Templates for standard emails. '''
body = models.TextField(verbose_name="The body of the email")
subject = models.CharField(max_length=200, verbose_name="Default Subject Line")
name = models.CharField(max_length=200, verbose_name="Template Name")
creator = models.ForeignKey(User)

Keybase proof

I hereby claim:

  • I am jessykate on github.
  • I am jessykate (https://keybase.io/jessykate) on keybase.
  • I have a public key whose fingerprint is 8949 59BC F0C9 ABC6 B50E 0606 2662 0342 39C0 D286

To claim this, I am signing this object:

@jessykate
jessykate / django-crossdomainxhr-middleware.py
Created June 16, 2012 12:44 — forked from vicalejuri/django-crossdomainxhr-middleware.py
Middlware to allow's your django server to respond appropriately to cross domain XHR (postMessage html5 API).
import re
from django.utils.text import compress_string
from django.utils.cache import patch_vary_headers
from django import http
'''
EXAMPLE USAGE:
Put this file in a directory called, eg, 'middleware,' inside your django
@jessykate
jessykate / gist:2047552
Created March 15, 2012 23:13
post an image to a random short-ish url on your server via scp
#!/usr/bin/ruby
# jessy kate schingler
# @jessykate | jessykate.com
# public domain
# assumes ssh key access to server
# usage:
# $ postimg path/to/img
# returns url for access
@jessykate
jessykate / newcourses.rb
Created May 17, 2011 22:26
A quick and dirty way to check for new courses on the (new) P2PU site.
#!/usr/bin/ruby
require 'net/smtp'
=begin
1. Download the file.
2. Make sure it is executable by running:
$ chmod +x newcourses.rb
3. Any time you want to check for new courses, just run:
$ ./newcourses.rb
@jessykate
jessykate / Jekyll nd Octopress Liquid tag for MathJax.rb
Created February 18, 2011 23:37
A simple liquid tag for Jekyll/Octopress that converts {% m %} and {% em %} into inline math, and {% math %} and {% endmath %} into block equations, by replacing with the appropriate MathJax script tags.
module Jekyll
class MathJaxBlockTag < Liquid::Tag
def render(context)
'<script type="math/tex; mode=display">'
end
end
class MathJaxInlineTag < Liquid::Tag
def render(context)
'<script type="math/tex">'
end