Title: PostGIS 2.0 Cheatsheet CSS : css/cheaters.css
Permalink to PostGIS 2.0 Cheatsheet
PostgreSQL PostGIS Geometry/Geography/Box Types |
---|
/* The Grid ---------------------- */ | |
.lt-ie9 .row { width: 940px; max-width: 100%; min-width: 768px; margin: 0 auto; } | |
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; } | |
.lt-ie9 .row.large-collapse .column, | |
.lt-ie9 .row.large-collapse .columns { padding: 0; } | |
.lt-ie9 .row .row { width: auto; max-width: none; min-width: 0; margin: 0 -15px; } | |
.lt-ie9 .row .row.large-collapse { margin: 0; } | |
.lt-ie9 .column, .lt-ie9 .columns { float: left; min-height: 1px; padding: 0 15px; position: relative; } | |
.lt-ie9 .column.large-centered, .columns.large-centered { float: none; margin: 0 auto; } |
namespace :site do | |
desc "Middleman build" | |
task :build do | |
puts "Building site..." | |
puts `bundle exec middleman build --verbose` | |
end | |
desc "Build, deploy, bust cache" | |
task :deploy => ["site:build", "s3:deploy", "fastly:bust_cache"] |
Title: PostGIS 2.0 Cheatsheet CSS : css/cheaters.css
Permalink to PostGIS 2.0 Cheatsheet
PostgreSQL PostGIS Geometry/Geography/Box Types |
---|
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON( 'package.json' ), | |
ember_handlebars: { | |
options: { | |
processName: function(filePath) { | |
var shortFilePath = filePath.replace(/assets\/js\/app\/templates\//, '').replace('.hbs', ''); | |
return shortFilePath; | |
}, |
module.exports = function() { | |
var mongoose = require('mongoose'), | |
Schema = mongoose.Schema; | |
var _schema = new Schema({ | |
name: { type: String, trim: true, required: true }, | |
kitchen: { type: Schema.ObjectId, ref: 'Kitchen' }, | |
users: [{ | |
user: { type: Schema.ObjectId, ref: 'User' }, |
#!/bin/bash | |
# Created on 7/17/13 by Ryan Sechrest | |
# Deploys pushed branch from the origin repository to the web directory | |
if [[ (-n $1) && (-n $2) && (-n $3) ]]; then | |
# Set path to project directory | |
project_path="/var/www/domains/$2/$3" |
#!/bin/bash | |
# Created on 10/8/13 by Ryan Sechrest | |
# site (localhost edition) | |
# Program to mirror a directory and database of a website between two servers. | |
### Program meta data |
# Call scopes directly from your URL params: | |
# | |
# @products = Product.filter(params.slice(:status, :location, :starts_with)) | |
module Filterable | |
extend ActiveSupport::Concern | |
module ClassMethods | |
# Call the class methods with names based on the keys in <tt>filtering_params</tt> | |
# with their associated values. For example, "{ status: 'delayed' }" would call |
# config/routes.rb | |
resources :documents do | |
scope module: 'documents' do | |
resources :versions do | |
post :restore, on: :member | |
end | |
resource :lock | |
end | |
end |
# IN AMAZON EC2 SERVER # | |
######################## | |
sudo su | |
apt-get -y update && apt-get -y upgrade | |
apt-get install vim git-core curl openssh-server openssh-client python-software-properties build-essential zlib1g-dev libssl-dev libreadline-gplv2-dev libcurl4-openssl-dev aptitude | |
/usr/sbin/groupadd wheel | |
/usr/sbin/visudo | |
(paste bottom) | |
%wheel ALL=(ALL) ALL |