Skip to content

Instantly share code, notes, and snippets.

import grpc
from google.protobuf import any_pb2
from typing import List
import protoc_outfiles.firehose_v2_pb2 as firehose_proto
import protoc_outfiles.firehose_v2_pb2_grpc as firehose_grpc
import protoc_outfiles.transform_fh2_pb2 as transforms_proto
class FirehoseGRPC():
enum saleMeasure {
saleVolume = "SUM(eth_price)",
saleCount = "COUNT(tx_hash)",
saleFloor = "MIN(eth_price)",
avgHoldTime = "MEAN(hold_time)",
avgFlipTime = "MEAN(flip_time)",
collectorCount = "COUNT(DISTINCT collectors)"
}
enum saleDimension {
@ahessert
ahessert / app.R
Last active June 18, 2020 15:45
Shiny drop down example
library(shinyWidgets)
## Only run examples in interactive R sessions
if (interactive()) {
library("shiny")
library("shinyWidgets")
ui <- fluidPage(
tags$h2("pickerInput in dropdown"),
library(data.table)
library(dplyr)
library(magrittr)
library(tidycensus)
v17 <- load_variables(2017, "acs5", cache = TRUE)
View(v17)
package main
import (
"github.com/jonboulle/clockwork"
api2 "exchanges/binance/api"
book_map2 "binance/book_map"
"messages"
"persistence/logger"
"persistence/postgres"
"log"
package main
import (
"github.com/jonboulle/clockwork"
api2 "gitlab.com/cointown/coin/exchanges/binance/api"
book_map2 "gitlab.com/cointown/coin/exchanges/binance/book_map"
"gitlab.com/cointown/coin/messages"
"gitlab.com/cointown/coin/persistence/logger"
"gitlab.com/cointown/coin/persistence/postgres"
"log"

Keybase proof

I hereby claim:

  • I am ahessert on github.
  • I am ahessert (https://keybase.io/ahessert) on keybase.
  • I have a public key ASCZqC3Poq56sY2OQPh40vd_A0kWbLzFsob4OEZvkDyTSgo

To claim this, I am signing this object:

ctl00$ScriptManager1:ctl00$mainContent$UpdatePanel1|ctl00$mainContent$btnSearch_Ranking
ctl00_ScriptManager1_HiddenField:
q_player_record:on
ctl00$SocialMediaPanel$isExistSocialMedia:False
ctl00$mainContent$LoadCount:7
ctl00$mainContent$SectionDistrict:10
ctl00$mainContent$Year:2015
ctl00$mainContent$Division:G30
ctl00$mainContent$ListType:27
ctl00$mainContent$txtPlayerUSTANo:
ctl00$ScriptManager1:ctl00$ScriptManager1|ctl00$ScriptManager1
ctl00_ScriptManager1_HiddenField:
q_player_record:on
ctl00$SocialMediaPanel$isExistSocialMedia:False
ctl00$mainContent$LoadCount:101
ctl00$mainContent$SectionDistrict:10
ctl00$mainContent$Year:2015
ctl00$mainContent$Division:G30
ctl00$mainContent$ListType:27
ctl00$mainContent$txtPlayerUSTANo:
from celery.signals import after_setup_task_logger
import logging
def foo_tasks_setup_logging(**kw):
logger = logging.getLogger('foo.tasks')
if not logger.handlers:
handler = logging.FileHandler('tasks.log')
formatter = logging.Formatter(logging.BASIC_FORMAT) # you may want to customize this.
handler.setFormatter(formatter)
logger.addHandler(handler)