Skip to content

Instantly share code, notes, and snippets.


Shahnur Alam codename065

Block or report user

Report or block codename065

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keys.php
define('AUTH_KEY', 'put your unique phrase here');
define('SECURE_AUTH_KEY', 'put your unique phrase here');
define('LOGGED_IN_KEY', 'put your unique phrase here');
define('NONCE_KEY', 'put your unique phrase here');
define('AUTH_SALT', 'put your unique phrase here');
define('SECURE_AUTH_SALT', 'put your unique phrase here');
define('LOGGED_IN_SALT', 'put your unique phrase here');
define('NONCE_SALT', 'put your unique phrase here');
codename065 / tempStorage.js
Created Feb 3, 2018
JavaScript local storage handler with expiration time
View tempStorage.js
var tempStorage = {
get: function (name) {
var now = Math.floor( / 1000);
var _lsd = localStorage.getItem(name);
if(_lsd == null) return null;
var obj = JSON.parse(_lsd);
if(obj.expire >= now){
} else {
View login-session.html
<!DOCTYPE html>
<meta http-equiv="content-type" content="text/html;charset=windows-1252">
<title>Page Title</title>
View link-template-panel-1-3.php
View gist:5935e5cefbb2aaddf20cef8759e3cca6
<!DOCTYPE html>
<title>Page Title</title>
<!-- TradingView Widget BEGIN -->
<script type="text/javascript" src=""></script>
<script type="text/javascript">
TradingView.onready(function() {
View gist:3e7a43cbe2593b0dc030
$email_template = file_get_contents(LF_BASE_DIR.'emails/generic-email.html');
$vars = array('[mail_headline]', '[banner_image_url]','[email_message]','[button_link]', '[button_text]');
$vals = array('We Received Your Query!', '', $user_email_data['message'],'', 'Check Query Status');
$email_message = str_replace($vars, $vals, $email_template);
wp_mail($email, $user_email_data['subject'], $email_message, $headers);
You can’t perform that action at this time.