Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

William Alencar williambsb

🎯
Focusing
  • GoodFy Labs
  • Brasília
View GitHub Profile
@williambsb
williambsb / UploadDataOverWifi.ino
Created Dec 7, 2020 — forked from jeffThompson/UploadDataOverWifi.ino
How to upload data to a server with Arduino
View UploadDataOverWifi.ino
#include <SPI.h>
#include <WiFi101.h>
/*
UPLOAD DATA OVER WIFI
Jeff Thompson | 2017 | jeffreythompson.org
The great Arduino Wifi101 library includes lots of examples
of how to *get* data from the internet, but no examples on how
@williambsb
williambsb / index.html
Created Sep 17, 2020
Rounded tabs Lobby 2
View index.html
<div class="tabsContainer">
<ul class="tabrow">
<li><a href="#">RF games</a></li>
<li><a href="#">Nyx games</a></li>
<li class="selected"><a href="#">Tom Horn</a></li>
<li><a href="#">gg262</a></li>
<li><a href="#">Other games</a></li>
</ul>
</div>
View index.html
<!-- TAB TEMPLATE -->
<svg height="0" width="0" style="position: absolute; margin-left: -100%;">
<defs>
<filter id='shadow'>
<feComponentTransfer in="SourceGraphic">
<feFuncR type="discrete" tableValues="0"/>
<feFuncG type="discrete" tableValues="0"/>
<feFuncB type="discrete" tableValues="0"/>
View How to get a visitor’s location and redirect them to right store for Shopify
These days some business have online store in different country with the same name. They have different URL for different country but they are facing a problem that how they can redirect store url based on IP address for eg.
www.domain.us – Customers in the United States
www.domain.ca – Customers in the Canada
www.domain.com – Customers in rest the world
This article guide you to do that.
View Filter by size in stock shopify. Step 1 full guide at dylanjh.com
{% assign sizes = '' %}
{% for product in products limit: limit %}
{% for variant in product.variants %}
{% if variant.available %}
{% assign sizes = sizes | append: variant.options[1] | append: '_' %}
{% endif %}
{% endfor %}
{% endfor %}
{% assign sizesArr = sizes | split: '_' | uniq %}
@williambsb
williambsb / ajax-cart.js
Created Jun 25, 2020 — forked from marioloncarek/ajax-cart.js
complete shopify ajax cart solution with drawer and modal, adding and removing products - ugly AF
View ajax-cart.js
const defaults = {
cartModal: '.js-ajax-cart-modal', // classname
cartModalContent: '.js-ajax-cart-modal-content', // classname
cartModalClose: '.js-ajax-cart-modal-close', // classname
cartDrawer: '.js-ajax-cart-drawer', // classname
cartDrawerContent: '.js-ajax-cart-drawer-content', // classname
cartDrawerClose: '.js-ajax-cart-drawer-close', // classname
cartDrawerTrigger: '.js-ajax-cart-drawer-trigger', // classname
cartOverlay: '.js-ajax-cart-overlay', // classname
cartCounter: '.js-ajax-cart-counter', // classname
View ajax-cart-complete.liquid
<!--ajax cart modal-->
<div class="ajax-cart__modal js-ajax-cart-modal">
<div class="ajax-cart-modal">
<!--ajax cart modal close-->
<div class="ajax-cart-modal__close js-ajax-cart-modal-close">
{% include 'icon-close' %}
</div>
<!--end ajax cart modal close-->
@williambsb
williambsb / ajaxify-cart.liquid
Created Jun 25, 2020 — forked from EvonuX/ajaxify-cart.liquid
Cart Drawer - HC Shopify
View ajaxify-cart.liquid
<script>
/**
* Module to ajaxify all add to cart forms on the page.
*
* Copyright (c) 2015 Caroline Schnapp (11heavens.com)
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
You can’t perform that action at this time.