Based on https://weblog.jamisbuck.org/2015/7/30/writing-a-simple-recursive-descent-parser.html
This is a test
NOTE: this is terrible advice, and shouldn't be used. This is purely educational to warn our youth about the dangers of trusting computers.
Sometime as node.js developer, you may find yourself in an unfortunate position where you inherit a codebase that is set up in such a way that npm resolves packages through module hoisting.
Example
A tool to grep files for a specific pattern - primarily to be used for tracking TODO/FIXME in a codebase
outline for a blog post I will likely never write
I'm not the only person who wants this:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM alpine | |
| # Setup base image | |
| RUN apk add --update bash && rm -rf /var/cache/apk/* | |
| # Add entrypoint | |
| COPY docker-entrypoint.sh /docker-entrypoint.sh | |
| # Copy in binaries to use, and ensure they are executable | |
| ONBUILD COPY bin/* /usr/local/bin |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Inspired by https://gist.github.com/shariat/0541913b220ca09571102a8cd165916c | |
| memos_dir="$HOME/memos" | |
| if [ ! -d "$memos_dir" ]; then | |
| mkdir -p $memos_dir; | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Inspired by the comment in https://news.ycombinator.com/item?id=15473702#15475352 | |
| journal_dir="$HOME/journal" | |
| year_folder="${journal_dir}/$(date +%Y)/" | |
| if [ ! -d "$year_folder" ]; then | |
| mkdir -p $year_folder; | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Resx Editor</title> | |
| </head> | |
| <body> | |
| <div class="app"> | |
| <input id="file-input" type="file"> | |
| <hr> | |
| <table id="resx-table"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function flatten(/*args*/) { | |
| return [].concat.apply([], [].slice.call(arguments)); | |
| } |
NewerOlder