View index.html
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://code.jquery.com/jquery-2.1.4.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<form id="form" action="/"> | |
View validate.js
/** | |
* @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. | |
* @license GNU General Public License version 2 or later; see LICENSE.txt | |
*/ | |
/** | |
* Unobtrusive Form Validation library | |
* | |
* Inspired by: Chris Campbell <www.particletree.com> | |
* |
View gist:7325506
var point = { | |
x: 34.7188611, | |
y: -86.6465455 | |
}; | |
var polygon = { | |
sides: [ | |
{ | |
x: 34.719670722086796, | |
y: -86.64598882198334 |
View gist:7253096
(function( $, undefined ) { | |
$.widget("ui.mouse", $.ui.mouse, { | |
options: { | |
distanceX: 0, | |
distanceY: 0 | |
}, | |
_mouseDistanceMet: function(event) { | |
if ((this.options.distanceX != 0) || (this.options.distanceY != 0)) { | |
return (Math.abs(this._mouseDownEvent.pageX - event.pageX) >= this.options.distanceX) && (Math.abs(this._mouseDownEvent.pageY - event.pageY) >= this.options.distanceY); |
View gdb.txt
GNU gdb (GDB) 7.5.91.20130417-cvs-ubuntu | |
Copyright (C) 2013 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law.Type "show copying" | |
and "show warranty" for details. | |
This GDB was configured as "i686-linux-gnu". | |
For bug reporting instructions, please see: | |
<http://www.gnu.org/software/gdb/bugs/>... | |
Reading symbols from /usr/lib/apache2/mpm-prefork/apache2...done. |
View php5-fpm.joomla.conf
;/etc/php5/fpm/pool.d/joomla.conf | |
[joomla] | |
user = joomla | |
group = joomla | |
listen = /var/run/php5-fpm.joomla.sock | |
pm = dynamic | |
pm.max_children = 10 | |
pm.start_servers = 4 | |
pm.min_spare_servers = 2 | |
pm.max_spare_servers = 6 |
View nginx.joomla.conf
#/etc/nginx/sites-available/joomla | |
server { | |
server_name localhost; | |
root /usr/share/nginx/joomla; | |
index index.php index.html; | |
location / { | |
try_files $uri $uri/ /index.html; | |
} | |
location ~ \.php$ { | |
try_files $uri =404; |
View LEMP.sh
#!/bin/sh | |
#Make sure we have the latest version of everything | |
apt-get update | |
apt-get upgrade | |
#install LEMP | |
apt-get install nginx mysql-server php5-common php5-mysql php5-fpm php5-suhosin | |
#configure MySQL |