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
# | |
# Quick script to migrate issues from Pivotal Tracker to GitHub | |
# | |
# Based on https://github.com/suitmymind/lighthouse-to-github/blob/master/migrate-lh-to-gh.rb | |
# and pivotal-tracker gem: https://github.com/jsmestad/pivotal-tracker | |
# | |
# | |
require 'pivotal-tracker' | |
require 'yaml' |
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
./configure --prefix=/usr/local --enable-rubyinterp --enable-multibyte --enable-cscope --enable-multi--enable-gui=no --disable-gpm |
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
<!doctype html> | |
<!--[if lt IE 7]> <html class="ie6"> <![endif]--> | |
<!--[if IE 7]> <html class="ie7"> <![endif]--> | |
<!--[if IE 8]> <html class="ie8"> <![endif]--> | |
<!--[if gt IE 8]><!--> <html> <!--<![endif]--> | |
<head> | |
<meta name="viewport" content="width=device-width"> | |
<style> | |
/* | |
* simple reset |
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
// Find this in product.liquid: | |
} else { | |
var message = variant ? "Yakında tekrar stoklarımızda..." : "Yakında tekrar stoklarımızda..."; | |
$('#add-to-cart', $product).addClass('disabled').attr('disabled', 'disabled').val(message); | |
} | |
// and change it to: | |
} 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
# http://roguejs.com/2011-11-30/console-colors-in-node-js/ | |
red = '\033[31m' | |
blue = '\033[34m' | |
reset = '\033[0m' |
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
{% assign in_clearance = false %} | |
{% for collection in product.collections %} | |
{% if collection.title == 'Clearance' %} | |
{% assign in_clearance = true %} | |
{% endif %} | |
{% endfor %} | |
{% if in_clearance %} |
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
<a href="#" id="BIS_trigger" class="btn">Email when available</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
<!-- Add this to your product.liquid just after the --> | |
<p id="notify"> | |
<label>We can send you a one-time email when this product is back in stock. We won't use your address for anything else.</label> | |
<input type="email" id="notify_me"> | |
<input type="submit" value="Notify me" class="btn button" onclick="BISPopover.create(document.getElementById('notify_me').value, {{variant.id}}).then(function(data) { if (data.status == 'OK') { alert(data.message) } else { alert('Pleasse check your email address is correct and try again.') } }); return false;"> | |
</p> | |
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
{% form 'contact' %} | |
{% if form.posted_successfully? %} | |
<p class="accent-text">Thanks! We will notify you when this product becomes available!</p> | |
{% else %} | |
<p>Click <a id="notify-me" href="#">here</a> to be notified by email when {{ product.title }} becomes available.</p> | |
{% endif %} | |
{% if form.errors %} | |
<div class="error feedback accent-text"> | |
<p>Please provide a valid email address.</p> | |
</div> |
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
// asset.js updated to have parentId and assetClass | |
var AssetSchema = new Schema({ | |
urls: [AssetURLSchema], | |
md5: { type: String }, | |
name: { type: String }, | |
mimetype: { type: String }, | |
family: { type: String }, | |
format: { type: String }, | |
uploaded: { type: Date, 'default': Date.now }, | |
assetClass: { type: String, enum: ['image', 'font'] }, |
OlderNewer