Skip to content

Instantly share code, notes, and snippets.

View anhldbk's full-sized avatar
🌴
Calm

Anh Le (Andy) anhldbk

🌴
Calm
View GitHub Profile
@peterhurford
peterhurford / install_xelatex_on_mac.txt
Last active June 17, 2024 15:02
How to install latex and xelatex on Mac so that Jupyter "Download as PDF" will work
brew install pandoc
brew tap homebrew/cask
brew install --cask basictex
eval "$(/usr/libexec/path_helper)"
# Update $PATH to include `/usr/local/texlive/2022basic/bin/universal-darwin`
sudo tlmgr update --self
sudo tlmgr install texliveonfly
sudo tlmgr install xelatex
sudo tlmgr install adjustbox
sudo tlmgr install tcolorbox
@caudamus
caudamus / README.md
Last active February 28, 2024 13:30
BNF Parser

BNF parsing

Toy weekend project: make a parser-parser!

This takes in a grammar given in Bakus-Naur Form (BNF), and a program that was written in the provided grammar, and produces an image of Syntax Tree using graphviz.

References:

@joshbuchea
joshbuchea / semantic-commit-messages.md
Last active June 26, 2024 14:21
Semantic Commit Messages

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@dgrahn
dgrahn / step.overrides.import.less
Last active May 23, 2017 01:15
Add '.unstackable' option to steps. (Also includes '.padless' option in case you need to shrink the steps on a mobile device)
.ui.unstackable.steps {
flex-direction: row;
}
.ui.unstackable.steps .step {
width: auto !important;
}
@media only screen and (max-width: (@largestMobileScreen)) {
.ui.unstackable.padless.steps .step {
@bruce
bruce / Login.js
Last active August 5, 2021 16:25
React + Redux + localStorage Login example
// components/Login/Login.js
class Login extends Component {
// ...
handleSubmit(evt) {
evt.preventDefault();
this.props.mutate(this.state)
.then(({ data }) => {

FWIW: I (@rondy) am not the creator of the content shared here, which is an excerpt from Edmond Lau's book. I simply copied and pasted it from another location and saved it as a personal note, before it gained popularity on news.ycombinator.com. Unfortunately, I cannot recall the exact origin of the original source, nor was I able to find the author's name, so I am can't provide the appropriate credits.


Effective Engineer - Notes

What's an Effective Engineer?

@michaellihs
michaellihs / tmux-cheat-sheet.md
Last active June 22, 2024 15:52
tmux Cheat Sheet

Some of the Redis best practices content has moved

This content from this markdown file has moved a new, happier home where it can serve more people. Please check it out : https://docs.microsoft.com/azure/azure-cache-for-redis/cache-best-practices.

NOTE: Client specific guidance listed below is still valid and should still be considered. I will update this document once all content has been moved.

@brianehlert
brianehlert / gist:6b7fa7c86be098722d73f944e96b1bf9
Last active June 3, 2016 17:32
Gateblu-Forever on Ubuntu
1) Install Ubuntu Server
Instead of adding a 'pi' user in step 7 name your admin user 'pi' with a password of 'raspberry' during installation
The Service configuration of gateblu-forever assumes this is running on a RaspberryPi
1. Add openSSH server (makes it easier to remotely connect with puTTY and copy / paste)
2) Install LTS node and npm from nodejs.org and node legacy (check http://nodejs.org for latest LTS release numbers)
sudo apt-get update
sudo apt-get upgrade -y
sudo curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get install -y nodejs