If you're getting this kind of error when running Node.js programs with binary dependencies that don't support M1 yet, e.g.:
$ yarn test
dyld[51175]: missing symbol called
dyld[51176]: missing symbol called| # I'll be doing another one for Linux, but this one will give you | |
| # a pop up notification and sound alert (using the built-in sounds for macOS) | |
| # Requires https://github.com/caarlos0/timer to be installed | |
| # Mac setup for pomo | |
| alias work="timer 60m && terminal-notifier -message 'Pomodoro'\ | |
| -title 'Work Timer is up! Take a Break 😊'\ | |
| -appIcon '~/Pictures/pumpkin.png'\ | |
| -sound Crystal" |
| # syntax=docker/dockerfile:1 | |
| FROM python:3.8-slim-buster | |
| WORKDIR /app | |
| ENV ACCEPT_EULA=Y | |
| RUN apt-get update -y && apt-get update \ | |
| && apt-get install -y --no-install-recommends curl gcc g++ gnupg unixodbc-dev |
| import pytesseract | |
| import os | |
| import sys | |
| def read_image(img_path, lang='eng'): | |
| """ | |
| Performs OCR on a single image | |
| :img_path: str, path to the image file |
| """Find Symmetric Differences between two Pandas DataFrames.""" | |
| def dataframe_difference(df1, df2, which=None): | |
| """Find rows which are different.""" | |
| comparison_df = df1.merge( | |
| df2, | |
| indicator=True, | |
| how='outer' | |
| ) |
| <div className='delete-button' onClick={() => { if (window.confirm('Are you sure you wish to delete this item?')) this.onCancel(item) } } /> |
In the below keyboard shortcuts, I use the capital letters for reading clarity but this does not imply shift, if shift is needed, I will say shift. So ⌘ + D does not mean hold shift. ⌘ + Shift + D does of course.
| Function | Shortcut |
|---|---|
| New Tab | ⌘ + T |
| Close Tab or Window | ⌘ + W (same as many mac apps) |
| Go to Tab | ⌘ + Number Key (ie: ⌘2 is 2nd tab) |
| Go to Split Pane by Direction | ⌘ + Option + Arrow Key |