- Create a new disk image (I use VDI for compatibility with VirtualBox)
- Allocate some RAM (>6 GiB to start)
- Add some video memory and enable 3D acceleration, if needed
- Optional: Enable EFI (instead of BIOS)
- Attach
nixos-minimal
ISO for installation - Boot into the ISO
Discover gists
This file contains 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
# My simple Speech Recognition Demonstration Routine 😊 | |
# Made with ❤️ in Python 3 by Alvison Hunter - March 1st, 2020 | |
# JavaScript, Python and Web Development tips at: https://bit.ly/3p9hpqj | |
# ----------------------------------------------------------------------- | |
# Importing the libraries that will do the magic part 🐵 | |
import speech_recognition as sr | |
import webbrowser as wb | |
def fn_speech_recognition(): | |
sr.Microphone(device_index = 0) | |
print(f"MICs Found on this Computer: \n {sr.Microphone.list_microphone_names()}") |
This file contains 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
{ | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.fontSize": 14, | |
"editor.lineHeight": 1.8, | |
"javascript.suggest.autoImports": true, | |
"javascript.updateImportsOnFileMove.enabled": "always", | |
"editor.rulers": [80, 120], | |
"extensions.ignoreRecommendations": true, | |
"typescript.tsserver.log": "off", | |
"files.associations": { |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
- Follow standard conventions.
- Keep it simple stupid. Simpler is always better. Reduce complexity as much as possible.
- Boy scout rule. Leave the campground cleaner than you found it.
- Always find root cause. Always look for the root cause of a problem.
This file contains 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
'use server'; | |
export const signUpAction = apiAction( | |
signUpFormSchema, | |
async (data): Promise<{ }> => { | |
// ... | |
}, | |
); |
aka what i did to get from nothing to done.
note: these are designed to be primarily a re-install guide for myself (writing things down helps me memorize the knowledge), as such don't take any of this on blind faith - some areas are well tested and the docs are very robust, some items, less so). YMMV
Install the netcat nc
command with Homebrew (otherwise Mac OS X version is really old and the interface is different):
brew install netcat
Use netcat to listen for incoming TCP connections on port 3000:
nc -l -p 3000
This file contains 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
import numba as nb | |
import numpy as np | |
def impact_perm(nu, gamma, beta): | |
"""Returns the permenant dollar price impact per unit time | |
In paper as :math:`g(\nu)` | |
Args: |
NewerOlder