This file contains 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
This file contains any messages produced by compilers while | |
running configure, to aid debugging if configure makes a mistake. | |
It was created by tesseract configure 3.01, which was | |
generated by GNU Autoconf 2.61. Invocation command line was | |
$ ./configure --disable-dependency-tracking --prefix=/usr/local/Cellar/tesseract/3.01 | |
## --------- ## | |
## Platform. ## |
This file contains 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/python | |
# See http://pballew.blogspot.com/2011/01/back-of-envelope-answers-to-hard.html | |
import numpy as np | |
def transition_matrix(slots): | |
return np.matrix([ | |
([0] * i) + | |
[(i+1.0)/slots, 1-(i+1.0)/slots][:slots-i] + |
This file contains 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
(let* ((env-output (shell-command-to-string "source .bashrc ; source .emacs.d/emacsenv.sh")) | |
(lines (split-string env-output "[\r\n]+" t)) | |
(regex "^\\([^ ]+\\) \\(.*\\)$") | |
(pairs (mapcar (lambda (line) | |
(if (string-match regex line) | |
(list (match-string 1 line) (match-string 2 line)))) | |
lines))) | |
(mapc (lambda (pair) (apply 'setenv pair)) pairs)) |
This file contains 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
class SpecialOpenIDAuth(OpenIDAuth): | |
def authenticate(self, identity=None): | |
user = super(SpecialOpenIDAuth, self).authenticate(identity) | |
if user and is_staff_openid_provider(identity): | |
user.is_staff = True | |
user.save() | |
return user |
This file contains 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 | |
from distutils.core import setup | |
setup(name='zjh_appa', | |
version='1.0', | |
description='Test Application A', | |
author='Zellyn Hunter', | |
author_email='zellyn@gmail.com', | |
url='http://www.zellyn.com/example/appA/', |
These instructions install ruby and rubygems from source, not from RPMs. For instructions on installing from RPMs, look at something like http://wiki.opscode.com/display/chef/Installation+on+RHEL+and+CentOS+5+with+RPMs or http://mykestubbs.com/blog/2010/03/chef-installation-on-centos-54.html
This file contains 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
recursive-include media * |
wget -q –no-check-certificate -O - https://www.starbucks.com/card/manage/check-your-balance –post-data=”Card.Number=$CARD_NUMBER&Card.Pin=$CARD_PIN” –header=’X-Requested-With:XMLHttpRequest’ | sed -n ‘s|.*<span class=”fetch_balance_value”>\(.*\)</span>|\1|p’