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
kschwen@kschwen-desktop:~/Dev/pida-main$ ./run-pida.py | |
/home/kschwen/Dev/pida-main/pida/resources/data/gtkrc-2.0:5: Unable to locate image file in pixmap_path: "terminal.png" | |
15:04:57 dbus.connection Exception in handler for D-Bus signal: | |
Traceback (most recent call last): | |
File "/var/lib/python-support/python2.6/dbus/connection.py", line 214, in maybe_handle_message | |
self._handler(*args, **kwargs) | |
File "/home/kschwen/Dev/pida-main/pida/editors/vim/vim.py", line 52, in vim_VimEnter | |
self.svc._emit_editor_started() | |
File "/home/kschwen/Dev/pida-main/pida/editors/vim/vim.py", line 141, in _emit_editor_started | |
self.boss.get_service('editor').emit('started') |
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/local/git/bin/git --git-dir=$myrepo/.git log --oneline | grep --color TODO | perl -e 'while(<>) { $i = $_; $i =~ s/\n/\n\n/; $i =~ s/^\w+/\*/g; print $i;}' |
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
function in_array(val, arr, sep){ | |
/* Takes an array, joins it using sep (default = '|'), then | |
* uses indexOf to test if val is in arr. Returns true or false. | |
*/ | |
if(!sep){ | |
var sep = "|"; | |
} | |
var join = ["", arr.join(sep), ""].join(sep); |
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
def apdate_to_datetime(date): | |
""" | |
Takes an AP-formatted date string and returns a Python datetime | |
object. This will also work on any date formatted as either | |
'%b. %d, %Y' or '%B %d, %Y' | |
Examples: | |
>>> apdate_to_datetime("Sept. 4, 1986") | |
datetime.datetime(1986, 9, 4, 0, 0) | |
>>> apdate_to_datetime("Sep. 4, 1986") |
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
Good day! | |
Check out | |
a marvelous search engine – | |
Warning: mysql_connect(): Too many connections in /var/www/html/helper.php on line 136 | |
P.S. Yahoo – everything will be found! Google: nothing was really lost… | |
Bye to everyone! |
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
# in toolbox/text.py: | |
def count_capital_words(str): | |
""" | |
Counts the number of capital words in a string and returns a % of ALL-CAPS WORDS. Issues with this: | |
"words" made up of non-letters get counted as all-caps (including emoticons: :(, :), 8===D, etc). Also, | |
CoMmEnTs lIkE tHiZ don't get counted. Perhaps a better solution would be to to use a regex to count all occurrences of | |
[A-Z]. This works decently though. | |
""" | |
count = 0 | |
words = str.split() |
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
Message from Randy Michaels/Lee Abrams Suspended | |
Tribune Communications | |
Sent: Wednesday, October 13, 2010 11:28 AM | |
I want to let you know that today we made the decision to suspend Lee Abrams from his position as Tribune’s Chief Innovation Officer. He will remain on suspension indefinitely and without pay while we review the circumstances surrounding the email and video link he distributed on Monday. We’re in the process of determining further disciplinary action. | |
Lee recognizes that the video was in extremely bad taste and that it offended employees—he has also apologized publicly. He reiterated those feelings again to me privately today. But, this is the kind of serious mistake that can’t be tolerated; we intend to address it promptly and forcefully. | |
As I said last week, a creative culture must be built on a foundation of respect. Our culture is not about being offensive or hurtful. We encourage employees to speak up when they see or hear something that they find offensive, as a number o |
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
The Boston Globe | |
1105 Government Information Group | |
11Alive | |
13WMAZ News | |
60 Minutes | |
A.Q. Miller School of Journalism and Mass Communications | |
Accent Online | |
ACLU Massachusetts | |
ACLU National Security Project | |
Adirondack Daily Enterprise |
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
https://fbcdn-sphotos-a.akamaihd.net/hphotos-ak-snc6/254057_10101100830683301_2024910_79469509_7840255_n.jpg |
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
This should get you there: | |
easy_install virtualenv | |
easy_install pip | |
virtualenv --no-site-packages elections | |
cd elections | |
. bin/activate | |
mkdir project | |
cd project | |
pip install python-elections |
OlderNewer