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 lang="ts"> | |
import knobdrag, { makeValueStore } from '$lib/knob-drag'; | |
import { createEventDispatcher } from 'svelte'; | |
import mediumKnob from '../../images/medium-knob.png'; | |
export let value: number = 50; | |
export let disabled: boolean = false; | |
let min = 0; | |
let max = 100; | |
let step = 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
### Keybase proof | |
I hereby claim: | |
* I am jarred on github. | |
* I am jarredbishop (https://keybase.io/jarredbishop) on keybase. | |
* I have a public key ASD2jHkaziPfpYbRF01ZTafqlzHhP4WUE03OdFmvq9jMtgo | |
To claim this, I am signing this object: |
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 type="application/json" class="json" id="collection-data"> | |
{ | |
"parentCollection": false, | |
"handle": "elliott", | |
"page": 1, | |
"total_pages": 1, | |
"total_products": 3, // should be 14 | |
"products": [ | |
{ // only 3 products written out here ... |
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 type="application/json" class="json" id="collection-data"> | |
{ | |
"parentCollection": false, | |
"handle": "{{ collection.handle }}", | |
{% paginate collection.products by 50 %} | |
"page": {{ paginate.current_page }}, | |
"total_pages": {{ paginate.pages }}, | |
"total_products": {{ paginate.items }}, | |
"products": [{% for product in collection.products %} | |
{% include "json-product" %} |
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="block video"> | |
<div class="container"> | |
<div class="embed"> | |
<iframe src='http://player.vimeo.com/video/62211565' frameborder='0' webkitAllowFullScreen mozallowfullscreen allowFullScreen></iframe> | |
</div> | |
</div> | |
</div> | |
<!-- | |
<a class="block medium" href="/collections/womens"> |
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
.wide_image_grid{ | |
position: relative; | |
text-align: center; | |
margin: 40px 0px 0px 0px; | |
$min-width: 300px; | |
background: url('/assets/img/sprites/grids/1x/wide-grid-divider.png') repeat 0px -40px; | |
> .item{ | |
position: relative; | |
display: inline-block; | |
max-width: 600px; |
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
va = window.ViaAlley ||= {} | |
va.templates = | |
BlogPost_text: _.template """ | |
<h3><a href="<%= post_url %>"><%= title %></a></h3> | |
<% if(image){ %> | |
<a class="image" href="<%= post_url %>" style="background-image:url('<%= image %>');" /> | |
<% } %> | |
<a href="<%= post_url %>" class="read-article">Read Article</a> | |
""" |
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
<link rel="alternate" type="application/rss+xml" title="Klim Blog" href="http://www.klim.co.nz/blog/rss.rss" /> |
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 | |
$field = get_field('related-post'); | |
if (preg_match("/page_id=(.+)/", $field, $matches)) { | |
$page = get_page($matches[1]); | |
echo 'Related page: ' . $page->post_title; | |
} elseif (preg_match("/p=(.+)/", $field, $matches)) { | |
$post = get_post($matches[1]); | |
echo 'Related post: ' . $post->post_title; | |
} else { |
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
base = "/me/work/sivana" | |
watch('(?:public/stylesheets)/.*\.css') do |match| | |
filepath = match.to_s | |
file = filepath.split("/")[2] | |
puts file | |
puts match[0].inspect | |
puts "Copying from public to %s..." % "#{base}/shopification/assets/#{file}" | |
FileUtils.copy("#{base}/#{filepath}", "#{base}/shopification/assets/#{file}") | |
puts "Renaming to liquid..." | |
File.rename("#{base}/shopification/assets/#{file}", "#{base}/shopification/assets/#{file}.liquid") |
NewerOlder