In this tutorial we're going to build a set of parser combinators.
We'll answer the above question in 2 steps.
- What is a parser?
- and, what is a parser combinator?
So first question: What is parser?
#!/bin/bash | |
# ============================================================================= | |
# @file GitHub gist | |
# @brief stop Adobe Creative Cloud app from auto-launching on login on macOS | |
# @author Michael Hucka <mhucka@caltech.edu> | |
# @created 2021-08-12 | |
# @website https://gist.github.com/mhucka/59e785a315d813d14cd0258b89a2fcac | |
# | |
# I find Adobe Creative Cloud absolutely infuriating. It installs auto | |
# launchers that are not in the user's login app list, and the services are |
3.8 |
<!-- | |
Put this file in ~/Library/LaunchAgents/com.example.KeyRemapping.plist to | |
automatically remap your keys when macOS starts. | |
See https://developer.apple.com/library/archive/technotes/tn2450/_index.html for | |
the key "usage IDs". Take the usage ID and add 0x700000000 to it before putting it | |
into a source or destination (HIDKeyboardModifierMappingSrc and | |
HIDKeyboardModifierMappingDst respectively). | |
--> | |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
import pandas as pd | |
import numpy as np | |
import argparse | |
from sklearn import preprocessing | |
import pickle | |
import os | |
from io import StringIO | |
from sagemaker_containers.beta.framework import ( | |
content_types, encoders, env, modules, transformer, worker) |
# requires XMLstarlet: https://brewformulas.org/Xmlstarlet | |
# requires gftools: pip install git+https://github.com/googlefonts/gftools | |
# updates isFixedPitch attribute 'value' from 0 to 1 on OpenType POST table | |
# | |
# USAGE: | |
# TTX a file in the family to see its current version number in nameID 5 | |
# $ ttx -t name <font_path> | |
# then, on the command line, run: | |
# $ chmod +x <relative_path>/set-is_fixed_pitch.sh |
// Licensed under CC BY 4.0. | |
type $If<X: boolean, Then, Else = empty> = $Call< | |
& ((true, Then, Else) => Then) | |
& ((false, Then, Else) => Else), | |
X, | |
Then, | |
Else, | |
>; |
dialog { | |
position: fixed; | |
top: 50%; | |
left: 50%; | |
right: auto; | |
padding: 30px; | |
transform: perspective(500px) translate(-50%, -50%); | |
background: linear-gradient(to bottom, #FFF, #F4F4F4) #FFF; | |
border: none; | |
border-radius: 3px; |
This is a proposal for lightning talk at Reactive Conf. Please 🌟 this gist to push the proposal!
Hi, I am Andy, creator of leakage - the node-powered memory leak testing library.
Instead of manual debugging it provides a structured approach to fix or even prevent memory leaks.
// Whitespace+ irregular whitespace detection | |
// https://marketplace.visualstudio.com/items?itemName=davidhouchin.whitespace-plus | |
// Inspired by eslint https://github.com/eslint/eslint/blob/master/lib/rules/no-irregular-whitespace.js | |
{ | |
"mode": "all", | |
"autoStart": true, | |
"refreshRate": 100, | |
"elements": | |
[{ | |
"name": "space", |