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" encoding="UTF-8"?> | |
<phpunit | |
colors="true" | |
processIsolation="false" | |
stopOnFailure="false" | |
syntaxCheck="false" | |
bootstrap="./tests/bootstrap.php" | |
backupGlobals="true" | |
> |
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
git fetch upstream | |
git reset --hard upstream/master |
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> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
<script> | |
var authorizeUrl = 'http://example.com/oauth/authorize?'; | |
var accessTokenValidatorUrl = 'http://example.com/user-info'; | |
var scope = 'basic email'; | |
var clientId = 'client_id'; | |
var redirectUrl = 'http://localhost:8081'; |
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 | |
/** | |
* @author: Sohel Rana <me.sohelrana.me> | |
* @author URI: http://blog.sohelrana.me | |
* @licence; MIT | |
* @link: https://blog.sohelrana.me/using-cakephp-logging-scope | |
* | |
* Implementing CakePHP Logging Scope | |
*/ |
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
application: you-app-name-here | |
version: 1 | |
runtime: python | |
api_version: 1 | |
default_expiration: "30d" | |
handlers: | |
- url: /(.*\.(appcache|manifest)) | |
mime_type: text/cache-manifest |
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
application: you-app-name-here | |
version: 1 | |
runtime: python | |
api_version: 1 | |
default_expiration: "30d" | |
handlers: | |
- url: /(.*\.(appcache|manifest)) | |
mime_type: text/cache-manifest |
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 | |
/** | |
* @author: Sohel Rana <me.sohelrana@gmail.com> | |
* @author URL: http://sohelrana.me | |
* @licence: MIT | |
* @link: https://blog.sohelrana.me/array-chunk-based-on-key-value-in-php/ | |
* | |
* This function is for divide/group/chunk an multidimensional array based on same key. | |
*/ |
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 | |
/** | |
* @author: Sohel Rana <sohelrana820> | |
* @author URL: https://blog.sohelrana.me/ | |
* @link: https://blog.sohelrana.me/recursively-delete-directory-entire-contents-using-php/ | |
* @licence: MIT | |
* | |
* @param $directory | |
* @return bool | |
*/ |
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
$(function () { | |
'use strict'; | |
// Showing page loader | |
$(window).load(function () { | |
setTimeout(function () { | |
$(".page_loader").fadeOut("fast"); | |
}, 100) | |
}); |
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
/** | |
* @param int $length | |
* @return null|string | |
*/ | |
public function generateDomainName($length = 7) | |
{ | |
$randStr = null; | |
srand((double)microtime(TRUE) * 1000000); | |
$chars = array( | |
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'p', |