Skip to content

Instantly share code, notes, and snippets.

import pandas as pd
from tradingview_ta import Interval, get_multiple_analysis
df = pd.read_csv('nasdaq_tickers.csv').astype(str)
symbols = df['Symbol'].astype(str)
nasdaq_symbols = ["NASDAQ:" + symbol for symbol in symbols]
analysis_results = get_multiple_analysis(
screener="america",
interval=Interval.INTERVAL_1_WEEK,
@vin-spiegel
vin-spiegel / read-me.md
Last active October 15, 2022 13:04
simple-try-catch.lua

Lua Try Catch

  • Simple try-catch module using pcall in lua
  • example for error handling.
@vin-spiegel
vin-spiegel / XmlDocumentation.cs
Last active September 26, 2022 17:28
C# XmlDocumentation Extensions extend Reflection
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Xml;
/// <summary>
/// Utility class to provide documentation for various types where available with the assembly
/// </summary>
public static class DocumentationExtensions
@vin-spiegel
vin-spiegel / path generator.lua
Created March 11, 2022 23:43
path generator example for lua
local Sounds = {
path = "../Sounds/",
filenameExt = ".ogg",
__call = function(self)
math.randomseed(os.time())
self.path = self.path .. self.type .. math.random(self.quantity) .. self.filenameExt
return self
end
}
Sounds.__index = Sounds
@vin-spiegel
vin-spiegel / touch-event.lua
Created March 7, 2022 04:13
simple touch and drag event example for nekoland
local fps = 60 --move이벤트 fps설정
local Screen = {
--@properties
callbacks = {}, -- 함수가 담기는 테이블
x = 0, --커서를 누른 x좌표
y = 0, --커서를 누른 y좌표
dx = 0, --커서가 움직인 x좌표
dy = 0, --커서가 움직인 y좌표
timer = 0, --온틱 타이머
@vin-spiegel
vin-spiegel / weighted-random.lua
Last active March 7, 2022 04:16
simple example of weigted random choice
local dropTable = {
[1] = {
{item = "item1", weight = 4},
{item = "item2", weight = 1},
{item = "item3", weight = 19},
{item = "item4", weight = 2},
{item = "item5", weight = 30},
{item = "item6", weight = 7}
}
}