Skip to content

Instantly share code, notes, and snippets.

Avatar

Christopher Grebs EnTeQuAk

View GitHub Profile
View gist:820186
diff --git a/djcelery/schedulers.py b/djcelery/schedulers.py
index cf17f3b..eaa5525 100644
--- a/djcelery/schedulers.py
+++ b/djcelery/schedulers.py
@@ -51,6 +51,13 @@ class ModelEntry(ScheduleEntry):
self.model.no_changes = True
return self.__class__(self.model)
+ def is_due(self):
+ """See :meth:`celery.task.base.PeriodicTask.is_due`."""
View gist:1145266
curl -XPOST 'http://127.0.0.1:9200/forum/post/_search' -d '{"query": {"filtered": {"filter": {"script": {"params": {"forums": [1, 2, 3, 4, 5, 6, 7, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23]}, "script": "forums contains doc[\"forum_pk\"].value"}}, "query": {"query_string": {"query": "forum_pk:2", "default_operator": "AND"}}}}, "explain": true}'
@EnTeQuAk
EnTeQuAk / gist:1162553
Created Aug 22, 2011
Redesign Checklist
View gist:1162553
[ ] Convert Twitter-Bootstrap to SCSS
[ ] Activate HTML5 Doctype
[ ] Remove Custom DTD-File, check that everything works
[ ] Create a preview page to give an overview about what is done and what must be done (http://twitter.github.com/bootstrap/ as an example)
[ ] Create new SCSS-Namespace, move old files and start hacking till the preview page looks fine
[ ] Check all other pages (Create automatic Link)
@EnTeQuAk
EnTeQuAk / gist:1164566
Created Aug 23, 2011 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away
View gist:1164566
Day job: Python Data Processing Developer
Favorite Python project: Flask
Favorite Conference: DjangoCon for now...
Python Experience Level: About 6 years
View gist:1224989
{
"query": {
"filtered": {
"filter": {
"or": [
{
"and": [
{
"type": {
"value": "article"
@EnTeQuAk
EnTeQuAk / 0_reuse_code.js
Created Nov 28, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@EnTeQuAk
EnTeQuAk / javascript_resources.md
Created Nov 28, 2013 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.
View javascript_resources.md

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@EnTeQuAk
EnTeQuAk / rails_resources.md
Created Nov 28, 2013 — forked from jookyboi/rails_resources.md
Rails-related Gems and guides to accelerate your web project.
View rails_resources.md

Gems

  • Bundler - Bundler maintains a consistent environment for ruby applications. It tracks an application's code and the rubygems it needs to run, so that an application will always have the exact gems (and versions) that it needs to run.
  • rabl - General ruby templating with json, bson, xml, plist and msgpack support
  • Thin - Very fast and lightweight Ruby web server
  • Unicorn - Unicorn is an HTTP server for Rack applications designed to only serve fast clients on low-latency, high-bandwidth connections and take advantage of features in Unix/Unix-like kernels.
  • SimpleCov - SimpleCov is a code coverage analysis tool for Ruby 1.9.
  • Zeus - Zeus preloads your Rails app so that your normal development tasks such as console, server, generate, and specs/tests take less than one second.
  • [factory_girl](h
@EnTeQuAk
EnTeQuAk / python_resources.md
Created Nov 28, 2013 — forked from jookyboi/python_resources.md
Python-related modules and guides.
View python_resources.md

Packages

  • lxml - Pythonic binding for the C libraries libxml2 and libxslt.
  • boto - Python interface to Amazon Web Services
  • Django - Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.
  • Fabric - Library and command-line tool for streamlining the use of SSH for application deployment or systems administration task.
  • PyMongo - Tools for working with MongoDB, and is the recommended way to work with MongoDB from Python.
  • Celery - Task queue to distribute work across threads or machines.
  • pytz - pytz brings the Olson tz database into Python. This library allows accurate and cross platform timezone calculations using Python 2.4 or higher.

Guides