Skip to content

Instantly share code, notes, and snippets.

@yhilpisch
yhilpisch / 01_overview.md
Last active July 22, 2019 04:10
Gist for the For Python Quants Bootcamp in New York City, May 2017

For Python Quants Bootcamp

This is the Gist the FPQ bootcamp in New York, 08.-11. May 2017 (http://fpq.io)

Notebooks & Code Files

Additional files (eg Jupyter Notebooks) are found under:

from matplotlib import pyplot as plt
import cv2
img = cv2.imread('/Users/mustafa/test.jpg')
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
plt.imshow(gray)
plt.title('my picture')
plt.show()
@sandeepraju
sandeepraju / ttfb.sh
Created July 20, 2016 21:17
curl command to check the time to first byte
#!/bin/bash
# file: ttfb.sh
# curl command to check the time to first byte
# ** usage **
# 1. ./ttfb.sh "https://google.com"
# 2. seq 10 | xargs -Iz ./ttfb.sh "https://google.com"
curl -o /dev/null \
-H 'Cache-Control: no-cache' \
-s \
@codeinthehole
codeinthehole / .gitconfig
Last active March 9, 2023 11:27
Git config
[user]
name = David Winterbottom
email = [email protected]
[alias]
# SHORT VERSIONS
co = checkout
ci = commit
@chriddyp
chriddyp / Pandas Widget - Time Series, Search, and Filtering.ipynb
Created January 22, 2015 22:30
A Collection of Plotly and IPython Widgets
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@josephspurrier
josephspurrier / values_pointers.go
Last active May 15, 2025 14:43
Golang - Asterisk and Ampersand Cheatsheet
/*
********************************************************************************
Golang - Asterisk and Ampersand Cheatsheet
********************************************************************************
Also available at: https://play.golang.org/p/lNpnS9j1ma
Allowed:
--------
p := Person{"Steve", 28} stores the value
@drifterz28
drifterz28 / firework.svg
Created November 11, 2014 23:53
firework svg with animated css
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@bsweger
bsweger / useful_pandas_snippets.md
Last active October 6, 2025 13:44
Useful Pandas Snippets

Useful Pandas Snippets

A personal diary of DataFrame munging over the years.

Data Types and Conversion

Convert Series datatype to numeric (will error if column has non-numeric values)
(h/t @makmanalp)

@stared
stared / software_for_scientists.md
Last active September 12, 2025 13:22
Software for scientists: community-edited list of general-purpose software for scientists.

Software for scientists

Some things takes much less time and stress once you know the right tool. Below, there is a community edited list of software for scientists.

Text editors

in General purpose text/code editors. It may be better to have a good editor for everything, than different ones for different languages, scripts, notes.

mkdown

What is this?

Mkdown renders Markdown GitHub gists with alternative CSS. Use it to elegantly share gists written in Markdown.

How do I use this?

To create your own mkdown URL, append the gist ID in a URL of the form: http://mkdown.com/{GIST ID}. The gist ID is the string at the end of a gist URL.