An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| # https://github.com/matplotlib/matplotlib/issues/881 | |
| # Several of the ColorBrewer maps are "qualitative", meaning | |
| # they are just a group of colors that can be used together | |
| # for categories of data. So I remapped Accent to segments | |
| # instead of continuous: | |
| # Actually, these should be used with ListedColormap, and | |
| # the number of colors should depend on the number of | |
| # categories in the data, with colors removed from the | |
| # list in a certain order? |
An introduction to curl using GitHub's API.
Makes a basic GET request to the specifed URI
curl https://api.github.com/users/caspyin
| // Configurable variables | |
| // ⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻⁻ | |
| // Absolute height of body text, in pixels | |
| $base-font-size: 16px !default; | |
| // Absolute height of one line of type, in pixels | |
| $base-line-height: 24px !default; | |
| // The font unit to use when returning values in rhythm functions |
| """:mod:`hstore` --- Using PostgreSQL hstore with SQLAlchemy | |
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | |
| .. note:: | |
| I released it under Public Domain. Feel free to use! | |
| It provides :class:`Hstore` type which makes you to store Python | |
| dictionaries into hstore columns in PostgreSQL. For example:: |
| # The latest version of this script is now available at | |
| # https://github.com/jasoncodes/dotfiles/blob/master/aliases/rbenv.sh | |
| VERSION=1.9.3-p286 | |
| brew update | |
| brew install rbenv ruby-build rbenv-vars readline ctags | |
| if [ -n "${ZSH_VERSION:-}" ]; then | |
| echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.zshrc | |
| else | |
| echo 'eval "$(rbenv init - --no-rehash)"' >> ~/.bash_profile |
| import cPickle as pickle | |
| import numpy as np | |
| from bson.binary import Binary | |
| from pymongo.son_manipulator import SONManipulator | |
| class NumpySONManipulator(SONManipulator): | |
| def transform_incoming(self, value, collection): | |
| if isinstance(value, (list,tuple,set)): | |
| return [self.transform_incoming(item,collection) for item in value] | |
| if isinstance(value,dict): |
| -- See article here: http://daringfireball.net/2007/07/simple_inbox_sweeper | |
| -- The following should be one long line: | |
| set _description to "All unflagged, read messages in each IMAP account | |
| inbox will be moved to the “Archive” mailbox corresponding to that | |
| account. This action is not undoable." | |
| tell application "Mail" | |
| display alert "Archive read messages from IMAP inboxes?" buttons ¬ | |
| {"Cancel", "Archive"} cancel button 1 message _description |
| import yaml | |
| import yaml.constructor | |
| try: | |
| # included in standard lib from Python 2.7 | |
| from collections import OrderedDict | |
| except ImportError: | |
| # try importing the backported drop-in replacement | |
| # it's available on PyPI | |
| from ordereddict import OrderedDict |
| #!/bin/sh | |
| # This program has two feature. | |
| # | |
| # 1. Create a disk image on RAM. | |
| # 2. Mount that disk image. | |
| # | |
| # Usage: | |
| # $0 <dir> <size> | |
| # |