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
$campaigns = array(); | |
$sql = "SELECT * FROM svn_posts WHERE post_type = 'shirts' AND post_date < now() ORDER BY ID DESC LIMIT 10"; | |
$query = $this->db->query($sql); | |
// create organized arrays of campaign data | |
foreach($query->result() as $campaign){ | |
$sql = 'SELECT * FROM svn_postmeta WHERE post_id = ' . $campaign->ID; | |
$results = $this->db->query($sql)->result(); | |
$meta = 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
$(document).animate({ | |
scrollTop : 100 | |
}); |
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 Sevenly(){ | |
console.log('Do Good'); | |
} |
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 Parent = (function() { | |
var Parent = {}, | |
parentPrototype = { | |
func1: function(){} | |
}; | |
Parent.create = function() { | |
var par = Object.create(parentPrototype); | |
return par |
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
@cubic-ease: cubic-bezier(.26,.67,.27,1); | |
-webkit-transition:all 200ms @cubic-ease; | |
-webkit-transform: perspective( 600px ) rotateY( -70deg ) scale(0.75); | |
-moz-transition:all 200ms @cubic-ease; | |
-moz-transform: perspective( 600px ) rotateY( -70deg ) scale(0.75); |
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
/* <i> Cloud */ | |
html { | |
min-height: 100%; | |
background: linear-gradient(#b4bcbf, #fff); | |
} | |
.cloud { | |
display: inline-block; | |
background-color: #fff; |
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
<div class='sizeChart'> | |
size info | |
</div> | |
<div class='slides'></div> | |
<div class='meta'> | |
<span class='price'>${{product.price}}</span> | |
<span class='desc'> | |
{{product.gender.spec.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
// | |
// We need to track orders AND items | |
// | |
var _AvantMetrics = _AvantMetrics || []; | |
_AvantMetrics.push(['order',{ order_id:'[ORDER_ID]', amount:'[ORDER_AMOUNT]', state:'[BILLING_STATE]', country:'[BILLING_COUNTRY]' }]); | |
_AvantMetrics.push(['item',{ order_id:'[ORDER_ID]', parent_sku:'[ITEM_PARENT_SKU]', variant_sku:'[ITEM_VARIANT_SKU]', price:'[ITEM_PRICE]', qty:'[ITEM_QUANTITY]' }]); |
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
// | |
// We add this once for each transaction | |
// | |
_gaq.push(['_addTrans', | |
'1234', // order ID - required | |
'Womens Apparel', // affiliation or store name | |
'28.28', // total - required | |
'1.29', // tax | |
'15.00', // shipping |
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 id = "4ff5cd62cb40c7010000000f"; | |
var timehex = id.substring(0,8); | |
console.log(timehex); | |
var secondsSinceEpoch = parseInt(timehex, 16); | |
console.log(secondsSinceEpoch); | |
var dt = new Date(secondsSinceEpoch*1000); | |
console.log(dt); |
OlderNewer