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
jQuery(function(){ | |
$('.sprice, #price, #cartItems .list, #orderDetails .list, #orderList tr td').each(function(){ | |
cleanPriceText($(this)); | |
}); | |
}); | |
function cleanPriceText($ele){ | |
var text; | |
text = $ele.text(); | |
text = text.replace(/(\$[0-9\.\,\s]+)\.00/g, '$1'); |
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
$name = str_replace(html_entity_decode('®', null, 'UTF-8'), '®', $name); |
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
<script> | |
(function() { | |
var cx = 'your_cx_code_goes_here'; | |
var gcse = document.createElement('script'); | |
gcse.type = 'text/javascript'; | |
gcse.async = true; | |
gcse.src = (document.location.protocol == 'https:' ? 'https:' : 'http:') + | |
'//www.google.com/cse/cse.js?cx=' + cx; | |
var s = document.getElementsByTagName('script')[0]; | |
s.parentNode.insertBefore(gcse, s); |
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
# Make sure local master is up to date | |
$ git checkout master | |
$ git fetch origin | |
$ git merge origin/master | |
# Fix conflicts, commit and push | |
# Make sure local development is up to date | |
$ git checkout development | |
$ git merge origin/development | |
# Fix conflicts, commit and push | |
# Merge master into development |
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
protected function createInfluenceObject($accountId, $opportunityId, $touchId, $prospectId, $campaignId, | |
$touchCreatedAt, $oppCreatedAt, $oppIsClosed, $oppClosedAt, $influence = null) | |
{ | |
if (empty($influence)) { | |
$influence = new \piOpportunityInfluence(); | |
} | |
$influence->account_id = $accountId; | |
$influence->opportunity_id = $opportunityId; | |
$influence->campaign_touch_id = $touchId; | |
$influence->prospect_id = $prospectId; |
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
// given an array of prices, determine the largest profit that can be made | |
[310, 315, 275, 295, 260, 270, 290, 230, 255, 250] | |
private int findMaxProfit(int[] stockPrices) { | |
int maxProfit = 0; | |
// TODO: Implement later | |
validateStockPrices(); | |
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 | |
$limit = 100000; | |
$arr1 = array(); | |
for ($i = 0; $i < $limit; $i++) { | |
$arr1[$i] = rand(1, $limit); | |
} | |
$startMemoryUsage = memory_get_usage(); | |
$arr2 = array(); |
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
try { | |
$connection->beginTransaction(); | |
$connection->exec($insertQuery, $insertValues); | |
if ($lastProspectId) { | |
$listEmail->setClientType($lastProspectId); | |
$listEmail->save($connection); | |
} | |
$connection->commit(); |
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
nmakeyev-ltm:cc-vagrant nmakeyev$ vagrant status | |
Current machine states: | |
ccbox not created (virtualbox) | |
The environment has not yet been created. Run `vagrant up` to | |
create the environment. If a machine is not created, only the | |
default provider will be shown. So if a provider is not listed, | |
then the machine is not created for that environment. | |
nmakeyev-ltm:cc-vagrant nmakeyev$ vagrant up |
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
Home Page,New Products,Specials,My Account,Contact Us,ç²¾é¸è²¨å“,精选货å“,主題,主题,分類,分类,新到貨å“,新到货å“,我的帳戶,æˆ‘çš„å¸æˆ·,è¯çµ¡æˆ‘們,è”络我们,購物袋,è´ç‰©è¢‹,個人用å“,个人用å“,家居用å“,文具,禮å“åŠå…¶ä»–,礼å“åŠå…¶ä»–,創æ„花è—,创æ„花艺,創æ„工作åŠ,创æ„工作åŠ,,「紅白è—330ã€x åˆä¸€å±±äººåˆä½œå“牌,「红白è“330ã€x åˆä¸€å±±äººåˆä½œå“牌,Chocolate Rain 產å“,Chocolate Rain 产å“,「香港情懷ã€ç”¢å“,「香港情怀ã€äº§å“,新生會紅白è—產å“,新生会红白è“产å“,é¦™æ¸¯æ‰‹ä¿¡åŠæ—…éŠç³»åˆ—,賀年貨å“,贺年货å“,ç£çŸ³è²¼,ç£çŸ³è´´,紅白è—330 x åˆä¸€å±±äººåˆä½œå“牌,红白è“330 x åˆä¸€å±±äººåˆä½œå“牌,「香港情怀ã€ç£è´´äº§å“,「香港情懷ã€ç£è²¼ç”¢å“,2016新產å“,2016新产å“,2017新產å“,2017新产å“,è¨‚è£½ä¼æ¥ç¦®å“,订制ä¼ä¸šç¤¼å“,ç²¾é¸貨å“Â,精选货å“Â,主題,主题,分类,新到貨å“Â,新到货å“ |
OlderNewer