This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// MatrixImagingLibrary.cpp [fragment] Alejandro Carrillo (July 2013) | |
// At the Neuro-Electronic Research Foundation in Belgium, I wrote image | |
// rectification software for their custom multiphoton microscope. | |
// The microscope functions by emitting photons and measuring the fluorescence | |
// of neurons in mice that have genetically encoded calcium indicators. | |
// In order to sweep the laser across the microscope subject at a maximally high | |
// frequency, the laser mirror is driven via harmonic resonance. | |
// The consequence, however, is that the laser sweep is sinusoidal. The following | |
// functions concern rectifying the sine-warped image that is generated from the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var API_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; | |
var mc_base_url = 'http://us7.api.mailchimp.com/1.3/?method=listSubscribe'; | |
var mc_list_id = 'xxxxxxxxxx'; | |
var mc_double_optin = false; | |
/** | |
* Uses the MailChimp API to add a subscriber to a list. | |
*/ | |
function sendToMailChimp_(fn, ln, em, yr){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# | |
# Authors: Kevin Wang and Alex Carrillo | |
# Description: Replaces UNIX timestamps with more human-friendy strings | |
# | |
# Make this file executable with `chmod +x datefiltr.rb` and put it in your path. | |
# | |
# Example usage: | |
# $ datefiltr.rb < file-with-timestamps.txt > file-with-readable-dates.txt | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
'''A filter that takes a UNIX epoch timestamp as input, and outputs the date in a more human-friendly format | |
Put this file somewhere in your PATH and 'chmod +x' it. | |
In your ~/.vimrc: | |
vnoremap <silent> <F6> :!datefiltr.py<CR> |