Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@sebjai
sebjai / TargetPercent_MarketSpeed.ipynb
Last active June 25, 2025 18:25
Optimal execution with a percentage of volume target (Chap 9.2 of Algorithmic and High-Frequency Trading (c) Cartea, Jaimungal, & Penalva 2015 Cambridge University Press)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@NickLarsenNZ
NickLarsenNZ / kafka-consumer.py
Last active February 6, 2025 18:32
A small Kafka producer and consumer example
#!/usr/bin/env python3
# Usage:
# pip install kafka-python
# ./consumer.py <my-topic>
# NOTE: only runs for 10 seconds as per consumer_timeout_ms
# See:
# - https://raw.githubusercontent.com/simplesteph/kafka-stack-docker-compose/master/zk-multiple-kafka-multiple.yml
# See official docs at https://dash.plotly.com
# pip install dash pandas
from dash import Dash, dcc, html, Input, Output
import plotly.express as px
import pandas as pd
df = pd.read_csv('https://raw.githubusercontent.com/plotly/datasets/master/gapminderDataFiveYear.csv')
@mdang
mdang / NOSQL_MONGODB.md
Created August 17, 2016 13:58
Lesson: NoSQL and MongoDB

Intro to NoSQL with Mongo

This lesson is adapted from Jim Clark / Micah Rich's original lesson in the WDI repo

Objectives

  • Describe how Mongo databases came about & why they're useful
  • Compare and contrast NoSQL with SQL
  • Define what a document is in the context of MongoDB
  • Explain the difference between embedded and referenced documents, and how we use each to model relationships in MongoDB
  • Issue basic CRUD commands to a database from the Mongo Shell
@fffaraz
fffaraz / resources.md
Last active August 22, 2025 14:41
CS 306 - Linux/UNIX Programming
@etoxin
etoxin / git.md
Last active September 4, 2025 11:41
GIT Bash Commands

search (regex)

git grep "regex"

list all branches

git branch -a
@riipandi
riipandi / linux-cmd-cheatsheet.md
Created July 12, 2012 12:16
Linux Command Cheat Sheet

#Linux Cheat Sheet

##File Commands:

  • ls – directory listing
  • ls -al – formatted listing with hidden files
  • cd dir - change directory to dir
  • cd – change to home
  • pwd – show current directory
  • mkdir dir – create a directory dir
  • rm file – delete file