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
#!/bin/sh | |
#armeabi-v7a -> armv7a-linux-androideabi | |
#arm64-v8a -> aarch64-linux-android | |
#x86 -> i686-linux-android | |
#x86-64 -> x86_64-linux-android | |
# https://developer.android.com/ndk/guides/other_build_systems | |
#set these! | |
API=31 |
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
#include <stdio.h> | |
#include<string.h> | |
#include<unistd.h> | |
#include<stdbool.h> | |
#include <gio/gio.h> | |
#include <glib.h> | |
#include "ovpn3.h" | |
/* gcc app.c ovpn3.c `pkg-config --libs --cflags gtk4` -o app */ |
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
algo | pnl | datasource | derivative | symbol | candles | interval | target | stoploss | is_trailing_sl | trailing_sl_val | quantity | sliding | intraday | buy_signals | sell_signals | neutral_signals | trgt_hits | sl_hits | b_trgt_hits | s_trgt_hits | b_sl_hits | s_sl_hits | peak | bottom | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
algorithms/Reds.so | -1099.544556 | F.csv | None | F | 3 | 0 | 0.500000 | 0.700000 | 0 | 1.000000 | 100 | 1 | 0 | 0 | 431 | 1791 | 235 | 196 | 0 | 235 | 0 | 196 | 101.983887 | -2754.459717 |
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
#vsshow.py | |
import vapoursynth as vs | |
from ctypes import * | |
from PIL import Image | |
def show(core, clip, frame_number, vflip=1): | |
format = clip.format.id | |
width = clip.width | |
height = clip.height | |
if format == vs.GRAY16: |
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
from selenium import webdriver | |
from selenium.webdriver.firefox.options import Options | |
from bs4 import BeautifulSoup | |
class Scraper: | |
def __init__(self): | |
self.options = Options() | |
self.options.add_argument('--headless') | |
self.driver = webdriver.Firefox(options=self.options) |
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
pm_scaler = scaler.fit(data["pm2.5"].values.reshape(-1, 1)) | |
predicted = pm_scaler.inverse_transform( np.array(predictions).reshape(-1, 1) ) | |
infered = pd.DataFrame(data['pm2.5'].iloc[24:]) | |
infered['Predicted'] = predicted |
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
# data preprocessing - I | |
data.dropna(inplace=True) | |
le = LabelEncoder() | |
data["cbwd"] = le.fit_transform(data["cbwd"]) | |
data.head() |
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 pandas as pd | |
import numpy as np | |
import matplotlib.pyplot as plt | |
plt.style.use('seaborn') | |
import mxnet | |
import mxnet.gluon as G | |
from sklearn.preprocessing import MinMaxScaler | |
from sklearn.preprocessing import LabelEncoder |
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
[Unit] | |
Description=qBittorrent Daemon Service | |
After=network.target | |
[Service] | |
User=root | |
Group=root | |
ExecStart=/usr/bin/qbittorrent-nox | |
ExecStop=/usr/bin/killall -w qbittorrent-nox | |
Restart=on-failure |
NewerOlder