Skip to content

Instantly share code, notes, and snippets.

Avatar

Chris Parmer chriddyp

View GitHub Profile
@chriddyp
chriddyp / custom-keybindings.sublime-keymap
Last active Sep 15, 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'
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'
@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 keybase.md

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:

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 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 GeomtryCollection.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.