I hereby claim:
- I am chrisforrette on github.
- I am chrisforrette (https://keybase.io/chrisforrette) on keybase.
- I have a public key whose fingerprint is 71E3 6087 35EE 9CF9 4B48 36D9 A617 6083 07EE C530
To claim this, I am signing this object:
# models.py | |
class Place(models.Model): | |
name = models.CharField(max_length=255, db_index=True) | |
slug = models.SlugField(max_length=255) | |
address = models.CharField(max_length=255) | |
place_type = models.ManyToManyField(PlaceType) | |
geo_pt = models.PointField(default="") | |
created = models.DateTimeField(auto_now_add=True) |
COMPILE SECONDARY VERSIONS OF PHP | |
THIS IS USING PHP 5.2 AS AN EXAMPLE | |
1. Back up original libphp5.so: | |
cd /usr/libexec/apache2 | |
sudo cp libphp5.so libphp5.so.bak | |
2. Create a version-specific config directory for php.ini | |
sudo mkdir /etc/php52 |
# LoadModule php5_module libexec/apache2/libphp5.so | |
LoadModule php5_module libexec/apache2/libphp52.so |
var p = 0; | |
function callMeOnScroll() { | |
$.get( | |
'/url/to/append/script/?p=' + p, | |
function(data) { | |
p++; | |
$('div#card listing_content').append(data); | |
} | |
) |
try: | |
from settings_local import * | |
except ImportError: | |
pass |
# Grab a Magento extension by the balls... I mean source. | |
wget http://connect.magentocommerce.com/core/get/Mage_Cybersource-1.1.2.tgz |
var fade = function() { | |
console.log('fade in'); | |
return box.fadeIn(1500); | |
}; | |
var width = function() { | |
console.log('width'); | |
return box.animate({'width': 500}, 1000); | |
}; |
(smartquote [s] | |
(-> s | |
(string/replace #"\"([^\"]*)\"" "“$1”") | |
(string/replace #"(^'|(\s)+')" "$2‘") | |
(string/replace #"'" "’"))) |
I hereby claim:
To claim this, I am signing this object:
var gulp = require('gulp'); | |
var mocha = require('gulp-mocha-phantomjs'); | |
var server = require('gulp-webserver'); | |
// Run tests in the command line | |
gulp.task('test', function() { | |
return gulp.src('./datu_dashboard/static/test/index.html') | |
.pipe(mocha({ | |
reporter: 'dot' |