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
# https://mike.depalatis.net/blog/tornado-background-tasks.html | |
@tornado.concurrent.run_on_executor | |
def refresh(): | |
do_something_that_takes_a_while() | |
tornado.ioloop.IOLoop.instance().add_callback(self.refresh) |
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 os import chdir | |
from os.path import dirname | |
import multiprocessing | |
import numpy as np | |
import pandas as pd | |
import asyncio | |
from lightweight_charts import Chart | |
async def main(): | |
#print(sys._MEIPASS) |
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
Get-ChildItem -Path . -Recurse -Filter *.dll -File -Name | Unblock-File |
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
@echo off | |
rem mkdir workspace | |
rem copy _cmd.bat . | |
rem cd workspace | |
rem virtualenv .venv | |
Set workdir=%cd%\.venv | |
rem echo VIRTUALENV: %workdir% | |
For /F "delims=\" %%A in ("%workdir%") do ( | |
Set Name=%%~nxA |
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
/*! | |
* @license | |
* TradingView Lightweight Charts™ v4.1.2 | |
* Copyright (c) 2023 TradingView, Inc. | |
* Licensed under Apache License 2.0 https://www.apache.org/licenses/LICENSE-2.0 | |
*/ | |
(function () { | |
'use strict'; | |
/** |
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
"""digicheck - create and verify signatures for files | |
Usage: | |
digicheck keys | |
digicheck public <keyfilename> | |
digicheck sign <filename> <keyfilename> | |
digicheck check <filename> <keyfilename> <signaturefilename> | |
digicheck (-h | --help) | |
digicheck --version |
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 platform | |
# Determine the correct platform for the webdriver | |
system = platform.system() | |
arch, _ = platform.architecture() | |
if system == 'Linux': | |
if arch == '64bit': | |
webdriver = 'bin/linux64/chromedriver' | |
else: | |
webdriver = 'bin/linux32/chromedriver' |
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_PARAM] | |
rtsp = 1 ; RTSPЭ�飬0���ر� 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
# | |
# to_lib.py | |
# Create import library from dll | |
# by seffx | |
# Jakarta, 2024 | |
# | |
# DISCLAIMER: | |
# Use it on your own risk, this code is provided to PUBLIC DOMAIN, "AS IS". | |
# | |
# Usage note: |
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
// node.js get keypress | |
var stdin = process.stdin; | |
// without this, we would only get streams once enter is pressed | |
//stdin.setRawMode( true ); | |
// resume stdin in the parent process (node app won't quit all by itself | |
// unless an error or process.exit() happens) | |
stdin.resume(); | |
// i don't want binary, do you? |