ralph:~ ralphsaunders$ brew install postgresql ==> Downloading http://ftp.postgresql.org/pub/source/v9.2.1/postgresql-9.2.1.tar.bz2 Already downloaded: /Users/ralphsaunders/Library/Caches/Homebrew/postgresql-9.2.1.tar.bz2 ==> Patching patching file src/pl/plpython/Makefile patching file contrib/uuid-ossp/uuid-ossp.c ==> ./configure --prefix=/usr/local/Cellar/postgresql/9.2.1 --datadir=/usr/local/Cellar/postgresql/9.2.1/share/postgresql --docdir=/usr/local/C checking for inflate in -lz... no configure: error: zlib library not found If you have zlib already installed, see config.log for details on the
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<title>Canvas Stuff</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<script type="text/javascript" src="./scripts.js"></script> | |
</head> | |
<body id="index"> | |
<canvas id="canvas" width="900" height="900"> | |
<!-- Fallback men, fallback! --> |
This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<title>Index</title> | |
<script type="text/javascript"> | |
var _gaq = _gaq || []; // GA array to push to | |
/** |
This file contains 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
# Authored by Seth Bling | |
# http://www.youtube.com/watch?v=3YaoSAaou7U | |
def perform(level, box, options): | |
groups = RedstoneGroups(level) | |
for x in xrange(box.minx, box.maxx): | |
for y in xrange(box.miny, box.maxy): | |
for z in xrange(box.minz, box.maxz): | |
groups.testblock((x, y, z)) |
This file contains 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
/** | |
* This is my array, let's call him larry | |
* | |
* array(1) { | |
* ["canvas-snake"]=> | |
* array(5) { | |
* ["name"]=> | |
* string(12) "canvas-snake" | |
* ["server_path"]=> | |
* string(48) "/Applications/MAMP/htdocs/pl/posted/canvas-snake" |
This file contains 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
|~posted/ | |
|~articles/ | |
|~an-article/ | |
|-index.html | |
|-image.png | |
`-styles.css | |
|~another-article/ | |
|-index.html | |
`-styles.css | |
|~portfolio/ |
ralph:~ ralphsaunders$ brew install postgresql
==> Downloading http://ftp.postgresql.org/pub/source/v9.2.1/postgresql-9.2.1.tar.bz2
Already downloaded: /Users/ralphsaunders/Library/Caches/Homebrew/postgresql-9.2.1.tar.bz2
==> Patching
patching file src/pl/plpython/Makefile
patching file contrib/uuid-ossp/uuid-ossp.c
==> ./configure --prefix=/usr/local/Cellar/postgresql/9.2.1 --datadir=/usr/local/Cellar/postgresql/9.2.1/share/postgresql --docdir=/usr/local/C
checking for inflate in -lz... no
configure: error: zlib library not found
If you have zlib already installed, see config.log for details on the
ralph:~ ralphsaunders$ sudo psql postgres -c 'CREATE EXTENSION "adminpack";'
Password:
psql: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/var/pgsql_socket/.s.PGSQL.5432"?
ralph:lib ralphsaunders$ ps auxw | grep postgres
ralphsaunders 87696 0.0 0.0 2455456 592 ?? Ss 2:16am 0:00.08 postgres: writer process
ralphsaunders 87695 0.0 0.0 2455456 552 ?? Ss 2:16am 0:00.00 postgres: checkpointer process
ralphsaunders 87693 0.0 0.2 2455456 6300 ?? S 2:16am 0:00.02 /usr/local/bin/postgres -D /usr/local/var/postgres -r /usr/local/var/postgres/server.log
This file contains 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
core.chunk = function (array, chunkSize) { | |
/// <summary> | |
/// Splits a given array into separate arrays of the given chunkSize | |
/// </summary> | |
/// <param name="array" type="array"></param> | |
/// <param name="chunkSize" type="number"></param> | |
/// <returns type="array"></returns> | |
var count = 1; | |
var newArray = []; | |
var limit = chunkSize; |
This file contains 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
var ginn = (function(){ | |
window.addEventListener('scroll', function(e) { | |
document.body.scrollHeight = e.pageY + 100000 + 'px'; | |
}); | |
window.dispatchEvent(scroll); | |
})(); |
OlderNewer