Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
*.3gp | |
*.3gpp | |
*.asf | |
*.asx | |
*.avi | |
*.bak | |
*.bin | |
*.deb | |
*.dll | |
*.dmg |
<?php | |
/* | |
Plugin Name: TH Shipping Options | |
Plugin URI: NA | |
Description: TH Shipping Options plugin | |
Version: 1.0.0 | |
Author: Vj | |
Author URI: www.wooforce.com | |
*/ |
body { | |
font: 100%/1.25 sans-serif; | |
color: #636363; | |
padding: 1em; | |
} | |
table { | |
width: 100%; | |
margin: 0; | |
border-top: 1px solid #e4e2e8; |
from django.db import connection | |
from django.conf import settings | |
cursor = connection.cursor() | |
cursor.execute('SHOW TABLES') | |
results=[] | |
for row in cursor.fetchall(): | |
results.append(row) | |
for row in results: | |
cursor.execute('ALTER TABLE %s CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;' % (row[0])) |
Update: please note that I have since switched to using a set of bash scripts instead of poluting the Git repository with git svn
.
Author: Kaspars Dambis
kaspars.net / @konstruktors
#!/usr/bin/env bash | |
# args | |
MSG=${1-'deploy from git'} | |
BRANCH=${2-'trunk'} | |
# paths | |
SRC_DIR=$(git rev-parse --show-toplevel) | |
DIR_NAME=$(basename $SRC_DIR) | |
DEST_DIR=~/svn/$DIR_NAME/$BRANCH |
<?php | |
/** | |
* IssuuClient hooks into Issuu's API | |
* | |
* example: | |
* include 'IssuuClient.php'; | |
* $issuu = new IssuuClient(pubKey, privKey, apiAdr); | |
* $issuu->openAction('issuu.document.url_upload'); | |
* $issuu->slurpUrl = 'pdfurl.pdf'; | |
* $issuu->executeAction(); |