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
#! /usr/bin/env sh | |
wget http://mirrors.ctan.org/macros/latex/contrib/undertilde.zip | |
unzip undertilde.zip | |
cd undertilde | |
latex undertilde.ins | |
latex undertilde.dtx | |
makeindex undertilde.idx | |
mkdir -p /Users/$USER/Library/texmf/tex/latex/undertilde/ | |
mv undertilde.sty /Users/$USER/Library/texmf/tex/latex/undertilde/ | |
sudo tlmgr install comment arydshln wrapfig multirow dirtree algorithm2e \ |
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
def parse_command_line(): | |
"""Defines and parses command line arguments""" | |
parser = argparse.ArgumentParser() | |
parser.add_argument('-v', '--verbose', action='count', default=0) | |
return parser.parse_args() | |
def configure_logging(args): | |
"""Configures logging as specified by the author and the user""" | |
levels = [logging.WARNING, logging.INFO, logging.DEBUG] |
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
❯ gcc -g minimal.c -o minimal | |
❯ sudo gdb minimal | |
Password: | |
(gdb) break main | |
Breakpoint 1 at 0x100000f90: file minimal.c, line 3. | |
(gdb) run | |
Starting program: /private/tmp/c-repl/minimal |
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
""" | |
Convert: filename of Gmail contacts -> XLSX file | |
Converts the contents of a filename where exported Gmail contacts can be found | |
into an XLSX spreadsheet where only the relevant information of the contacts is | |
found. | |
""" | |
import argparse | |
import codecs | |
import os |
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
#include <functional> | |
#include <iostream> | |
#include <random> | |
#include <boost/geometry.hpp> | |
#include <boost/geometry/geometries/point.hpp> | |
#include <boost/geometry/index/rtree.hpp> | |
namespace bg = boost::geometry; |
NewerOlder