Custom Directives Outside of a VirtualHost Tag
I created a copy of vhost.default
at /var/cpanel/templates/apache2
named vhost.local
, found the first line listed below and added the second line below it.
<!doctype html> | |
<html lang=en> | |
<head> | |
<meta charset=utf-8> | |
<title>Save URL Contents</title> | |
<style type="text/css"> | |
body | |
{ |
#----------------------------------# | |
# localtime() array reference # | |
#----------------------------------# | |
# 0 - seconds # | |
# 1 - minutes # | |
# 2 - hours # | |
# 3 - day of month # | |
# 4 - month # | |
# 5 - year # | |
# 6 - day of week # |
(function ($) | |
{ | |
$.styleExists = function (s) | |
{ | |
var exists = false; | |
var stylesheets = document.styleSheets; | |
for (var sx = 0, sl = stylesheets.length; sx < sl; sx += 1) | |
{ | |
var sheetclasses = stylesheets[sx].rules || document.styleSheets[sx].cssRules; |
barMargin = (150 * Math.exp(-0.15 * array.length)) |
public abstract class MyRESTResource : RESTResource | |
{ | |
protected JObject GetJsonPayload(HttpListenerRequest request) | |
{ | |
try | |
{ | |
string data = this.GetPayload(request); | |
if (!object.ReferenceEquals(data, null)) | |
{ | |
JObject json = JObject.Parse(data); |
(function ($, undef) | |
{ | |
// Function and variables defined in here that do not get | |
// attached to $ will be scoped to this function, effectively | |
// making them private. | |
$fn.plugin = function (options) | |
{ | |
options = $.extend($.plugin.options, options); |
Custom Directives Outside of a VirtualHost Tag
I created a copy of vhost.default
at /var/cpanel/templates/apache2
named vhost.local
, found the first line listed below and added the second line below it.
#!C:\lang\perl\bin\perl.exe | |
#!/usr/bin/perl -T | |
use strict; | |
use warnings; | |
use Fcntl qw(:flock); | |
use Try::Tiny; | |
use Cwd; | |
use JSON::PP; | |
package Example::User; | |
our $VERSION = '1.0.0'; | |
#########################################||######################################### | |
# # | |
# Example::User # | |
# © Copyright Information and Link To Authors Site Goes Here # | |
# # | |
#########################################||######################################### |
#!c:\lang\perl\bin\perl.exe | |
use strict; | |
use warnings; | |
use Fcntl qw(:DEFAULT :flock); | |
# How high you want to be teleported | |
my $y = 200; | |
# The x offset for the center of the map | |
my $offx = 1000; |