Skip to content

Instantly share code, notes, and snippets.

View JasoonS's full-sized avatar
🎯
Working on Wildcards, what else?

Jason Smythe JasoonS

🎯
Working on Wildcards, what else?
View GitHub Profile
module BigInt = {
type t = float;
[@bs.val] external ofString: string => t = "BigInt";
[@bs.val] external ofInt: int => t = "BigInt";
external (<): (t, t) => bool = "%lessthan";
external (<=): (t, t) => bool = "%lessequal";
external (>): (t, t) => bool = "%greaterthan";
external (>=): (t, t) => bool = "%greaterequal";
external (==): (t, t) => bool = "%equal";
#!/bin/sh
PATH=${PATH}:/usr/local/bin/
calendar_get_events() {
local day="${1:-tomorrow}" # see man date(1) DATE STRING
# validate day syntax
for i in $day "$day + 1 day"; do
date -d"${i}" "+%Y-%m-%d" >/dev/null 2>&1 || {
@robphoenix
robphoenix / spacemacs-cheshe.md
Last active February 6, 2024 23:11
[DEPRECATED] Spacemacs Cheat Sheet - Visit https://github.com/Ben-PH/spacemacs-cheatsheet

This is unmaintained, please visit Ben-PH/spacemacs-cheatsheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window

emacs --daemon to run in the background. emacsclient.emacs24 <filename/dirname> to open in terminal

NOTE: "M-m and SPC can be used interchangeably".

  • Undo - C-/
  • Redo - C-?
  • Change case: 1. Camel Case : M-c 2. Upper Case : M-u
  1. Lower Case : M-l
@emk
emk / INSTRUCTIONS.txt
Created July 10, 2012 14:03
mkcards: Turn DVD audio or songs into Anki cards
This toolkit will allow you turn TV episodes and transcriptions into
high-quality Anki cards. Quite a lot of assembly is required the first
time through, but after that, 90% of your effort will be (1) either looking
at the text or (2) aligning the start and end of each audio clip using a
halfway civilized tool. In other words, it's still going to take time, but
you'll actually spend that time studying the language, not messing around
with a 19-step process.
There's a good chance you can this working on a Mac or on Linux. Windows
will be a fairly major challenge.