This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import shutil | |
import subprocess | |
from pathlib import Path | |
output = subprocess.check_output("conda info --json", shell=True) | |
env_data = json.loads(output) | |
env_path = Path(env_data["active_prefix"]) | |
dll_path = env_path / "Lib" / "site-packages" / "libusb_package" / "libusb-1.0.dll" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var SPEEDUP_FACTOR = 2; | |
var station_info; | |
var map = L.map('map'); | |
var svg = d3.select(map.getPanes().overlayPane).append("svg"), | |
g = svg.append("g").attr("class", "leaflet-zoom-hide"); | |
function x(coord) { return map.latLngToLayerPoint(coord).x }; | |
function y(coord) { return map.latLngToLayerPoint(coord).y }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass{article} | |
\usepackage{tikz} | |
\usetikzlibrary{positioning} | |
\begin{document} | |
\begin{figure} | |
\centering | |
\begin{tikzpicture}[node distance=5cm, inner sep=10pt] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if [ $# -lt 1 ]; then | |
echo "Usage: mklatex.sh {latex-file}" | |
exit -1 | |
fi | |
latexmk -e '$pdflatex=q/pdflatex %O -shell-escape %S/' -bibtex -pdf $1 |