npm install -g svgo
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 | |
if [ $# -lt 1 ]; then | |
echo "Usage: $0 <search_pattern>" | |
echo " Searches for pattern in file contents and filenames" | |
exit 1 | |
fi | |
search_pattern=$1 |
This is a complete example of using candle to train a simple neural network on a XOR dataset.
Hopefully, this helps some folks trying candle for the first time!
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
# Add this to your .gitconfig and use `git recent-branches` | |
[alias] | |
recent-branches = branch -v --sort=-committerdate |
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
const object_to_watch = obj; // Change to the object you are inspecting | |
const property_to_watch = 'example'; // Change to the property name in the object you are inspecting (here obj.example) | |
// Store the original value | |
object_to_watch.__storedValue = object_to_watch[property_to_watch]; | |
Object.defineProperty(object_to_watch, property_to_watch, { | |
get() { | |
return this.__storedValue; | |
}, |
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> | |
<meta charset="utf-8"> | |
<style> | |
body{ | |
padding: 0; | |
margin: 0; | |
} | |
</style> |
ARCH=$(uname -m)
echo "Detected OS: GNU/Linux"
if [[ "$ARCH" == "x86_64" ]]; then
echo "Detected 64 bit intel"
BINARIES_URL="https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2023-04-19-14-14/ffmpeg-n5.1.3-6-g1e413487bf-linux64-gpl-shared-5.1.tar.xz -O ffmpeg.tar.xz"
elif [[ "$ARCH" == "aarch64" ]]; then
# ARM linux setup
echo "Detected ARM"
While playing with some libraries, I found out that somewhere in the past, jonathonf put a bunch of ppa in private mode. Looks like these are back now.
Here is an archived link of a statement at launchpad.net/~jonathonf: https://web.archive.org/web/20191216131452/https://launchpad.net/~jonathonf
As far as I understand, it came down to this xkcd:
NewerOlder