I hereby claim:
- I am bsmth on github.
- I am bsmth (https://keybase.io/bsmth) on keybase.
- I have a public key ASAP6sCEQqTVAtvKB6NAtD9FKDCFedfI6Cbfub88n7vVsAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
create table user_stats | |
( | |
ts timestamp, | |
username symbol, | |
name symbol, | |
ip_address symbol, | |
post_count int | |
) | |
timestamp(ts); |
import time | |
import socket | |
HOST = 'localhost' | |
PORT = 9009 | |
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
try: | |
sock.connect((HOST, PORT)) | |
sock.sendall(('eod,instrument=fut open=141.5,high=142.0,low=139.9,close=142.0,settle_price=143.7,value=42.27\n').encode()) |
import urllib.request | |
import pandas as pd | |
import requests | |
def import_data(file_name, table_name): | |
params = {} | |
params['timestamp'] = 'TradeDate' | |
params['partitionBy'] = 'MONTH' | |
url_values = urllib.parse.urlencode(params) | |
query_url = "http://%s:9000/imp?" % (server_ip) + url_values |
mkdir bin_dir && cd bin_dir | |
wget https://github.com/questdb/questdb/releases/download/6.0.4/questdb-6.0.4-no-jre-bin.tar.gz | |
tar -xvf questdb-6.0.4-no-jre-bin.tar.gz | |
cd questdb-6.0.4-no-jre-bin | |
./questdb.sh start -d /path/to/my_data_dir | |
./questdb.sh stop | |
# /path/to/my_data_dir will create a new root directory for QuestDB | |
# If a server config file exists already, it will be loaded, i.e. |
# Path to your oh-my-zsh configuration. | |
export ZSH=$HOME/.oh-my-zsh | |
# Set name of the theme to load. | |
# Look in ~/.oh-my-zsh/themes/ | |
# Optionally, if you set this to "random", it'll load a random theme each | |
# time that oh-my-zsh is loaded. | |
#export ZSH_THEME="robbyrussell" | |
export ZSH_THEME="zanshin" |
# Using 19 | |
node -v | |
v19.0.0 | |
yarn && yarn start | |
zsh: command not found: yarn | |
# of course, everything is broken | |
# try reinstall 19 with all of the global modules from 18 | |
nvm install 19 --reinstall-packages-from=18 |
const customerData = [ | |
{ ssn: "444-44-4444", name: "Bill", age: 35, email: "bill@company.com" }, | |
{ ssn: "555-55-5555", name: "Donna", age: 32, email: "donna@home.org" }, | |
]; | |
const dbName = "my_database"; | |
const request = indexedDB.open(dbName, 2); | |
request.onerror = (event) => { | |
console.log(event); |
<!DOCTYPE html> | |
<html> | |
<style> | |
.wrapper { | |
transform-style: preserve-3d; | |
} | |
.wrapper2 { | |
transform-style: flat; | |
} |
{ | |
"$schema": "https://raw.githubusercontent.com/streetsidesoftware/cspell/main/cspell.schema.json", | |
"version": "0.2", | |
"language": "en", | |
"languageId": "*", | |
"dictionaries": [ | |
"bash", | |
"css", | |
"cpp", | |
"django", |