Skip to content

Instantly share code, notes, and snippets.

#!/bin/zsh
zmodload zsh/mathfunc
local usage="Usage: ${0##*/} [-p lastpage] PDF"
local -a help pages
zparseopts -D h=help -help=help p:=pages
if (( ! $# )); then
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env python3
import sys
import json
import shutil
from datetime import datetime
from pathlib import Path
from io import StringIO
import whoosh.fields as f
from whoosh.index import create_in
@flying-sheep
flying-sheep / .gitignore
Last active May 2, 2020 13:45
polcompball (but adaptable to any subreddit) flair counter
/cache-*.json
/.vscode/
__pycache__/
#!/usr/bin/env python3
import re
from contextlib import closing
from epub import create_epub, DEFAULT_STYLESHEET
import requests
import requests_cache
from bs4 import BeautifulSoup
from smartypants import smartypants
@flying-sheep
flying-sheep / PKGBUILD
Last active April 9, 2019 16:14
Newest primer3 version 2.4.0
# Maintainer: Michael Schubert <mschu.dev at gmail>
# Contributor: Abhishek Dasgupta <abhidg@gmail.com>
pkgname=primer3
pkgver=2.4.0
pkgrel=1
pkgdesc="Tool to design flanking oligo nucleotides for DNA amplification"
arch=('i686' 'x86_64')
license=('GPL2')
depends=('gcc-libs')
url="http://primer3.sourceforge.net"
# Maintainer: Franklyn Tackitt <franklyn@tackitt.net>
pkgname=v8-3.14-bin
_ver=3.14.5
pkgver=$_ver.8
pkgrel=1
pkgdesc="v8 3.14 binary package from ubuntu xenial"
url="https://github.com/v8/v8"
arch=('i686' 'x86_64')
license=('BSD new')
<!DOCTYPE html>
<html>
<head><meta charset="utf-8" />
<title>un-nb-convertible</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.1.10/require.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flying-sheep
flying-sheep / example.md
Last active February 3, 2019 18:00
Just add some css for `.interactive-block > table`

Example

first(code, 'block')

And