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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Richard's Form</title> | |
<link rel="stylesheet" href="format.css" /> | |
</head> | |
<body> | |
<h1>Please enter some details of your issue below</h1> |
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($){ | |
var $et_window = $(window); | |
window.et_load_event_fired = false; | |
window.et_is_transparent_nav = $( 'body' ).hasClass( 'et_transparent_nav' ); | |
window.et_is_vertical_nav = $( 'body' ).hasClass( 'et_vertical_nav' ); | |
window.et_is_fixed_nav = $( 'body' ).hasClass( 'et_fixed_nav' ); | |
jQuery.fn.reverse = [].reverse; |
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
<?php | |
class Language { | |
public $language = ''; | |
public $phrases = array( | |
'UK' => array( | |
'hello' => 'Ello gov\'na ', | |
'goodbye' => 'Good day!' |
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(factory){"use strict";if(typeof define==="function"&&define.amd){define(["jquery"],factory)}else{factory(jQuery)}})(function($){"use strict";var instances=[],matchers=[],defaultOptions={precision:86400000,elapse:!1,defer:!1};matchers.push(/^[.source);matchers.push(/([0-9]{1,2}\/){2}[0-9]{4}( [0-9]{1,2}(:[0-9]{2}){2})?/.source);matchers.push(/[0-9]{4}([\/\-][0-9]{1,2}){2}( [0-9]{1,2}(:[0-9]{2}){2})?/.source);matchers=new RegExp(matchers.join("|"));function parseDateString(dateString){if(dateString instanceof Date){return dateString} | |
if(String(dateString).match(matchers)){if(String(dateString).match(/^[0-9]*$/)){dateString=Number(dateString)} | |
if(String(dateString).match(/\-/)){dateString=String(dateString).replace(/\-/g,"/")} | |
return new Date(dateString)}else{throw new Error("Couldnt cast `"+dateString+"` to a date object.")}} | |
var DIRECTIVE_KEY_MAP={Y:"years",m:"months",k:"monthsToYear",n:"daysToMonth",d:"daysToWeek",w:"weeks",W:"weeksToMonth",H:"hours",M:"minutes",S:"seconds",D:"totalDays",I:"totalHou |
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
/*! | |
* The Final Countdown for jQuery v2.2.0 (http://hilios.github.io/jQuery.countdown/) | |
* Copyright (c) 2016 Edson Hilios | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy of | |
* this software and associated documentation files (the "Software"), to deal in | |
* the Software without restriction, including without limitation the rights to | |
* use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | |
* the Software, and to permit persons to whom the Software is furnished to do so, | |
* subject to the following conditions: |
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
alter table <some_table> convert to character set utf8 collate utf8_unicode_ci; |
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
{ | |
"auto_close_tags": false, | |
"auto_complete": false, | |
"disable_completions": true, | |
"scroll_past_end": true, | |
"tab_completion": false, | |
"word_separators": "./\\()\"'-:,.;<>~!@%^&*|+=[]{}`~?", | |
"tab_size": 4, | |
"translate_tabs_to_spaces": true | |
"update_check": false, |
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
<?php | |
$res = file_get_contents('https://petition.parliament.uk/petitions/131215.json'); | |
$select = json_decode($res); | |
$output = array(); | |
$count = 0; |
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() { | |
if (window.location.pathname == '/mytrades') { | |
function log_message(message, color) { | |
var sm = $('#submenu'); | |
sm.prepend('<strong style="border-top: 1px solid white;width:188px;display:inline-block;padding:8px 0 8px 10px;color:white;background-color: ' + color + ';">' + message + '</strong><br />'); | |
console.log(message); | |
$('title').html(message); |
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
<?php | |
$regex = '/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/'; | |