Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
from bs4 import BeautifulSoup
import fnmatch
import os
import re
def Page(object):
def __init__(self, filename):
self.filename = filename
<block type="core/template" name="home_banners" after="-" template="page/banners.phtml">
</block>
<cms_index_index>
<update handle="home_banners" />
</cms_index_index>
<block type="cms/block" name="BLOCK_NAME" after="cart_sidebar">
<action method="setBlockId"><block_id>IDENTIFIER</block_id></action>
</block>
error: object file .git/objects/f1/bbef741377b03989f7216b4dcf714963706c8e is empty
error: unable to find f1bbef741377b03989f7216b4dcf714963706c8e
error: object file .git/objects/f1/bbef741377b03989f7216b4dcf714963706c8e is empty
fatal: loose object f1bbef741377b03989f7216b4dcf714963706c8e (stored in .git/objects/f1/bbef741377b03989f7216b4dcf714963706c8e) is corrupt
[edward@eddarch ~]$ cat ~/.asoundrc
#pcm.!default{
# type hw
# card 1
# device 9
#}
pcm.!default{
type hw
card 0
device 0
@EdwardIII
EdwardIII / c.js
Created September 30, 2012 17:49
console.log($('#person-sign-up #id_name').length);
$('#person-sign-up').validate({
rules: {
"id_name": 'required'
}
})
@EdwardIII
EdwardIII / c.js
Created September 30, 2012 17:49
console.log($('#person-sign-up #id_name').length);
$('#person-sign-up').validate({
rules: {
"id_name": 'required'
}
})
[edward@archxps mysite]$ git merge products-layout
Updating 49e8fba..1ce6e08
Fast-forward
.htaccess | 2 +-
call-me-back.html | 69 ++++++++++++++++++++++++++
favicon.ico | Bin 0 -> 1549 bytes
<snip etc...>
def new(request):
if request.method == 'POST':
print request.POST
form = PersonForm(request.POST, request.FILES)
if form.is_valid():
from django.contrib.auth.models import User
person = form.save(commit=False)
#TODO: Could this be encapsulated inside the Person object? *Should* it be?
#temp_password = User.objects.make_random_password()
auto_username = hashlib.md5(person.email.lower().strip()).hexdigest()[:30]
def new(request):
if request.method == 'POST':
print request.POST
form = PersonForm(request.POST, request.FILES)
if form.is_valid():
from django.contrib.auth.models import User
person = form.save(commit=False)
#TODO: Could this be encapsulated inside the Person object? *Should* it be?
#temp_password = User.objects.make_random_password()
auto_username = hashlib.md5(person.email.lower().strip()).hexdigest()[:30]