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
{ | |
"version": "0.2.0", | |
"configurations": [ | |
{ | |
"type": "node", | |
"request": "launch", | |
"name": "Jest single run all tests", | |
"program": "${workspaceRoot}/node_modules/jest/bin/jest.js", | |
"args": [ | |
"--verbose", |
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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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
//source https://tdanemar.wordpress.com/2010/08/24/jquery-serialize-method-and-checkboxes/ | |
//added selector option | |
(function ($) { | |
$.fn.serialize = function (options) { | |
return $.param(this.serializeArray(options)); | |
}; | |
$.fn.serializeArray = function (options) { | |
var o = $.extend({ |
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
<?php | |
function getHeaders( $header_name = null ) { | |
$headervals = ""; | |
$keys = array_keys( $_SERVER ); | |
if ( is_null( $header_name ) ) { | |
$headers = preg_grep( "/^HTTP_(.*)/si", $keys ); | |
} else { | |
$header_name_safe = str_replace( "-", "_", strtoupper( preg_quote( $header_name ) ) ); | |
$headers = preg_grep( "/^HTTP_${header_name_safe}$/si", $keys ); |
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
<?php | |
$NorthAmericanCountryCodes = array( | |
"AG", | |
"BS", | |
"BB", | |
"BZ", | |
"CR", | |
"CU", | |
"DM", | |
"DO", |