This file contains hidden or 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.get('/admin/countries.json', function(res) { | |
var str = '<script>var AC = window.AC || {};' + "\r"; | |
str += 'AC.shipping = ' + JSON.stringify(res.countries) + '</script>'; | |
document.body.innerHTML = '<code>' + str + '</code>'; | |
}); |
This file contains hidden or 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
# appearance|background-size|border-bottom-left-radius|border-top-left-radius|border-bottom-right-radius|border-top-right-radius|border-radius|box-shadow|box-sizing|columns|column-gap|column-count|column-width|filter|hyphens|opacity|rotate|text-shadow|transition|transition-property|transition-duration|transition-timing-function|word-break | |
@include (appearance|background-size|border-bottom-left-radius|border-top-left-radius|border-bottom-right-radius|border-top-right-radius|border-radius|box-shadow|box-sizing|columns|column-gap|column-count|column-width|filter|hyphens|opacity|rotate|text-shadow|transition|transition-property|transition-duration|transition-timing-function|transform|word-break)\((.*)(?=\))\); |
This file contains hidden or 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
# Connect to the store you're exporting from | |
include ShopifyAPI | |
File.write('pages.data', Page.all.to_json ) |
This file contains hidden or 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
{ | |
"log": { | |
"version": "1.2", | |
"creator": { | |
"name": "WebInspector", | |
"version": "537.36" | |
}, | |
"pages": [ | |
{ | |
"startedDateTime": "2015-08-25T11:35:09.127Z", |
This file contains hidden or 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 array_unique_deep( $array ) { | |
$uniq = array(); | |
foreach ($array as $key => $value) { | |
$str = json_encode( $value ); | |
if ( in_array( $str, $uniq ) ){ | |
unset( $array[$key] ); | |
} else { | |
$uniq[] = $str; |
This file contains hidden or 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
https://googleappdocsm-reviewupdateall.rhcloud.com/news/vielogsi/ |
This file contains hidden or 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
{% comment %} | |
I only want to echo out `Do something` six times on this page | |
But `something_we_cant_limit might` could contain 22 items or 2 | |
{% endcomment %} | |
{% assign counter = 'i' %} | |
{% for item in something_we_cant_limit %} | |
{% capture counter %}{{ counter }}i{% endcounter %} | |
{% if capture.size < 6 %} | |
Do something |
This file contains hidden or 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
{% if content contains "<img" %} | |
{{ content | replace: '<img ', '<meta ' }} | |
{% endif %} |
This file contains hidden or 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
@charset UTF-8; | |
100% { | |
stroke-dashoffset:480px; | |
margin-top:-20px; | |
width:50%; | |
left:100%; | |
opacity:1; | |
-webkit-transform:rotate(360deg); | |
transform:rotate(360deg); |
This file contains hidden or 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
{% if settings.homepage_slideshow %} | |
<section id="HomepageSlideshow" class="homepage--slideshow"> | |
<ul class="slides"> | |
{% if settings.homepage_slide_show_1 %} | |
<li data-id="1"> | |
<img src="{{ 'homepage_slide_image_1.jpg' | asset_url }}" alt="{{ settings.homepage_slide_title_1 }}"/> | |
<a href="{{ settings.homepage_slide_title_1 }}" class="vac"> | |
<h1>{{ settings.homepage_slide_title_1 }}</h1> | |
<h2>{{ settings.homepage_slide_text_1 }}</h2> | |
</a> |