Title: PostGIS 2.0 Cheatsheet CSS : css/cheaters.css
Permalink to PostGIS 2.0 Cheatsheet
PostgreSQL PostGIS Geometry/Geography/Box Types |
---|
<?php | |
/** | |
* @file | |
* Sets up a custom filter that enables custom shortcodes. | |
*/ | |
/** | |
* Implementation of hook_filter_info() | |
*/ | |
function custom_shortcodes_filter_info() { |
source "https://rubygems.org" | |
gem "sinatra" | |
gem "haml" | |
gem "rsvg2" |
# 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 |
# config/routes.rb | |
resources :documents do | |
scope module: 'documents' do | |
resources :versions do | |
post :restore, on: :member | |
end | |
resource :lock | |
end | |
end |
# 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 |
#!/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 |
#!/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" |
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' }, |
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; | |
}, |
Title: PostGIS 2.0 Cheatsheet CSS : css/cheaters.css
Permalink to PostGIS 2.0 Cheatsheet
PostgreSQL PostGIS Geometry/Geography/Box Types |
---|