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> | |
<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 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 | |
/** | |
* @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 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
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 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
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 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 | |
/** | |
* @author: Sohel Rana <[email protected]> | |
* @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 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 | |
/** | |
* @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 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 () { | |
'use strict'; | |
// Showing page loader | |
$(window).load(function () { | |
setTimeout(function () { | |
$(".page_loader").fadeOut("fast"); | |
}, 100) | |
}); |
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
/** | |
* @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', |
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
// Open PROJECT_ROOT/plugins/Apps/webroot/js/src/ProjectsCtrl.js and go to line no 6. | |
projectSlug = decodeURIComponent(projectSlug); | |
// Add this line after line 6 | |
// Open PROJECT_ROOT/plugins/Apps/webroot/js/src/FeedsCtrl.js and go to line no 11. | |
$scope.projectSlug = decodeURIComponent($scope.projectSlug); | |
// Add this line after line 11 | |
// Open PROJECT_ROOT/plugins/Apps/webroot/js/src/LabelsCtrl.js and go to line no 10. | |
projectSlug = decodeURIComponent(projectSlug); |
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 | |
// Open PROJECT_ROOT/src/Controller/AppController.php file and go to line no 123 (approximate line or find $this->Auth->allow) | |
// And then replace this snippet with below snippet. | |
$this->Auth->allow([ | |
'signup', | |
'verifyEmail', | |
'forgotPassword', | |
'install', | |
'resetPassword', | |
'requirements', |