Skip to content

Instantly share code, notes, and snippets.

View tenebroso's full-sized avatar

Jon Bukiewicz tenebroso

View GitHub Profile
@timneutkens
timneutkens / catalog_product_view.xml
Created August 23, 2016 09:23
Remove reviews from product page Magento 2
<?xml version="1.0"?>
<page layout="1column" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
<body>
<referenceBlock name="product.info.review" remove="true" />
<referenceBlock name="reviews.tab" remove="true" />
</body>
</page>
@loneaggie
loneaggie / gist:3237136
Created August 2, 2012 13:32
Contact Form 7 State Dropdown
[select* selectedState
"Alabama|AL" "Alaska|AK" "Arizona|AZ" "Arkansas|AR"
"California|CA" "Colorado|CO" "Connecticut|CT" "Delaware|DE"
"Washington DC|DC" "Florida|FL" "Georgia|GA" "Hawaii|HI"
"Idaho|ID" "Illinois|IL" "Indiana|IN" "Iowa|IA" "Kansas|KS"
"Kentucky|KY" "Louisiana|LA" "Maine|ME" "Maryland|MD"
"Massachusetts|MA" "Michigan|MI" "Minnesota|MN" "Mississippi|MS"
"Missouri|MO" "Montana|MT" "Nebraska|NE" "Nevada|NV"
"New Hampshire|NH" "New Jersey|NJ" "New Mexico|NM" "New York|NY"
"North Carolina|NC" "North Dakota|ND" "Ohio|OH" "Oklahoma|OK"
@efeminella
efeminella / enhance.helper.js
Created March 14, 2012 04:57
Plain text URL to anchor tags Handlebars Helper
// Plain text URL to anchor tags Handlebars Helper
(function(){
// defines markup enhancement regex
var protocol = /(\b(https?|ftp):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gim
, scheme = /(^|[^\/])(www\.[\S]+(\b|$))/gim;
/*
* Registers a Helper method with handlebars which, given a string of
* plain text or existing markup, provides enhancements of plain text