Skip to content

Instantly share code, notes, and snippets.

View rvente's full-sized avatar
🚩
Keeping it ℝ

Blake Vente rvente

🚩
Keeping it ℝ
View GitHub Profile
@rvente
rvente / organise.sh
Created April 25, 2017 02:33
This removes unwanted characters from the filename of docx files, then uses w2m to convert it all to markdown, and prepones the needed YAML header also. This is for mass conversions of the files needed. It should work on any bash system with w2m installed.
for run in {1..10} ; do
for file in *.docx ; do
mv "${file}" "${file// _/ }"
mv "${file}" "${file/_}"
mv "${file}" "${file// }"
mv "${file}" "${file//,}"
done
done
for file in *.docx ; do
mkdir /mnt/arch
vgscan
mount dev/sda{2,4} /mnt/arch
swapon -a
cd /mnt/arch
mount -t proc proc proc
mount -t sysfs sys sys
mount -o bind /dev dev
mount /dev/sda1 boot
chroot . /bin/bash
@rvente
rvente / VCS.md
Created May 17, 2018 05:20
this is the beginnings of a verbal markup languange for mathematical and computer languages

VCS

this is the beginnings of a verbal markup languange for mathematical and computer languages

Namespace: Code

~ tild

# hash

@rvente
rvente / latex-math-preview.el
Last active November 12, 2018 01:23
This code, when put under dotspacemacs/user-config, enables math preview mode.
;; --------------- begin latex preview configuration ----------------- ;;
;; latex and auxtex layers needed
;; activate using the vim-like binding `[space] , p b`
;; automatically inserts newline at the end of long lines
(add-hook 'text-mode-hook 'turn-on-auto-fill)
(setq TeX-auto-save t)
(setq TeX-parse-self t)
(setq TeX-save-query nil)
@rvente
rvente / discrete-structures-notes.tex
Last active November 12, 2018 02:11
Scattered notes for Discrete Structures at Hunter College.
\PassOptionsToPackage{unicode=true}{hyperref} % options for packages loaded elsewhere
\PassOptionsToPackage{hyphens}{url}
\documentclass[oneside]{book}
\usepackage[margin=2.3cm]{geometry}
\usepackage{lmodern}
\usepackage{amssymb,amsmath}
\usepackage{ifxetex,ifluatex}
% \usepackage{fixltx2e} % provides \textsubscript
\ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
\usepackage[T1]{fontenc}
@rvente
rvente / makefile
Last active February 14, 2019 06:16
makefile to convert pandoc-markdown to pdf with specified styling
.PHONY: help all
.DEFAULT_GOAL := help
LOCATION=https://gist.githubusercontent.com/rvente/89c0bb1c8e1f454411c331500d6c0587
# makefile modified 2018 12 16 🄯copyleft Ralph Vente
# support multi file input, Darwin and Linux Platforms
# usage: by default, inputs all md files in current directory
# if a `md=some_File` is supplied, only that file will be generated
########################################
##
## Makefile
## LINUX compilation
##
##############################################
@rvente
rvente / ttp-assignment2.js
Last active May 30, 2019 02:39
Assignment 2 TTP Bootcamp Summer 2019
/*
Ralph Vente
2019 05 29
Assignment #2
*/
const square = (x) => x*x;
const greaterThanOne = (x) => x > 1;
const sum = (x,y) => x+y;
@rvente
rvente / googletechinterviewnotes.md
Last active August 23, 2019 20:56
These are notes that I typed up when google was presenting on effective strategies for the technical interview.
title date author
Google Technical Interview Prep Workshop
\today{}
Ralph Vente

Interviewers

  • Brendan
  • Raymond
@rvente
rvente / check_link.py
Created January 1, 2020 01:34 — forked from hackerdem/check_link.py
A simple python script to check broken links of a wesite