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
| """ | |
| Testing watchdog (mostly for OSX) | |
| * Create a directory into your virtual environment, like "taiste"; | |
| * Go into this directory; | |
| * Put this script into this directory; | |
| * Run it with: python watchit.py | |
| * Add files, edit files, remove files; | |
| * See the logs if events are showed for changes you do previously on your files; | |
| * Exit from the script when you are done using CTRL+C (or CMD+C on OSX); |
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 e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
| (function() { | |
| var DragAndDropHandler, DragElement, HitAreasGenerator, Position, VisibleNodeIterator, node_module, | |
| __hasProp = {}.hasOwnProperty, | |
| __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; }; | |
| node_module = require('./node'); | |
| Position = node_module.Position; |
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
| [ | |
| ["sites", { | |
| "comments": "django.contrib.sites: standalone", | |
| "use_natural_key": true, | |
| "models": "sites" | |
| }], | |
| ["auth", { | |
| "comments": "django.contrib.auth [user and groups, no perms]: standalone", | |
| "use_natural_key": true, |
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, datetime | |
| from django.conf import settings | |
| from django.template.base import TemplateDoesNotExist | |
| from django.template.loader import find_template_loader | |
| def get_template_lastmod_date(template_name): | |
| """ | |
| Get the last modification time of the used template, this probably work only | |
| with filesystem and apps template loaders |
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
| /* | |
| * Emencia Site Analyzer, a PhantomJS script | |
| * (built with PhantomJS 1.9.7) | |
| * | |
| * | |
| * Crawl pages from a flat sitemap from a JSON, each page is analyzed on the | |
| * network traffic for its ressources and eventually report raised Javascript error | |
| * | |
| * | |
| * - Take one required argument that is the filepath to a JSON file (called the |
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
| --- foundation5/bower_components/foundation/scss/foundation/components/_global.scss | |
| +++ foundation5/bower_components/foundation/scss/foundation/components/_global.scss.patch | |
| @@ -11,8 +11,8 @@ | |
| // styles get applied to [data-mysite-plugin], etc | |
| $namespace: false !default; | |
| -// Control the inclusion of experimental properties | |
| -$experimental: true !default; | |
| +/*// Control the inclusion of experimental properties | |
| +$experimental: true !default;*/ |
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
| /* | |
| * jQuery Plugin to change various content (images, text, css) on various | |
| * element from a menu | |
| * | |
| * by default the loading spinner usage needs to hide the menu and display the spinner, | |
| * this is at your responsability in your CSS, also it's yours to provide the | |
| * spinner (as an image, background CSS, etc.. as you like) | |
| * | |
| * Usage sample : | |
| * |
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
| diff -U 4 -N -r zinnia/admin/entry.py zinnia_patch/admin/entry.py | |
| --- zinnia/admin/entry.py 2013-09-10 22:19:42.897479915 +0200 | |
| +++ zinnia/admin/entry.py 2013-09-10 21:48:27.336230712 +0200 | |
| @@ -323,8 +323,11 @@ | |
| '', | |
| url(r'^autocomplete_tags/$', | |
| self.admin_site.admin_view(self.autocomplete_tags), | |
| name='zinnia_entry_autocomplete_tags'), | |
| + url(r'^ckeditor/$', | |
| + self.admin_site.admin_view(self.ckeditor), |
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/bin/env python | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Simple strings extractor from a Photoshop XMP file | |
| It extract all <photoshop:LayerText/> text from the document then output it in a file. | |
| """ | |
| import os | |
| from xml.etree.ElementTree import ElementTree as ET |
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
| # -*- coding: utf-8 -*- | |
| from django.template import Library | |
| register = Library() | |
| @register.filter | |
| def truncatestring(value, limit=125): | |
| """ | |
| Coupe une chaine après un certains nombre de caractères | |