Standard escape codes are prefixed with Escape
:
- Ctrl-Key:
^[
- Octal:
\033
- Unicode:
\u001b
- Hexadecimal:
\x1B
- Decimal:
27
alias firealarm=$'git checkout main && git commit -a -m \'[draft] fire alarm\' && git push --force --set-upstream origin main' |
''' COMPSCI 373 (2021) - University of Auckland | |
ASSIGNMENT ONE - QR Code Detection | |
Simon Shan 441147157 | |
[!] * * * PLEASE NOTE * * * [!] | |
In this code, sobel and mean kernel operations may look weird. | |
They are optimised for speed. | |
For example, instead of [1 0 -1] * [a b c] = [1*a, 0*b, -1*c], | |
it is simply a - c in my representation | |
''' |
function [medianImage , maxImage] = SixLiner(dirName , fileType) | |
% SixLiner: does the matlab project in six lines of code | |
% | |
% inputs : dirName = directory of the images | |
% fileType = file extension type of the images | |
% outputs :medianImage = image background | |
% maxImage = images combined on background | |
% | |
% by simon shan |
Follow the instructions on Github to Create an Access Token in Github
By default, git credentials are not cached so you need to tell Git if you want to avoid having to provide them each time Github requires you to authenticate. On Mac, Git comes with an “osxkeychain” mode, which caches credentials in the secure keychain that’s attached to your system account.
You can tell Git you want to store credentials in the osxkeychain by running the following:-
Here are the mods I recommend. These are all compatible with the latest versions of SMAPI and Stardew Valley on Linux/macOS/Windows. See the player's guide to using mods if you're interested.
I think the best mods are those which improve the game while maintaining its balance, lore, and style.
AutoGate
Gates open automatically when you approach and close behind you.
Better Sprinklers Plus
Customise the sprinkler radius, with a proportional change to their cost. If you're willing to mine all the ores you'll need, that makes the basic sprinklers useful early in the game and lets you do more than just watering crops every day.
Last updated March 13, 2024
This Gist explains how to sign commits using gpg in a step-by-step fashion. Previously, krypt.co was heavily mentioned, but I've only recently learned they were acquired by Akamai and no longer update their previous free products. Those mentions have been removed.
Additionally, 1Password now supports signing Git commits with SSH keys and makes it pretty easy-plus you can easily configure Git Tower to use it for both signing and ssh.
For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing your commits with GPG.
First up, let's make Sublime Text 2 available from the command line in terminal, by creating a link to subl
which is the launcher from terminal:
ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl /usr/local/bin/sublime
(added bonus of this approach is when you upgrade to ST3 or change text editor, you can just redirect the symlink).
If there's any chance that bash
doesn't check usr/local/bin
then use [Launch Sublime Text 2 from Mac OSX Terminal] for more detailed instructions on how to make this happen.