As AI technology continues to rapidly advance, it is crucial that we prioritize its development and use in a way that benefits humanity. The AI Manifesto for Humanity outlines 10 key rules to guide the development and deployment of AI in a way that prioritizes transparency, safety, fairness, privacy, collaboration, human control, ongoing research and development, ethical standards, education and awareness, and
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 | |
# cloudflare warp | |
# https://developers.cloudflare.com/warp-client/get-started/linux/ | |
# see https://1.1.1.1/ | |
# Panel Icon: /bin/bash -ic ".$HOME/.bashrc.ext;warp toggle" | |
warp() { | |
case $1 in | |
on) | |
warp-cli connect | |
;; |
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
# coding=utf-8 | |
import os | |
import sys | |
from unittest import main | |
from _jb_runner_tools import jb_start_tests, jb_doc_args, JB_DISABLE_BUFFERING, PROJECT_DIR | |
from teamcity import unittestpy | |
if __name__ == '__main__': | |
path, targets, additional_args = jb_start_tests() |
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 | |
# run this from /usr/lib/systemd/system-sleep/pre-suspend.sh | |
# adopted from https://www.addictivetips.com/ubuntu-linux-tips/run-scripts-and-commands-on-suspend-and-resume-on-linux/ | |
USER=$(ls /home | grep -v root | tail -n1) | |
if [ "${1}" == "pre" ]; then | |
killall barrier barrierc | |
elif [ "${1}" == "post" ]; then | |
# need to run in background to ensure other post resume processing happens first | |
sudo su - $USER -c "nohup bash -c 'sleep 10; env DISPLAY=:0 /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=barrier com.github.debauchee.barrier' &" | |
fi |
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
""" omega-ml bulk deployment utility | |
(c) 2020 one2seven GmbH, Switzerland | |
Enables deployment of datasets, models, scripts, jobs as well as cloud | |
resources from a single configuration file. This is currently a separate | |
utility that will be integrated into the omega-ml cli. | |
Installation: | |
$ pip install -U getgist omegaml==0.14.0 | |
$ getgist omegaml omdeploy |
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
function topnfiles { | |
# show top n files by size | |
# Usage: $ topnfiles <dir> <n> | |
# https://www.cyberciti.biz/faq/how-do-i-find-the-largest-filesdirectories-on-a-linuxunixbsd-filesystem/ | |
du -hsx ${1:-.}/* | sort -rh | head -${2:-10} | |
} | |
# show home dir size, available space | |
alias hdf='df -h | grep home' |
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
# Details on usage see docstring | |
# | |
# Installation: | |
# | |
# $ pip install invoke | |
# $ (copy/paste this file to your local tasks.py) | |
# | |
# Usage: | |
# | |
# 1. amend your values.yaml with a #==tags.myfeature (at line end of line to update) |
Reading up
-
Intro article https://www.investopedia.com/articles/active-trading/101014/basics-algorithmic-trading-concepts-and-examples.asp
-
Technical analysis - https://www.investopedia.com/terms/t/technicalanalysis.asp
-
Investopedia has some good links on various indicators, e.g. RSI, MACD, Ichimoku cloud etc.
-
Datacamp has some good blogs
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
Question by @nntaleb | |
Throw a coin, H=head, T= Tail. Which sequence one is more likely? | |
A={H,T,H,T,H,T,H,T,H,T,T,H,T,H,H,T,T,T,H,H} | |
B={H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H,H} | |
C={H,H,H,H,H,H,H,H,H,H,T,T,T,T,T,T,T,T,T,T} | |
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
# this will chain the fit and predict, i.e. fit will run only on predict success | |
with om.runtime.chain() as crt: | |
crt.model('regmodelx').fit('sample[y]', 'sample[x]') | |
crt.model('regmodelx').predict([5], rName='foox') | |
result = crt.run() | |
# sometime later | |
print(result.get()) |