Skip to content

Instantly share code, notes, and snippets.

View juliomenendez's full-sized avatar

Julio Carlos Menendez juliomenendez

View GitHub Profile
@juliomenendez
juliomenendez / AnimatedRegion
Created February 8, 2013 23:26
Backbone.Marionette.Region extended to animate changing its content.
var AnimatedRegion = Backbone.Marionette.Region.extend({
show: function(view) {
var that = this;
this.ensureEl();
this.close();
view.on('close', function() {
that.$el.addClass('transparent'); });
$.when(view.render()).then(function() {
that.open(view);
#!/bin/bash
GEOGRAPHY=0
POSTGIS_SQL=postgis.sql
POSTGIS_SQL_PATH=/usr/local/Cellar/postgis/2.0.1/share/postgis
# For Ubuntu 8.x and 9.x releases.
if [ -d "/usr/share/postgresql-8.3-postgis" ]
then
POSTGIS_SQL_PATH=/usr/share/postgresql-8.3-postgis
write-host "checking..."
# check for apache
$apache = scoop which httpd
if($lastexitcode -ne 0) { 'Apache isn''t installed. run ''scoop install apache'''; return }
# check for php
$php = scoop which php
if($lastexitcode -ne 0) { 'PHP isn''t installed. run ''scoop install php'''; return }