Skip to content

Instantly share code, notes, and snippets.

View jessykate's full-sized avatar

Jessy Kate Schingler jessykate

View GitHub Profile
@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
@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

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\" \""