- In a script called 'vimura':
#!/bin/sh
echo $1
zathura -s -x "gvim --servername $1 -c \"let g:syncpdf='$1'\" --remote +%{line} %{input}" $*
| # coding: utf8 | |
| # distutils: language = c++ | |
| # distutils: sources = b.cpp | |
| # Using C calling convention works with "cdef extern ..." directly; no | |
| # hpp header. | |
| # Without it we need to use the cdef extern from "b.hpp": ... declaration. | |
| # Implicitly forces C calling convenction? | |
| cdef extern void c() |
| using PyCall | |
| # Change that to whatever packages you need. | |
| const PACKAGES = ["pyyaml"] | |
| # Import pip | |
| try | |
| @pyimport pip | |
| catch | |
| # If it is not found, install it |
| snippet template "Basic template" b | |
| \documentclass[a4paper]{article} | |
| \usepackage[utf8]{inputenc} | |
| \usepackage[T1]{fontenc} | |
| \usepackage{textcomp} | |
| \usepackage[dutch]{babel} | |
| \usepackage{amsmath, amssymb} | |
| \begin{document} |
| inline std::vector<uint8_t> read_vector_from_disk(std::string file_path) | |
| { | |
| std::ifstream instream(file_path, std::ios::in | std::ios::binary); | |
| std::vector<uint8_t> data((std::istreambuf_iterator<char>(instream)), std::istreambuf_iterator<char>()); | |
| return data; | |
| } |
| app: ${hydra:runtime.cwd}/main | |
| db: | |
| driver: mysql | |
| user: omry | |
| password: secret |