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
-- phpMyAdmin SQL Dump | |
-- version 4.1.6 | |
-- http://www.phpmyadmin.net | |
-- | |
-- Host: localhost | |
-- Generation Time: Jun 28, 2014 at 06:05 PM | |
-- Server version: 5.5.34-0ubuntu0.13.04.1 | |
-- PHP Version: 5.5.13-2+deb.sury.org~precise+1 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
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 utils = {}; | |
utils.getString = function (func) { | |
var result = func(); | |
if (typeof result !== "undefined") { | |
return result; | |
} | |
var re = /<string[^>]*>([\s\S]*?)<\/string>/ig; |
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 hehe = function(){ | |
function uniqueArray(minRange, maxRange, arrayLength) { | |
var arrayLength = (arrayLength) ? arrayLength : 10 | |
var minRange = (minRange !== undefined) ? minRange : 1 | |
var maxRange = (maxRange !== undefined) ? maxRange : 100 | |
var numberOfItemsInArray = 0 | |
var hash = {} | |
var array = [] |
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 | |
namespace YourBundle\OwnNamespace\Monolog\Formatter; | |
use Monolog\Formatter\NormalizerFormatter; | |
/** | |
* Class CloudWatchFormatter | |
* @author Chris Bednarczyk <bordeux> | |
* @package YourBundle\OwnNamespace\Monolog\Formatter |
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
1. !0 | |
2. function(){return 'true';} | |
3. !0 | |
4. 0 | |
5. 𪒧 | |
6. $GLOBALS[v] = create_function('', 'return $GLOBALS[v];') | |
7. (object)[!0] | |
8. new class extends Bar{} | |
9. N //or NaN (if you do not like errors) | |
10. function(&$x){$x=new Bar(1);} |
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 | |
return [ | |
'AF' => 'AFN', | |
'AL' => 'ALL', | |
'DZ' => 'DZD', | |
'AS' => 'USD', | |
'AD' => 'EUR', | |
'AO' => 'AOA', | |
'AI' => 'XCD', | |
'AQ' => 'XCD', |
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
<?xml version="1.0"?> | |
<ruleset name="TourRadar"> | |
<rule ref="PSR1" /> | |
<rule ref="PSR2" /> | |
<rule ref="PSR12" /> | |
<rule ref="Generic.PHP.ForbiddenFunctions"> | |
<properties> | |
<property name="forbiddenFunctions" type="array" value="sizeof=>count,delete=>unset,print=>null,echo=>null,is_null=>null,create_function=>null,var_dump=>null,eval=>null"/> |
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
const int96ToDate = value => { | |
const linuxEpoch = 2_440_588; | |
const bigInt = BigInt(value); | |
const julianCalendarDays = Number(bigInt >> BigInt(8 * 8)); | |
const time = Number( | |
BigInt(bigInt & BigInt('0xFFFFFFFFFFFFFFFF')) / BigInt(1_000_000) | |
); | |
const date = new Date(); | |
date.setUTCFullYear(1970, 0, 1); |