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 is a CasperJS script. | |
* | |
* It try to authenticate so the session cookie can be stored in current profile | |
* and then BackstopJS+CasperJS+SlimerJS can use the same cookie during tests. | |
* | |
* Scenario | |
* ======== | |
* |
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
# -*- coding: utf-8 -*- | |
""" | |
This should enforce relative @import using the full path in sass files | |
Problem is, Compass resolve relative path as relative to the current file even into sass libraries. | |
'libsass' does not do that and allways resolves relative path to the current sass source file directory. | |
So some sass library like Foundation use the way from Compass do (and like node-sass seems to do also with some sugar). |
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
/* | |
* Sample app Javascript initializer to demonstrate usage of 'mediaquery-watcher.jquery.js' | |
*/ | |
$(document).ready(function($) { | |
// Init MediaQuery watcher | |
$('#watch-for-current-mquery').initCurrentMediaQuery(); | |
$('#watch-for-current-mquery').watchForCurrentMediaQuery(); | |
/* | |
* Initialize Foundation after all event is binded |
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
/** | |
* Grunt config | |
*/ | |
module.exports = function(grunt) { | |
var project_dir = 'project/', | |
static_dir = project_dir+'webapp_statics/', | |
asset_manifest = grunt.file.readJSON(project_dir+'assets.json'), | |
prepend_staticdir = function(file_map) { | |
for(var keyname in file_map){ | |
var distkey = static_dir+keyname; |
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
<?xml version='1.0' encoding='UTF-8'?> | |
<systems> | |
<system key="atari2600" name="Atari 2600"> | |
<extensions> | |
<extension>a26</extension> | |
</extensions> | |
<download_links> | |
<link>http://www.planetemu.net/roms/atari-2600</link> | |
</download_links> | |
</system> |
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
@import "compass/css3"; | |
@import "compass/css3/shared"; | |
// For more information see https://gist.github.com/cimmanon/727c9d558b374d27c5b6 | |
// NOTE: | |
// ----- | |
// All mixins for the @box spec have been written assuming they'll be fed property values that | |
// correspond to the standard spec. Some mixins can be fed values from the @box spec, but don't |
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
""" | |
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 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 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 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 |