Skip to content

Instantly share code, notes, and snippets.

View VizualAbstract's full-sized avatar
📸
Haters will say this is Photoshopped

Corey Matthew Capetillo VizualAbstract

📸
Haters will say this is Photoshopped
View GitHub Profile
@VizualAbstract
VizualAbstract / 0_reuse_code.js
Created October 27, 2016 16:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<form action="/cart/add" method="post">
{% if product.variants.size > 1 %}
{% if product.options[0] %}
{% assign used = '' %}
<label for="select-one">{{ product.options[0] }}</label>
<select id='select-one' onchange="letsDoThis()">
{% for variant in product.variants %}
{% unless used contains variant.option1 %}
<option value="{{ variant.option1 }}">{{ variant.option1 }}</option>
{% capture used %}{{ used }} {{ variant.option1 }}{% endcapture %}
@VizualAbstract
VizualAbstract / hideaddrbar.js
Created March 15, 2012 01:56 — forked from scottjehl/hideaddrbar.js
Normalized hide address bar for iOS & Android
/*
* Normalized hide address bar for iOS & Android
* (c) Scott Jehl, scottjehl.com
* MIT License
*/
(function( win ){
var doc = win.document;
// If there's a hash, or addEventListener is undefined, stop here
if( !location.hash && win.addEventListener ){