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"?> | |
<!-- | |
Salesforce.com Partner Web Services API Version 24.0 | |
Generated on 2012-06-01 21:30:10 +0000. | |
Copyright 1999-2012 salesforce.com, inc. | |
All Rights Reserved |
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
public bool CaptureCanRedeem(string barcode, out bool alreadyExist) | |
{ | |
alreadyExist = false; | |
query.Add("type_name", "promos"); | |
query.Add("attributes", "{\"code\":\"" + barcode + "\"}"); | |
query.Add("client_id", client_id); | |
query.Add("client_secret", client_secret); | |
JObject obj = GetData("https://loccitane.janraincapture.com/entity.create", query); | |
if (obj["stat"] != null && obj["stat"].Value<string>() == "error" && obj["error"] != null && obj["error"].Value<string>() == "unique_violation") | |
alreadyExist = 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
(function() { | |
if (typeof window.Backplane !== 'function' || parseInt(Backplane.version) !== 2) | |
return; | |
/** | |
* Callback function to be executed on BP ready | |
*/ | |
function bp_ready_callback() { | |
// Code to be executed on BP ready | |
} |
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() { | |
if (typeof window.Backplane !== 'function' || parseInt(Backplane.version) !== 2) | |
return; | |
/** | |
* Callback function to be executed on BP ready | |
*/ | |
function bp_ready_callback() { | |
// Get the channel ID | |
var bpChannel = Backplane.getChannelID(); |
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() { | |
if (typeof window.Backplane !== 'function' || parseInt(Backplane.version) !== 2) | |
return; | |
/** | |
* Callback function to be executed on BP ready | |
*/ | |
function bp_ready_callback() { | |
Backplane.subscribe(function(message){ | |
switch(message.type) { |
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() { | |
if (typeof window.Backplane !== 'function' || parseInt(Backplane.version) !== 2) | |
return; | |
/** | |
* Callback function to be executed on BP ready | |
*/ | |
function bp_ready_callback() { | |
Backplane.subscribe(function(message){ | |
// Do something with message |
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() { | |
if (typeof window.Backplane !== 'function' || parseInt(Backplane.version) !== 2) | |
return; | |
/** | |
* Callback function to be executed on BP ready | |
*/ | |
function bp_ready_callback() { | |
Backplane.subscribe(function(message){ | |
switch(message.type) { |
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() { | |
if (typeof window.Backplane !== 'function' || parseInt(Backplane.version) !== 2) | |
return; | |
// Backplane code | |
})(); |
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
#! /bin/bash | |
echo Backup Started `date` >> ~/backups/backup.log | |
mkdir ~/backups/data/`date +%Y%m%d` | |
tar -czf ~/backups/data/`date +%Y%m%d`/`date +%Y%m%d`_wp3.tar.gz ~/wp3 | |
mysqldump -uwp3 -ppassword wp3 > ./wp3.sql | |
tar -czf ~/backups/data/`date +%Y%m%d`/`date +%Y%m%d`_sql.tar.gz ./wp3.sql | |
rm ./wp3.sql | |
find ~/backups/data -mtime +20 -type f -exec rm -rf {} \; | |
echo Backup Completed `date` >> ~/backups/backup.log |
This file has been truncated, but you can view the full file.
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
[38;5;25m[39m[38;5;28m[39m[38;5;214m[39m[38;5;202m[39m[38;5;240m[39m[38;5;160m[39m | |
[38;5;25m.d$b. .d$b.[39m[38;5;28m .d$$$$$$b. [39m[38;5;214m .d$$$$$$b. [39m[38;5;202m.d$$$$$$b. [39m[38;5;240m.d$b.[39m[38;5;160m.d$$$$$$$$b.[39m | |
[38;5;25m$$$$$..$$$$$[39m[38;5;28m.$$$$$$$$$$$b [39m[38;5;214m.$$$$$$$$$$$b [39m[38;5;202m$$$$$$$$$$b [39m[38;5;240m$$$$$[39m[38;5;160m$$$$$$$$$$P'[39m | |
[38;5;25m$$$$$$$$$$$$[39m[38;5;28md$$$$$$$$$$$$b[39m[38;5;214md$$$$$$$$$$$$b[39m[38;5;202m$$$$$$$$$$$b[39m[38;5;240m$$$$$[39m[38;5;160m$$$$$$$$$$b.[39m | |
[38;5;25m$$$$$$$$$$$$[39m[38;5;28mQ$$$$$$$$$$$$P[39m[38;5;214mQ$$$$$$$$$$$$P[39m[38;5;202m$$$$$$$$$$$P[39m[38;5;240m$$$$$[39m[38;5;160m$$$$$$$$$$P'[39m | |
[38;5;25m$$$$$´`$$$$$[39m[38;5;28m'$$$$$$$$$$$$'[39m[38;5;214m'$$$$$$$$$$$$'[39m[38;5;202m$$$$$$$$$$P [39m[38;5;240m$$$$$[39m[38;5;160m$$$$$$$$$$b.[39m | |
[38;5;25m'Q$P' 'Q$P'[39m[38;5;28m 'Q$$$$$$P' [39m[38;5;214m 'Q$$$$$$P' [39m[38;5;202m'Q$$$$$$$P |
OlderNewer