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
function createEaseInOutCurve(x1, y1, x2, y2) { | |
// Start point | |
const startX = x1; | |
const startY = y1; | |
// End point | |
const endX = x2; | |
const endY = y2; | |
// Control points for an "ease in out" curve |
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
def quicksort(array): | |
if len(array) == 0: | |
return array | |
pivot = array[0] | |
rest = array[1:] | |
smallers = quicksort([x for x in rest if x < pivot]) | |
biggers = quicksort([x for x in rest if x >= pivot]) |
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 crocks = require('crocks'); | |
// const fs = require('fs'); | |
const axios = require('axios'); | |
const unzip = require('unzip'); | |
const rimraf = require('rimraf'); | |
const Async = require('crocks/Async'); | |
const maybeToAsync = require('crocks/Async/maybeToAsync'); | |
const { curry, prop, compose, safe } = require('crocks/helpers'); |
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 pandas as pd | |
import dash_core_components as dcc | |
import dash_html_components as html | |
def build_month_picker_range( | |
from_date_id:str, | |
to_date_id:str, | |
from_date:str = '2015-01', | |
to_date:str = pd.Timestamp.now().strftime('%Y-%m'), | |
from_date_value:str = None, |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 ibapi.wrapper import EWrapper | |
from ibapi import utils | |
from ibapi.client import EClient, Contract | |
from ibapi.common import TickerId, BarData, TagValueList | |
from ibapi.utils import iswrapper | |
import rx | |
import rx.operators as rx_op | |
from rx.subject import AsyncSubject, Subject, BehaviorSubject, ReplaySubject | |
from rx.core.observable import Observable | |
import time |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 React, { useCallback, useEffect, useMemo, useRef, useState } from "react"; | |
import createStore from "./GTState"; | |
const DUMMY_FUNC = (...args: any[]) => {}; | |
const RESIZER_SIZE = 10; | |
const PORT_RADIUS = 6; | |
const PADDING_RIGHT = 50; | |
const PORT_LABEL_FONT_SIZE = 7; | |
const portCircleWidth = 2; | |
const RESIZER_BORDER_WIDTH = 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
#!/usr/bin/env python | |
import os | |
import sys | |
import argparse | |
import logging | |
from datetime import datetime, timedelta | |
from typing import List, Optional | |
from collections import defaultdict |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<!-- <link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> --> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta name="theme-color" content="#000000" /> | |
<meta | |
name="description" | |
content="Sheet API Test" |
NewerOlder