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
manage.py:4:20: E261 at least two spaces before inline comment | |
Separate inline comments by at least two spaces. | |
An inline comment is a comment on the same line as a statement. Inline | |
comments should be separated by at least two spaces from the statement. | |
They should start with a # and a single space. | |
Okay: x = x + 1 # Increment x | |
Okay: x = x + 1 # Increment x | |
E261: x = x + 1 # Increment x |
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
/* Estructura y Datos de las Regiones, Provincias */ | |
/* y Comunas de Chile. */ | |
/* */ | |
/* Fecha: Julio 2010 */ | |
/* Autor: Juan Pablo Aqueveque - juque.cl */ | |
-- | |
-- Comunas | |
-- | |
DROP TABLE IF EXISTS `comunas`; |
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
# Based on code here: http://westhoffswelt.de/blog/0036_xpath_to_select_html_by_class.html | |
$x('//a[@class | |
and ( | |
contains(normalize-space(@class), " q ") | |
or starts-with(normalize-space(@class), "q ") | |
or substring(normalize-space(@class), string-length(normalize-space(@class)) - string-length("q")) = " q" | |
or @class = "q" | |
) |
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 | |
# encoding: utf-8 | |
""" Create a symlink of the current .git inside your Dropbox, now all your | |
local commits will automatically be backed up to Dropbox (without your dropbox | |
being littered with development cruft, like temporary build files) | |
""" | |
from os import getcwd, path, mkdir, symlink, chdir |
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
root@precision:/home/tzury/Desktop# python i18n.py | |
Te AMO | |
ERROR:root:i18n.html code: | |
1 def _execute(): | |
2 _buffer = [] | |
3 _tmp = _("I love you") | |
4 if isinstance(_tmp, str): _buffer.append(_tmp) | |
5 elif isinstance(_tmp, unicode): _buffer.append(_tmp.encode('utf-8')) | |
6 else: _buffer.append(str(_tmp)) | |
7 _buffer.append('\n') |
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
# Template: A.html | |
<html> | |
<head></head> | |
<body> | |
{% block hello %} | |
HELLO | |
{% endblock %} | |
</body> | |
</html> |
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 | |
FILES=`find -iname *.txt -print` | |
for FILE in $FILES | |
do | |
# replace the + to # chars | |
sed -i -r 's/^([+]{4})\s/#### /' $FILE | |
sed -i -r 's/^([+]{3})\s/### /' $FILE | |
sed -i -r 's/^([+]{2})\s/## /' $FILE | |
sed -i -r 's/^([+]{1})\s/# /' $FILE | |
sed -i -r 's/(\[php\])/<?php/' $FILE |
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
############################## django-auth-ldap ############################## | |
import ldap | |
from django_auth_ldap.config import LDAPSearch, PosixGroupType | |
# django-auth-ldap configuration starts here | |
AUTH_LDAP_SERVER_URI = "ldap://ldap.els03.loc ldap://ldap.zbw03.loc ldap://ldap.cvg03.loc" | |
#AUTH_LDAP_USER_DN_TEMPLATE = "uid=%(user)s,ou=People,o=loc" | |
# JW is in ou=Admin,o=loc so we search over o=loc to find him | |
AUTH_LDAP_USER_SEARCH = LDAPSearch("o=loc", |
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
@font-face { | |
font-family: 'Open Sans'; | |
font-style: italic; | |
font-weight: 400; | |
src: local('Open Sans Italic'), local('Open-Sans-Italic'), | |
url('OpenSans-Italic.woff') format('woff'), | |
url('OpenSans-Italic.ttf') format('truetype'); | |
} | |
@font-face { |
OlderNewer