Skip to content

Instantly share code, notes, and snippets.

View tsmango's full-sized avatar

Tom Mango tsmango

View GitHub Profile
<!-- Place this before your </body> tag. -->
<script type="text/javascript">
var rumbleBannerBackgroundColor, rumbleBannerTextColor, rumbleBannerLinkColor, rumbleBannerPlacement;
rumbleBannerBackgroundColor = "#161616";
rumbleBannerTextColor = "#b0b0b0";
rumbleBannerLinkColor = "#ffffff";
rumbleBannerPlacement = "top"; // Optionally replace with "bottom".
</script>
<script src="https://d4nnn7wspfa3h.cloudfront.net/banner-2015.js" type="text/javascript"></script>
<!-- Place this before your </body> tag. -->
<script type="text/javascript">
var rumbleBannerBackgroundColor, rumbleBannerTextColor, rumbleBannerLinkColor, rumbleBannerPlacement;
rumbleBannerBackgroundColor = "#161616";
rumbleBannerTextColor = "#b0b0b0";
rumbleBannerLinkColor = "#ffffff";
rumbleBannerPlacement = "top"; // Optionally replace with "bottom".
</script>
<script src="https://d4nnn7wspfa3h.cloudfront.net/banner-2014.js" type="text/javascript"></script>
git tag -a rumble13 -m "Final commit for the 2013 Rails Rumble." && git push --tags
@tsmango
tsmango / apache
Last active December 21, 2015 20:59
<VirtualHost *:8000>
ServerAlias *
DocumentRoot /var/www/
<Directory /var/www/>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<h3>Tracks</h3>
<ol>
<li>First Track Name</li>
<li>Second Track Name</li>
<li>Third Track Name</li>
</ol>
#main #content #product-grid .product a.info {
opacity: 0.0;
padding: 5px;
text-align: center;
-webkit-transition: all .1s linear;
-moz-transition: all .1s linear;
-ms-transition: all .1s linear;
-o-transition: all .1s linear;
transition: all .1s linear;
}
[
{
"state:": "String; Pick From: unlisted, announced, available, unavailable",
"name": "String",
"description": "String or null",
"music_catalog_number": "String or null",
"music_pressing_information": "String or null",
"categories": ["Category Name", "Another Category Name", ...],
"images": ["http://...address-of-public-image", "http://...address-of-another-public-image", ...],
"variations": [
@font-face {
font-family: 'BoycottRegular';
src: url('http://limitedrun.com.s3.amazonaws.com/fonts/1/BOYCOTT_-webfont.eot');
src: url('http://limitedrun.com.s3.amazonaws.com/fonts/1/BOYCOTT_-webfont.eot?#iefix') format('embedded-opentype'),
url('http://limitedrun.com.s3.amazonaws.com/fonts/4/BOYCOTT_-webfont.woff') format('woff'),
url('http://limitedrun.com.s3.amazonaws.com/fonts/3/BOYCOTT_-webfont.ttf') format('truetype'),
url('http://limitedrun.com.s3.amazonaws.com/fonts/2/BOYCOTT_-webfont.svg#BoycottRegular') format('svg');
font-weight: normal;
font-style: normal;
{% for category in product.categories %}
{% unless category.slug == 'all' %}
{% for p in category.products %}
<p>{{ p.name }}</p>
{% endfor %}
{% endunless %}
{% endfor %}
{% for product in store.category_by_slug['vinyl'].products limit:5 %}
{% endfor %}