Skip to content

Instantly share code, notes, and snippets.

View chriddyp's full-sized avatar

Chris Parmer chriddyp

View GitHub Profile
@chriddyp
chriddyp / custom-keybindings.sublime-keymap
Last active October 19, 2021 15:10
Custom Sublime Text keybindings for rapid code navigation. No arrow keys required!
[
/* 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 February 4, 2021 16:20
My `keymap.cson` file that I use for faster, mouse-less navigation in my code editor.
'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'

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

>>> 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,
@chriddyp
chriddyp / keymap.cson
Created April 26, 2018 15:14
My Atom Keymap
'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 August 11, 2017 18:40
Here are the versions of pyenv that are available on CircleCI (as of time of creation)
```
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

Keybase proof

I hereby claim:

  • I am chriddyp on github.
  • I am chriddyp (https://keybase.io/chriddyp) on keybase.
  • I have a public key ASDnhF966uk0KaYGB31-veEOIl_pLQ4MWUNCvwd8FLsDjQo

To claim this, I am signing this object:

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/'
# 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')
@chriddyp
chriddyp / GeomtryCollection.json
Created September 2, 2016 01:08
Simple GeoJSON files
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.