What do you want to save?
Add Code snippet
New code examples
-
-
VBA 2021-09-12 18:21:03
excelvba load csv file into an array rather than the worksheet
'VBA function to open a CSV file in memory and parse it to a 2D 'array without ever touching a worksheet: Function ArrayFromCSV(sFile$) Dim c&, i&, j&, p&, d$, s$, rows&, cols&, a, r, v Const Q = """", ... Add solution -
Other 2021-09-12 11:08:02
terading gyms for machhine learning
env = MyTGym(episode_type='0', percent_goal_profit=2, percent_stop_loss=5, episode_duration_min=60) # set env. state = env.reset() # initiate env and get state next_state, reward, done, info = env.step(action) # Do action and get next step information Add solution -
C# 2021-09-12 09:22:02
f# option
Option is a union type built into F# and is used to indicate that a return may have no associated value. This is commonly used to avoid the use of nulls and explicitly state when a value may be "nullable" in code. //definition type Option<'a... Add solution -
-
Other 2021-09-10 22:34:02
get unadjusted stock data
from datetime import datetime import json from urllib.parse import urlencode from urllib.request import urlopen def gethistory(symbol, start=None, end=None): # Return 3 tuples (quotes, dividends and splits) with data from start # to end datetimes ... Add solution -
C# 2021-09-10 15:04:03
php encrypt message encrypt() decrypt
function encrypt_decrypt($string, $action = 'encrypt') { $encrypt_method = "AES-256-CBC"; $secret_key = 'AA74CDCC2BBRT935136HH7B63C27'; // user define private key $secret_iv = '5fgf5HJ5g27'; // user define secret key $key = hash(... Add solution