[color]
diff = auto
status = auto
branch = auto
[user]
name = Your Name
{% if is_paginated %} | |
{% load i18n %} | |
<ul class="pagination"> | |
<li{% if not page_obj.has_previous %} class="disabled"{% endif %}><a href="{% if not page_obj.has_previous %}#{% else %}?page={{ page_obj.previous_page_number }}{{ getvars }}{% endif %}">«</a></li> | |
{% if show_first %} | |
<li><a href="?page=1{{ getvars }}">1</a></li> | |
<li><span>...</span></li> | |
{% endif %} |
from django.views.generic.base import ContextMixin | |
from django.contrib.admin.utils import NestedObjects | |
class RelatedObjectsMixin(ContextMixin): | |
"""Adds the related_objects list to a views context """ | |
def get_context_data(self, **kwargs): | |
context = super(RelatedObjectsMixin, self).get_context_data(**kwargs) | |
collector = NestedObjects(using='default') |
-- 1. Place in ~/Library/Scripts and enable the Applescript menu via the Applescript Editor | |
-- (Or export to .app to run from spotlight.) | |
-- 2. Set domainName, vpnGroup and securePassword to their correct values for your VPN server and password | |
-- 3. Open Security & Privacy System Preferences, go to Privacy, Accessibility | |
-- 4. Enable Applescript Editor and System UI Server (or for this .app if so exported) | |
-- 5. Trigger script from the menu (or run from spotlight) | |
-- 6. Enjoy being connected | |
-- 7. Run script again to close connection | |
/** | |
* MEDIA QUERY VARIABLES | |
* ------------------------------------------------------------------------- */ | |
$tablet_landscape_width: "1024px"; | |
$tablet_portrait_width: "768px"; | |
$phone_landscape_width: "667px"; | |
$phone_portrait_width: "375px"; | |
/** | |
Mixin for Media Queries |
windows: | |
- name: pears | |
root: ~/Sites/oeie/pears | |
layout: main-vertical | |
panes: | |
- workon pears | |
- workon pears && ./manage.py rqworker default low | |
- workon pears && ./manage.py runserver | |
- gulp |
These are the steps I took when migrating from OSX 10.5 Leopard to 10.6.2 Snow Leopard.
Copied all my data folders in my home direcotry to an external hard drive. The direcotries in my home folder that I copied over were; Documents, Dropbox, Library, Movies, Music, Pictures, Public, Sites, code, scripts
.
/* | |
Test if the current version meets the required version number. | |
Examples: | |
Basic Usage | |
if (is_required_version("1.2.6", "1.1.3") === false) { | |
alert("This script requires version 1.2.6 and the current script's version is 1.1.3"); |