Skip to content

Instantly share code, notes, and snippets.

View neuromusic's full-sized avatar
🏜️
Living the dream

Justin Kiggins neuromusic

🏜️
Living the dream
View GitHub Profile
@neuromusic
neuromusic / make_mendeley_collection_from_PMIDs.py
Created September 7, 2012 20:41
demo of hacked-together script for creating a Mendeley collection from a set of PMIDs. uses Mendeley API
#! /usr/bin/python
# Requires Python >2.7.2
# CAUTION: this script will create a new collection in your Mendeley library and add a bunch of documents to it.
import json
import urlparse
from mendeley_client import MendeleyClient
@neuromusic
neuromusic / migrate_drupal6_to_wordpress3.4.py
Created December 5, 2012 20:12
script which migrates a blog from Drupal 6 to WordPress 3.4 using sqlalchemy & wordpress_xmlrpc
#!/usr/bin/python
import json
import datetime
from sqlalchemy import create_engine
from sqlalchemy.ext.declarative import declarative_base
from sqlalchemy.orm import sessionmaker
from wordpress_xmlrpc import Client, WordPressPost, WordPressComment, WordPressTerm
from wordpress_xmlrpc.methods import media, posts, users, comments, taxonomies
from wordpress_xmlrpc.compat import xmlrpc_client
@neuromusic
neuromusic / allen api with tortilla.ipynb
Created April 16, 2015 19:00
allen api with tortilla
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@neuromusic
neuromusic / defining large array geometries for klustakwik(1).ipynb
Last active August 29, 2015 14:20
generating KlustaKwik graphs from the geometries
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@neuromusic
neuromusic / Generating Channel Graphs for KlustaKwik Automatically.ipynb
Created July 4, 2015 03:44
Generating Channel Graphs for KlustaKwik Automatically
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
## The subject object. Importantly, the subject object manages DATA & the
## history of the subject's experiences
subj = Subect(name='B9999',
store='json', # csv, postgres
path='/home/bird/opdat/B9999'
)
## Panel objects are defined in ~/.pyoperant/panel_config.py
## Panels have methods for manipulating panels. The "availability" of a panel
## (that is, light schedules and trial schedules) are governed by the panel
@neuromusic
neuromusic / crcns download.ipynb
Created June 30, 2016 06:08
downloading from crcns
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.