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
import numpy as np | |
Y = [[0,1,2], | |
[3 ,4,5], | |
[6 ,7,8]] | |
X = [[0,-2,2], | |
[5,1,5], | |
[1,4,-1]] |
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
alias wcd='. ~/wcd.sh' |
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 https://github.com/rvoicilas/inotify-tools/wiki | |
apt-get install inotify-tools | |
inotifywait -r -m -e close_write ./spark.sh | | |
while read path _ file; do | |
echo "$path$file modified" | |
done |
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
Copyright (c) 2013 Ross Kirsling | |
Permission is hereby granted, free of charge, to any person obtaining | |
a copy of this software and associated documentation files (the | |
"Software"), to deal in the Software without restriction, including | |
without limitation the rights to use, copy, modify, merge, publish, | |
distribute, sublicense, and/or sell copies of the Software, and to | |
permit persons to whom the Software is furnished to do so, subject to | |
the following conditions: |
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
ADKAR |
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
# MIT License | |
# Copyright (c) 2019-2022 JetsonHacks | |
# Using a CSI camera (such as the Raspberry Pi Version 2) connected to a | |
# NVIDIA Jetson Nano Developer Kit using OpenCV | |
# Drivers for the camera and OpenCV are included in the base image | |
import cv2 | |
import time | |
import numpy as np |
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 | |
#https://gist.github.com/jakkaj/218887771f70466e844dcbe082cd2ff6 | |
if [ -z "$OPENAI_API_KEY" ]; then | |
echo "The OPENAI_API_KEY environment variable is required and must not be empty." | |
exit 1 | |
fi | |
if ! command -v inotifywait >/dev/null 2>&1; then |
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 | |
# Check if requirements.txt exists | |
if [ ! -f "requirements.txt" ]; then | |
echo "Error: requirements.txt not found." | |
exit 1 | |
fi | |
# Remove existing requirements2.txt if it exists | |
if [ -f "requirements2.txt" ]; then |
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
# Import discord.py. Allows access to Discord's API. | |
import asyncio | |
import discord | |
# Import the os module. | |
import os | |
from concurrent.futures import ThreadPoolExecutor | |
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
# Based on https://github.com/dave1010/tree-of-thought-prompting with wildcard added | |
# Whild card seems to help drive good answers especially in gpt4 | |
Imagine three different experts are answering this question. | |
All experts will write down 1 step of their thinking, then share it with the group. | |
Then a wild card expert will come in and try to solve the problem by inverting it. Then all experts will go on to the next step until the problem is solved. | |
Finally the wildcard will check their answer again, in a wild card way. | |
If any expert realises they're wrong at any point then they backtrack. | |
Finally, an adjudicator will write the best answer. |
OlderNewer