Skip to content

Instantly share code, notes, and snippets.

View waltonjones's full-sized avatar

Walton Jones waltonjones

View GitHub Profile
@waltonjones
waltonjones / theme.less
Last active April 19, 2016 15:13
Solarized Dark: A Taskpaper 3 theme
// See http://guide.taskpaper.com/creating_themes.html to get started.
// Solarized Dark Theme by Walton Jones
// Inspired by Solarized (http://ethanschoonover.com/solarized)
// Variables
@user-font-size: 20;
@text-color: rgb(129, 130, 132);
@background-color: rgb(4, 32, 41);
@tint-color: rgb(129, 144, 144);
@waltonjones
waltonjones / theme.less
Last active April 19, 2016 15:12
Solarized Light: A Taskpaper 3 theme
// See http://guide.taskpaper.com/creating_themes.html to get started.
// Solarized Light Theme by Walton Jones
// From Solarized (http://ethanschoonover.com/solarized)
// Variables
@user-font-size: 20;
@text-color: rgb(83, 104, 112);
@background-color: rgb(252, 244, 220);
@tint-color: rgb(71, 91, 98);
@waltonjones
waltonjones / APDRC3 Abstract (Sion).md
Created March 2, 2015 00:23
Abstract for APDRC3 in Beijing

A pair of central brain peptidergic neurons modulates peripheral olfactory sensitivity to specific odors in Drosophila

Sion Yi, Walton D. Jones

Department of Biological Sciences, KAIST, Republic of Korea

E-mail: waltonjones@kaist.edu

Animals olfactory systems detect thousands of different environmental chemicals that are important in finding food and mates and in avoiding predators. Although the olfactory system detects a wide variety of chemical stimuli, it does not do so with equal sensitivity. Olfactory sensitivity can even modulated depending on internal and external cues so odor perception can be adapted to changing conditions. Here, we show knock-down of neuropeptide F (NPF) in a pair of central brain NPFergic neurons desensitizes Or22a-expressing antennal olfactory neurons. These neurons, which respond to ethyl butyrate, a volatile ester found in apples and other fruits, are similarly desensitized by knock-down of the NPF receptor, NPFR, in the Or22a neurons themselves. We also show that th

@waltonjones
waltonjones / ST_QuickCursor
Created December 3, 2014 05:21
Shell script for use in Keyboard Maestro macro to mimic "QuickCursor" with Sublime Text
export __CF_USER_TEXT_ENCODING=0x1F5:0x8000100:0x8000100
TMPFILE=`mktemp /tmp/XXXXXX`
/usr/bin/pbpaste > $TMPFILE
echo $TMPFILE
~/bin/subl -w $TMPFILE:10000000:10000000
@waltonjones
waltonjones / WP Mode (Goyo)
Created January 6, 2014 19:05
A few lines in my vimrc for controlling the distraction-free environment Goyo.
" WordProcessor Mode / Goyo
let g:goyo_width=65
let g:wp_mode_is_on = 0
function! ToggleWPMode()
if g:wp_mode_is_on
set formatoptions=tcq
set nowrap nolinebreak expandtab
silent! nunmap <buffer> k
@waltonjones
waltonjones / Stylable Pandas Groupby Boxplots
Last active March 1, 2016 16:38
This gist includes a function called stylable_groupby_boxplot() that receives a pandas dataframe object and the column you want to groupby and returns a dictionary that includes all the boxplot's parts just like the standard matplotlib boxplot function does.
from numpy.random import rand
import matplotlib.pyplot as plt
import pandas as pd
# 2 columns produces an array of 2 matplotlib.axes.AxesSubplot objects
df2 = pd.DataFrame(rand(10,2), columns=['Col1', 'Col2'] )
df2['X'] = pd.Series(['A','B','A','B','A','B','A','B','A','B'])
#1 column produces a single matplotlib.axes.AxesSubplot object
df1 = pd.DataFrame(rand(10), columns=['Col1'] )
@waltonjones
waltonjones / Skim_notes_to_clipboard.scpt
Last active December 20, 2015 03:59
Send color-coded Skim.app PDF notes to the clipboard with custom page urls. (See http://drosophiliac.com/2012/09/an-academic-notetaking-workflow.html)
tell application "Skim"
set the clipboard to ""
set numberOfPages to count pages of document 1
activate
set myColorCodes to my chooseColor()
set firstPage to "1" as number
set lastPage to numberOfPages
set the clipboard to "# Notes" & return & return