Session
- rename. Ctrl + b, $
- new window. Ctrl + b, c
import numpy | |
import scipy.optimize | |
import pandas | |
def probability_constraint(x): | |
j, n = x.shape | |
Aeq = numpy.ones([1, j]) | |
beq = numpy.array([1.]) |
apiVersion: v1 | |
kind: ConfigMap | |
metadata: | |
name: workflow-controller-configmap | |
namespace: default | |
data: | |
artifactRepository: | | |
archiveLogs: true | |
s3: | |
repoName: MyArtifactRepo |
require 'csv' | |
require "bigdecimal" | |
require 'rubygems' | |
require 'bundler/setup' | |
require 'pry' | |
Bundler.require | |
file_name = "mes-july2020.csv" |
[ | |
{ | |
"city": "New York", | |
"growth_from_2000_to_2013": "4.8%", | |
"latitude": 40.7127837, | |
"longitude": -74.0059413, | |
"population": "8405837", | |
"rank": "1", | |
"state": "New York" | |
}, |
from datetime import datetime, timedelta, date | |
import pytz | |
from os import environ, path, makedirs | |
import pandas as pd | |
import quandl | |
import fasterparquet | |
start_date = "1995-01-01" |
# Pandas operations | |
## getting and setting df rows | |
credit goes to https://stackoverflow.com/a/29262040/665578 | |
for i, row in df.iterrows(): | |
ifor_val = something | |
if <condition>: | |
ifor_val = something_else |
from slacker import Slacker | |
# | |
# https://api.slack.com/custom-integrations/legacy-tokens | |
# | |
token = "--- put api token here ---" | |
slack = Slacker(token) | |
# | |
# Get users list |
using System; | |
using System.Linq; | |
using QuantConnect.Indicators; | |
using QuantConnect.Models; | |
namespace QuantConnect.Algorithm.Examples | |
{ | |
/// <summary> | |
/// | |
/// QuantConnect University: EMA + SMA Cross |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>BackgroundColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECww | |
LjQ3ODI2MDg3IDAuMTQ1MTA0MzYgMC4xMTY4ODEyMSAwLjg1MDAwMDAyABABgALSEBES | |
E1okY2xhc3NuYW1lWCRjbGFzc2VzV05TQ29sb3KiEhRYTlNPYmplY3RfEA9OU0tleWVk |