Skip to content

Instantly share code, notes, and snippets.

@N0taN3rd
N0taN3rd / README.md
Last active April 23, 2018 20:44
Selectively Compile Latex Documents

The subfile package is a much more efficient way to bring in the sub parts of a large latex document.

Each part of the complete document that is split up into its own text file brought is added to the document from the main tex file via

\subfile{file} 

Each subfile has the following structure

\documentclass[main.tex]{subfiles}
@N0taN3rd
N0taN3rd / chrome.svg
Last active April 24, 2018 23:09
wrapupDevCSS
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!DOCTYPE html>
<html>
<body>
<svg xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 16 16">
<!-- horizontal guides (remove later) -->
<path d="M0 0 H16" stroke-width="0.1" stroke="gray" />
<path d="M0 1 H16" stroke-width="0.1" stroke="gray" />
@N0taN3rd
N0taN3rd / README.md
Last active January 6, 2018 00:43
Internet Archive Replay Improvements For http://www.soufeel.com/
@N0taN3rd
N0taN3rd / README.md
Last active December 13, 2017 04:53
Re-enable replay of cnn.com's homepage for the Internet Archives WaybackMachine

Usage

  1. npm install
  2. npm run go

Requirements

  1. node.js >= 8.0.0
@N0taN3rd
N0taN3rd / index.html
Last active November 21, 2017 07:59
Webpack Simple Hot Reloading
<!doctype html>
<html>
<head>
</head>
<body>
<script src='http://localhost:9000/dist/bundle.js'></script>
</body>
</html>
@N0taN3rd
N0taN3rd / onselect.js
Created November 4, 2017 06:13
beer is good
document.onselectionchange = (event) => { let baseNode = document.getSelection().baseNode if (baseNode !== null) { console.log(baseNode.textContent) } }
@N0taN3rd
N0taN3rd / .setup
Last active October 4, 2017 18:13
CS 891 Web Archiving Seminar
#!/usr/bin/env bash
bashColors=".bash_colors"
dlBashColors="https://raw.githubusercontent.com/mercuriev/bash_colors/master/bash_colors.sh"
wgetCol="collections/wget"
heritrixCol="collections/heritrix"
wgetUA="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36"
wgetArgs="--mirror
--warc-cdx
--no-warc-compression