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
// target the every anchor element (friend in friendlist) | |
var elem = document.querySelectorAll("a._55ln"); | |
for(var i=0 in elem) { | |
// trigger the anchor element | |
elem[i].click(); | |
//target the text area | |
var textArea = document.getElementsByClassName("uiTextareaAutogrow _552m"); | |
var chatBox = textArea[0]; | |
// message value here | |
chatBox.value = "Hello, This is a test chat from console please dont reply"; |
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
-cur_console:s66H -cur_console:d:c:\xamp\htdocs\current-platform cmd.exe /k "%ConEmuBaseDir%\CmdInit.cmd" | |
-cur_console:s66H -cur_console:d:c:\xamp\htdocs\current-platform -cur_console:C:"%ConEmuDrive%\Program Files (x86)\Git\etc\git.ico" "%ConEmuDrive%\Program Files (x86)\Git\bin\sh.exe" --login -i | |
-cur_console:s50H -cur_console:d:c:\xamp\htdocs\current-platform -cur_console:C:"%ConEmuDrive%\Program Files (x86)\Git\etc\git.ico" "%ConEmuDrive%\Program Files (x86)\Git\bin\sh.exe" --login -i | |
> -cur_console:bs50V -cur_console:d:c:\xamp\htdocs\current-platform -cur_console:C:"%ConEmuDrive%\Program Files (x86)\Git\etc\git.ico" "%ConEmuDrive%\Program Files (x86)\Git\bin\sh.exe" --login -i |
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 | |
include_once 'includes/headscript.php'; | |
include_once '../config/config_pdo_connection.php'; | |
include_once '../support/courier_class.php'; | |
include_once '../config/directory.php'; | |
$page = $_REQUEST['page'] ?: 1; | |
$curl = curl_init(); | |
$curlConfig = array( | |
// CURLOPT_URL => API_V2 . '/users/' . $_SESSION['beone_new_user_id'] . '/orders?page=' . $page, | |
// CURLOPT_URL => 'http://10.10.2.17:7000/me/orders?access_token=' . $_SESSION['access_token'] . '&page=' . $page, |
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 Orders = function() { | |
var showUuid = function(uuid) { | |
$('#remote_uuid').html(uuid); | |
}; | |
var mustacheRender = function(temp,obj,target) { | |
var template = temp.html(); | |
Mustache.parse(template); | |
var rendered = Mustache.render(template,obj); |
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
handleLimit(elem) { | |
const { product } = this.props; | |
const qtyOrdered = cartItem ? cartItem.qty_ordered : 0; | |
// Checks the difference of the Inventory and Quantity Ordered | |
const inventoryOrderDifference = product.quantity - qtyOrdered; | |
const max_chars = inventoryOrderDifference.toString().length; | |
if(this.state.qty.toString().length > max_chars) { | |
elem = elem.value.substr(0, max_chars); | |
} |
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 | |
//ini_set('max_execution_time', 1000); //300 seconds = 5 minutes | |
$serverName = $_SERVER['SERVER_NAME']; | |
$isOneSuper = strpos($serverName, 'onesupershop') !== false; | |
$isOneLife = strpos($serverName, 'onelifepremium') !== false; | |
$isOneSuperMart = strpos($serverName, 'onesupermart') !== false; | |
$isLocal = strpos($serverName, 'localhost') !== false; | |
if ($isOneSuper) { | |
define('HostRead', 'haproxy.onesupershop.com'); |
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 MyPurchases = function() { | |
var handlePurchases = function(api,userid,pageNum) { | |
$('#datatable_mypurchase').DataTable({ | |
"ajax": api+"/users/"+userid+"/purchases?page="+pageNum, | |
"columns": [ | |
{ "data": "id" }, | |
{ "data": "net_amount" }, | |
{ "data": "created_at" }, |
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 | |
/* | |
ini_set('session.save_handler', 'memcache'); | |
ini_set('session.save_path', 'phpsessions.wzcirm.cfg.usw2.cache.amazonaws.com:11211'); | |
*/ | |
define('INCLUDES', 'includes'); | |
define('CONFIG', 'config'); | |
$serverName = $_SERVER['SERVER_NAME']; | |
define('SITE_URL', preg_replace('/(business[.])|(api[.])|(onex[.])|(cart[.])|(www[.])/', '', $serverName)); | |
$isOneLife = strpos($serverName, 'onelifepremium') !== false; |
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 | |
class LoginClass | |
{ | |
public function loginUser($params) | |
{ | |
$loginParams = [ | |
'username' => $params['username'], | |
'password' => $params['password'], | |
'grant_type' => 'password', | |
'client_id' => 'test', |
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 | |
//ini_set('max_execution_time', 1000); //300 seconds = 5 minutes | |
$serverName = $_SERVER['SERVER_NAME']; | |
$isOneSuper = strpos($serverName, 'onesupershop') !== false; | |
$isOneLife = strpos($serverName, 'onelifepremium') !== false; | |
$isOneSuperMart = strpos($serverName, 'onesupermart') !== false; | |
$isLocal = strpos($serverName, 'localhost') !== false; | |
if ($isOneSuper) { |