Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Parmer chriddyp

View GitHub Profile
View dash_simple_example_pandas_datareader.py
import dash
from dash.dependencies import Input, Output
import dash_core_components as dcc
import dash_html_components as html
from pandas_datareader import data as web
from datetime import datetime as dt
app = dash.Dash('Hello World')
View dash_crossfilter_example.py
import dash
import dash_core_components as dcc
import dash_html_components as html
import plotly.graph_objs as go
import pandas as pd
app = dash.Dash()
df = pd.read_csv(
'https://gist.githubusercontent.com/chriddyp/'
View Pandas Widget - Time Series, Search, and Filtering.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@chriddyp
chriddyp / custom-keybindings.sublime-keymap
Last active Oct 19, 2021
Custom Sublime Text keybindings for rapid code navigation. No arrow keys required!
View custom-keybindings.sublime-keymap
[
/* Navigate quickly through a file - Move by horizontally words and vertically by blocks */
{ "keys": ["ctrl+l"], "command": "move", "args": {"by": "subwords", "forward": true}},
{ "keys": ["ctrl+j"], "command": "move", "args": {"by": "subwords", "forward": false}},
{ "keys": ["ctrl+option+k"], "command": "move", "args": {"by": "stops", "forward": true, "empty_line": true}},
{ "keys": ["ctrl+option+i"], "command": "move", "args": {"by": "stops", "forward": false, "empty_line": true}},
/* Fine-grained navigation - Move horizontally by characters and vertically by lines */
{ "keys": ["ctrl+option+l"], "command": "move", "args": {"by": "characters", "forward": true}},
{ "keys": ["ctrl+option+j"], "command": "move", "args": {"by": "characters", "forward": false}},
@chriddyp
chriddyp / Atom Keymaps for Faster Navigation.cson
Last active Feb 4, 2021
My `keymap.cson` file that I use for faster, mouse-less navigation in my code editor.
View Atom Keymaps for Faster Navigation.cson
'atom-text-editor:not([mini])':
'ctrl-i': 'core:move-up'
'ctrl-k': 'core:move-down'
'ctrl-j': 'editor:move-to-beginning-of-word'
'ctrl-l': 'editor:move-to-end-of-word'
'ctrl-alt-i': 'editor:move-to-beginning-of-previous-paragraph'
'ctrl-alt-k': 'editor:move-to-beginning-of-next-paragraph'
'shift-ctrl-alt-i': 'editor:select-to-beginning-of-previous-paragraph'
'shift-ctrl-alt-k': 'editor:select-to-beginning-of-next-paragraph'
@chriddyp
chriddyp / pyenv versions available on circle ci
Created Aug 11, 2017
Here are the versions of pyenv that are available on CircleCI (as of time of creation)
View pyenv versions available on circle ci
```
ubuntu@box212:~$ pyenv versions
system
2.7.10
* 2.7.11 (set by /opt/circleci/.pyenv/version)
2.7.12
3.1.4
3.1.5
3.2.5
3.2.6
View plotly.js inside ipython notebook.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View dash-and-donuts.md

Notes from the Dash and Donuts workshop. See the comments below!

View go.Carpet?
>>> go.Carpet?
Init signature: go.Carpet(a=None, a0=None, aaxis=None, asrc=None,
b=None, b0=None, baxis=None, bsrc=None,
carpet=None, cheaterslope=None, color=None,
customdata=None, customdatasrc=None,
da=None, db=None, font=None, hoverinfo=None,
hoverinfosrc=None, hoverlabel=None,
ids=None, idssrc=None, legendgroup=None,
name=None, opacity=None, selectedpoints=None,
View keymap.cson
'atom-text-editor:not([mini])':
'ctrl-i': 'core:move-up'
'ctrl-k': 'core:move-down'
'ctrl-j': 'editor:move-to-beginning-of-word'
'ctrl-l': 'editor:move-to-end-of-word'
'ctrl-alt-i': 'editor:move-to-beginning-of-previous-paragraph'
'ctrl-alt-k': 'editor:move-to-beginning-of-next-paragraph'
'shift-ctrl-alt-i': 'editor:select-to-beginning-of-previous-paragraph'
'shift-ctrl-alt-k': 'editor:select-to-beginning-of-next-paragraph'