Skip to content

Instantly share code, notes, and snippets.

View jpemberthy's full-sized avatar

Juan Pemberthy jpemberthy

View GitHub Profile
{"image_url":"http://data3.whicdn.com/images/foo/large.jpg","entry_id":99967588}
{"image_url":"http://data2.whicdn.com/images/bar/large.png","entry_id":99967589}
curl -X POST "https://api.weheartit.com/api/v2/entries/70125697/reports?access_token=my-token&reason=discriminative"
# Apache Titan
[http://thinkaurelius.github.io/titan/](http://thinkaurelius.github.io/titan/)
### What is it?
They sell it as a scalable graph database optimized for storing and querying graphs containing hundreds of billions AND TRILLIONS of vertices and edges distributed across a multi-machine cluster.
So if that's true, we should be able to use at WHI.
<27 GET Entry.143.hearted_by(26-4)@development
> FOUND KEY Entry.143.hearted_by(26-4)@development -nuked by expire
>27 Writing an error: Not found
>27 Writing bin response:
>27 0x81 0x00 0x00 0x00
>27 0x00 0x00 0x00 0x01
>27 0x00 0x00 0x00 0x09
>27 0x00 0x00 0x00 0x00
>27 0x00 0x00 0x00 0x00
>27 0x00 0x00 0x00 0x00
PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\] \w \$(parse_git_branch)$\[\033[00m\] "
function parse_git_dirty {
[[ $(git status 2> /dev/null | tail -n1) != "nothing to commit, working directory clean" ]] && echo "*"
}
function parse_git_branch {
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e "s/* \(.*\)/[\1$(parse_git_dirty)]/"
}
;;; better-defaults.el --- Fixing weird quirks and poor defaults
;; Copyright © 2013 Phil Hagelberg and contributors
;; Author: Phil Hagelberg
;; URL: https://github.com/technomancy/better-defaults
;; Version: 0.1.2
;; Created: 2013-04-16
;; Keywords: convenience
(defun comment-or-uncomment-region-or-line ()
"Comments or uncomments the region or the current line if there's no active region."
(interactive)
(let (beg end)
(if (region-active-p)
(setq beg (region-beginning) end (region-end))
(setq beg (line-beginning-position) end (line-end-position)))
(comment-or-uncomment-region beg end)))
(global-set-key (kbd "M-/") 'comment-or-uncomment-region-or-line)
if [ -f $(brew --prefix)/etc/bash_completion ]; then
. $(brew --prefix)/etc/bash_completion
fi
(env)jpemberthy@scarface ~/code/u/clay-tornado [master]$ export CLAY_CONFIG=clay_tornado/test/test.yaml; python setup.py test
running test
running egg_info
writing requirements to clay_tornado.egg-info/requires.txt
writing clay_tornado.egg-info/PKG-INFO
writing top-level names to clay_tornado.egg-info/top_level.txt
writing dependency_links to clay_tornado.egg-info/dependency_links.txt
reading manifest file 'clay_tornado.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'clay_tornado.egg-info/SOURCES.txt'