This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){ | |
| (function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){ | |
| /*! | |
| * The buffer module from node.js, for the browser. | |
| * | |
| * @author Feross Aboukhadijeh <[email protected]> <http://feross.org> | |
| * @license MIT | |
| */ | |
| var base64 = require('base64-js') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible " be iMproved, required | |
| filetype off " required | |
| " set the runtime path to include Vundle and initialize | |
| set rtp+=~/.vim/bundle/Vundle.vim | |
| call vundle#begin() | |
| " alternatively, pass a path where Vundle should install plugins | |
| "call vundle#begin('~/some/path/here') | |
| " let Vundle manage Vundle, required |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ecarroll ⋯ code postgis extensions svn-trunk make | |
| for DIR in postgis postgis_tiger_geocoder postgis_topology address_standardizer; do \ | |
| echo "---- Making all in ${DIR}"; \ | |
| make -C "${DIR}" all || exit 1; \ | |
| done | |
| ---- Making all in postgis | |
| make[1]: Entering directory '/home/ecarroll/code/postgis/extensions/postgis' | |
| mkdir -p sql_bits/ | |
| /usr/bin/perl -pe 's/BEGIN\;//g ; s/COMMIT\;//g' ../../postgis/postgis_for_extension.sql > sql_bits/postgis.sql | |
| make -C ../../doc comments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| make | |
| for DIR in postgis postgis_tiger_geocoder postgis_topology address_standardizer; do \ | |
| echo "---- Making all in ${DIR}"; \ | |
| make -C "${DIR}" all || exit 1; \ | |
| done | |
| ---- Making all in postgis | |
| make[1]: Entering directory '/home/ecarroll/code/postgis/extensions/postgis' | |
| cp ../../doc/postgis_comments.sql sql_bits/postgis_comments.sql | |
| make[1]: *** No rule to make target '../../raster/rt_pg/rtpostgis_for_extension.sql', needed by 'sql_bits/rtpostgis.sql'. Stop. | |
| make[1]: Leaving directory '/home/ecarroll/code/postgis/extensions/postgis' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TMPDIR="/gisdata/temp/" | |
| UNZIPTOOL=unzip | |
| WGETTOOL="/usr/bin/wget" | |
| export PGBIN=/usr/bin | |
| export PGPORT=5433 | |
| export PGDATABASE=rl | |
| PSQL=${PGBIN}/psql | |
| SHP2PGSQL=shp2pgsql | |
| cd /gisdata | |
| cd /gisdata |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TMPDIR="/gisdata/temp/" | |
| UNZIPTOOL=unzip | |
| WGETTOOL="/usr/bin/wget" | |
| export PGBIN=/usr/lib/postgresql/9.6/bin | |
| export PGPORT=5432 | |
| export PGHOST=localhost | |
| export PGUSER=postgres | |
| export PGPASSWORD=yourpasswordhere | |
| export PGDATABASE=geocoder | |
| PSQL=${PGBIN}/psql |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| TMPDIR="/gisdata/temp/" | |
| UNZIPTOOL=unzip | |
| WGETTOOL="/usr/bin/wget" | |
| export PGBIN=/usr/bin | |
| export PGPORT=5433 | |
| export PGDATABASE=rl | |
| PSQL=psql | |
| SHP2PGSQL=shp2pgsql | |
| cd /gisdata |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Session 1 | |
| ==== | |
| Will sleep for 5 seconds giving you time to launch TXN2. | |
| DROP TABLE foo; | |
| CREATE TABLE foo(x) AS | |
| VALUES (1),(2),(3); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| export PGROOT=/home/ecarroll/code/postgres/ | |
| gcc \ | |
| -I "$PGROOT/src/include/" \ | |
| -I "$PGROOT/src/interfaces/ecpg" \ | |
| -I "$PGROOT/src/interfaces/ecpg/include" \ | |
| ./test.c \ | |
| -o a.out |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function f() { | |
| let counter = 0; | |
| return function () { | |
| counter = counter + 1; | |
| return function () { return counter } | |
| } | |
| } | |
| Explain what the above code does and how we can use it. |