Skip to content

Instantly share code, notes, and snippets.

View enjayeyvee's full-sized avatar

Jerico Veloso enjayeyvee

  • Philippines
View GitHub Profile
@knorthfield
knorthfield / flip.html
Created September 30, 2012 22:23
CSS Flip Animation
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>CSS Flip</title>
<style type='text/css'>
/* entire container, keeps perspective */
.flip-container {
-webkit-perspective: 1000;
@cbourdage
cbourdage / po-box-validation.js
Last active August 2, 2024 13:17
PO BOX js Regex validation
/**
1.1 Checkout
- Gorilla will add custom client side validation to the shipping method address field to test if the string contains a pattern of characters that would denote that the string contains the words PO Box.
- If the validation fails the user will be displayed a message stating that the shipping address cannot be a PO Box.
? P.O. Box
? PO. Box
? PO Box
? POBox
? P O Box
@jdsteinbach
jdsteinbach / SassMeister-input-HTML.haml
Last active June 3, 2023 13:01
Generated by SassMeister.com.
.box-1
.box-2
.box-3
.box-4
class SessionsController < ApplicationController
include ShopifyApp::SessionsController
before_filter :check_allowed_shops, only: :new
private
# Checks that the shop attempting to login (starting OAuth flow) is allowed
def check_allowed_shops
if params[:shop].present?
if allowed_shops.include?(params[:shop].gsub(".myshopify.com",""))
@WebReflection
WebReflection / custom-elements-pattern.md
Last active March 26, 2025 23:15
Handy Custom Elements' Patterns

Handy Custom Elements' Patterns

Ricardo Gomez Angel Photo by Ricardo Gomez Angel on Unsplash

This gist is a collection of common patterns I've personally used here and there with Custom Elements.

These patterns are all basic suggestions that could be improved, enriched, readapted, accordingly with your needs.