Skip to content

Instantly share code, notes, and snippets.

Avatar

Erick Sahara ericksahara

View GitHub Profile
@planetflash
planetflash / svg-base-fix.html
Last active Jul 22, 2016
For fixing the issue with Angular HTML5 routing requiring the <base href="/"></base> tag, causing svg sprite icons to no longer display due to their xlink:href property. Please note, this is not a bug with Angular or Angular UI Router, but how the <base> tag is meant to behave.
View svg-base-fix.html
<svg><use xlink:href="{{absurl+'#svgvID'}}"></use></svg>
@j3j5
j3j5 / gist:8b3e48ccad746b90a54a
Last active Jan 28, 2021
Adyen Test Card Numbers
View gist:8b3e48ccad746b90a54a
Adyen Test Card Numbers
These cards are only valid on our TEST system and they will never involve any actual transaction or transfer of funds. The TEST card numbers will not work on the Adyen LIVE Platform.
For all cards use the following expiration and CVV2/CVC2/or CID for Amex.
For all cards:
Expiration Dates CVV2 / CVC3 CID (American Express)
08/2018 OR 10/2020 737 7373
@w0rm
w0rm / svgstore.html
Created Aug 6, 2014
Load combined svg file into body
View svgstore.html
<html>
<body>
<!-- load combined svg file (with symbols) into body-->
<script>
(function (doc) {
var scripts = doc.getElementsByTagName('script')
var script = scripts[scripts.length - 1]
var xhr = new XMLHttpRequest()
xhr.onload = function () {
@cassiocardoso
cassiocardoso / select-estados-br
Created Feb 12, 2014
Select com uma lista de todos os estados brasileiros.
View select-estados-br
<select name="estados-brasil">
<option value="AC">Acre</option>
<option value="AL">Alagoas</option>
<option value="AP">Amapá</option>
<option value="AM">Amazonas</option>
<option value="BA">Bahia</option>
<option value="CE">Ceará</option>
<option value="DF">Distrito Federal</option>
<option value="ES">Espírito Santo</option>
<option value="GO">Goiás</option>