Skip to content

Instantly share code, notes, and snippets.

View jbaum98's full-sized avatar

Jake Waksbaum jbaum98

  • Galois
  • United States
View GitHub Profile
@jbaum98
jbaum98 / Makefile
Last active July 28, 2020 22:45
Asymptote bug reproduce
%.pdf: %.tex
latexmk --xelatex $<
test_external.pdf: circle.tex circle_0.eps circle.pre
circle.tex circle_0.eps circle.pre: circle.asy
asy -inlinetex -tex xelatex $<

Keybase proof

I hereby claim:

  • I am jbaum98 on github.
  • I am jakewaksbaum (https://keybase.io/jakewaksbaum) on keybase.
  • I have a public key ASDfkBJDgm5VxfkK-y3iPFGjjuAZLEWEa9BrQygAg56ulAo

To claim this, I am signing this object:

@jbaum98
jbaum98 / default.nix
Last active January 15, 2019 17:04
Python IO-bound and CPU-bound parallelism
let nixpkgs = import (builtins.fetchTarball {
name = "nixos-unstable-2019-01-13";
url = https://github.com/nixos/nixpkgs/archive/22b7449aacb9bd064537d230176154292a2f2fec.tar.gz;
sha256 = "19iz98j46lg208vxbxlk2bq9kx301dkzkilb9w85p12clwaqkb2z";
}) {};
in with nixpkgs; callPackage (
{ lib, python }:
python.pkgs.buildPythonApplication rec {
pname = "python-threading-processing";
@jbaum98
jbaum98 / Apply.hs
Last active March 21, 2018 00:24
Dependant Types Apply
{-# LANGUAGE NoImplicitPrelude #-}
module Apply where
import Data.Kind
import Data.Function
import Data.Int
import Data.Bool
import Prelude ((>))
@jbaum98
jbaum98 / pandoc.css
Created July 10, 2017 17:03 — forked from killercup/pandoc.css
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
@jbaum98
jbaum98 / pandoc.css
Created July 10, 2017 17:03 — forked from killercup/pandoc.css
Add this to your Pandoc HTML documents using `--css pandoc.css` to make them look more awesome. (Tested with Markdown and LaTeX.)
/*
* I add this to html files generated with pandoc.
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
}
{-# LANGUAGE RankNTypes, BangPatterns #-}
module FYSHuffle (fyShuffle) where
import Control.Monad
import Control.Monad.Primitive
import Control.Monad.Random
import Control.Monad.ST
import qualified Data.Vector.Generic as V
@jbaum98
jbaum98 / fibonacci-fast.c
Last active March 11, 2016 14:12
Fibonacci in different languages
#include <stdio.h>
int fib(int n) {
int twoBack = 0,
oneBack = 1,
nSoFar;
for (nSoFar = 1; nSoFar < n; nSoFar++) {
int oldOneBack = oneBack;
oneBack += twoBack;
# Edit this configuration file to define what should be installed on
# your system. Help is available in the configuration.nix(5) man page
# and in the NixOS manual (accessible by running ‘nixos-help’).
{ config, pkgs, ... }:
{
imports =
[ # Include the results of the hardware scan.
./hardware-configuration.nix
@jbaum98
jbaum98 / README.md
Last active September 5, 2015 01:31 — forked from smileart/README.md
My ZSH Theme — Agnoster Mod

My modified fork of agnoster.zsh-theme

A ZSH theme optimized for people who use:

  • Solarized
  • Git
  • Unicode-compatible fonts and terminals (I use iTerm2 + Menlo)

Compatibility