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
| From a819adabae87570827c475a0ad0d556f9b1e8517 Mon Sep 17 00:00:00 2001 | |
| From: Justin Quick <justquick@gmail.com> | |
| Date: Sun, 24 Jul 2011 13:09:43 -0400 | |
| Subject: [PATCH] fixed import loop errors in endless pag | |
| --- | |
| apps/endless_pagination/models.py | 11 ++++++----- | |
| 1 files changed, 6 insertions(+), 5 deletions(-) | |
| diff --git a/apps/endless_pagination/models.py b/apps/endless_pagination/models.py |
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 filter(callback, array){ | |
| // Given a callback function taking one argument and an array, | |
| // return a new array of items passing the callback check. | |
| // The callback function is called once per item in the array and must return true/false. | |
| var ra = new Array(); | |
| for(var i in array){ | |
| if (callback(array[i])) | |
| ra.push(array[i]); | |
| } | |
| return ra; |
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
| From 61dfc697ea2ca60218518e319f9b20fb973c0ee3 Mon Sep 17 00:00:00 2001 | |
| From: Justin Quick <justquick@gmail.com> | |
| Date: Sat, 6 Aug 2011 17:45:45 -0400 | |
| Subject: [PATCH] start of selenium test suite with runselenium management command. | |
| runtime options are set by SELENIUM_CONFIG so we can test in different environments easily | |
| --- | |
| apps/sel/management/commands/runselenium.py | 9 +++++++++ | |
| requirements.txt | 1 + | |
| settings.py | 3 ++- |
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
| from django.db.models.query import QuerySet | |
| from django.db.models import Manager | |
| from django.contrib.contenttypes.models import ContentType | |
| from django.contrib.contenttypes.generic import GenericForeignKey | |
| class GFKManager(Manager): | |
| """ | |
| A manager that returns a GFKQuerySet instead of a regular QuerySet. | |
| """ |
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
| #!/bin/bash | |
| if [ $1 = "done" ] | |
| then | |
| python -c 'import webbrowser; webbrowser.open("http://images.cheezburger.com/completestore/2010/9/13/43852ca1-5252-45de-84b9-10c5b0ce4e43.jpg")' | |
| fi |
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
| Install - OSX 10.6, Python 2.6.1 django-lint git clone | |
| Installed /Library/Python/2.6/site-packages/django_lint-0.0.0-py2.6.egg | |
| Processing dependencies for django-lint==0.0.0 | |
| Searching for pylint==0.25.0 | |
| Best match: pylint 0.25.0 | |
| Adding pylint 0.25.0 to easy-install.pth file | |
| Using /Library/Python/2.6/site-packages | |
| Searching for logilab-astng==0.23.0 |
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
| import time | |
| import gdata.spreadsheet.service | |
| import requests | |
| import sys | |
| client = gdata.spreadsheet.service.SpreadsheetsService() | |
| client.email = 'XXX@gmail.com' | |
| client.password = 'XXX' | |
| client.source = 'Example Spreadsheet Writing Application' |
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
| import os | |
| import sys | |
| import signal | |
| import json | |
| import requests | |
| from subprocess import call | |
| from time import time, sleep | |
| from itertools import chain | |
| try: | |
| from urllib import urlopen |
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
| "http://PRIORITY TOPICS FINANCING DCL—QUESTIONS ARE SURFACING. Questions began to surface about DCL funds in January when we learned the Lake Management Office is down to just one full time staff person, a mid-level Natural Resources Planner III who earns $62,025. Revenues for 2013 were $844,082. What has happened to the balance of the funds? Where are “our” Lake Management Funds? Barbara Beelar expressed her concern in recent Letter to the Editor. Http://friendsofdcl.org/2014/02/letter-to-the-editor-the-republican-newsletter-january-16-2014/ Background: Under the law, the Policy and Review Board “may review and advise” the DNR Secretary on budgetary matters. However, this task has been mostly overlooked since the creation of this Board. In response to recent questions, DNR provided to the PRB members a document, in anticipate of the January meeting, which was cancelled. (link) While we await Hoffman’s presentation on March 20, which you can hear via tele-confer |
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
| import haystack | |
| from django.core.management import call_command | |
| from django.test.utils import override_settings | |
| TEST_INDEX = { | |
| 'default': { | |
| 'ENGINE': 'haystack.backends.elasticsearch_backend.ElasticsearchSearchEngine', | |
| 'URL': 'http://127.0.0.1:9200/', |