Skip to content

Instantly share code, notes, and snippets.

View daigofuji's full-sized avatar

Daigo Fujiwara daigofuji

View GitHub Profile
-----------------------------------------------------------------------
Donation Confirmation Tag
***Add this tag to the Donation Confirmation page and update INSERT+CUSTOMER+TYPE (ie one time vs monthly), INSERT+REVENUE and INSERT+ORDER+ID place holders with variables/macros to pass corresponding dynamic data***
<!-- Start Quantcast Tag -->
<script type="text/javascript">
var _qevents = _qevents || [];
*,*:before,*:after{box-sizing:border-box}.test{-ms-transform:translateX(50%);transform:translateX(50%)}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,video{display:inline-block;*display:inline;*zoom:1}audio:not([controls]){display:none;height:0}[hidden]{display:none !important}figure{margin:0}html{font-size:100%;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;-moz-osx-font-smoothing:gray}html,button,input,select,textarea{font-family:inherit}body{margin:0;font-size:19px;font-family:"Arnhem",serif;line-height:1.5;color:#343c40;background-color:#fff;font-variant-ligatures:common-ligatures;font-feature-settings:"liga"}@media (min-width: 550px){body{font-size:20px}}img{border:0;-ms-interpolation-mode:bicubic}img,a img{max-width:100%;height:auto}object,embed{display:block;max-width:100%}svg:not(:root){overflow:hidden}::-moz-selection{background:#ffed50}::selection{background:#ffed50}::-moz-selection{background:#ffed50}button{font-size:100%;ma
<script type="text/javascript">
/* Set those variables here */
var donationAmount = '100',
donationType = 'onetime',
transactionId = 'abcdefghijk';
/* Quantcast tag */
var _qevents = _qevents || [];
(function() {
var elem = document.createElement('script');
<!-- Quantcast Tag -->
<script>
var ezt = ezt ||[];
(function(){
var elem = document.createElement('script');
elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://pixel") + ".quantserve.com/aquant.js?a=p-Z4bfNLnN8psjN";
elem.async = true;
elem.type = "text/javascript";
var scpt = document.getElementsByTagName('script')[0];
scpt.parentNode.insertBefore(elem,scpt);
<%@ Master Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
<noscript>For full functionality of this page it is necessary to enable JavaScript. </noscript>
<link rel="stylesheet" type="text/css" href="../WBUR/donation-form.css">
<title>WBUR Donation Page</title>
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var sassPaths = [];
gulp.task('sass', function() {
return gulp.src('scss/app.scss')
.pipe($.sourcemaps.init())
.pipe($.sass({
includePaths: sassPaths,
{"id":1,"town":"ABINGTON","fips":25023,"name":"Abington","mapid":"Abington"}
{"id":2,"town":"ACTON","fips":25017,"name":"Acton","mapid":"Acton"}
{"id":3,"town":"ACUSHNET","fips":25005,"name":"Acushnet","mapid":"Acushnet"}
{"id":4,"town":"ADAMS","fips":25003,"name":"Adams","mapid":"Adams"}
{"id":5,"town":"AGAWAM","fips":25013,"name":"Agawam","mapid":"Agawam Town"}
{"id":6,"town":"ALFORD","fips":25003,"name":"Alford","mapid":"Alford"}
{"id":7,"town":"AMESBURY","fips":25009,"name":"Amesbury","mapid":"Amesbury Town"}
{"id":8,"town":"AMHERST","fips":25015,"name":"Amherst","mapid":"Amherst"}
{"id":9,"town":"ANDOVER","fips":25009,"name":"Andover","mapid":"Andover"}
{"id":104,"town":"AQUINNAH","fips":25007,"name":"Aquinnah","mapid":"Aquinnah"}
@daigofuji
daigofuji / 2018-mlb-allplayers.json
Last active March 10, 2019 14:41
All 30 teams Full-Season Roster & Games by Position of 2018 MLB Regular season from Baseball-reference.com
[{"Lg":"ALE","Tm":"BOS","Name":"Matt Barnes","url":"https://www.baseball-reference.com/players/b/barnema01.shtml","COUNTRY":"US","B":"R","T":"R","Ht":"6' 4","Wt":210,"DoB":"17-Jun-90","Yrs":"5","G":62,"GS":0,"Batting":4,"Defense":62,"P":62,"C":0,"1B":0,"2B":0,"3B":0,"SS":0,"LF":0,"CF":0,"RF":0,"OF":0,"DH":0,"PH":0,"PR":0,"WAR":1.1,"Salary":"$605,000 ","AS":null},
{"Lg":"ALE","Tm":"BOS","Name":"Jalen Beeks","url":"https://www.baseball-reference.com/players/b/beeksja02.shtml","COUNTRY":"US","B":"L","T":"L","Ht":"5' 11","Wt":200,"DoB":"10-Jul-93","Yrs":"1st","G":2,"GS":1,"Batting":0,"Defense":2,"P":2,"C":0,"1B":0,"2B":0,"3B":0,"SS":0,"LF":0,"CF":0,"RF":0,"OF":0,"DH":0,"PH":0,"PR":0,"WAR":-0.4,"Salary":"","AS":null},
{"Lg":"ALE","Tm":"BOS","Name":"Andrew Benintendi","url":"https://www.baseball-reference.com/players/b/beninan01.shtml","COUNTRY":"US","B":"L","T":"L","Ht":"5' 10","Wt":170,"DoB":"6-Jul-94","Yrs":"3","G":148,"GS":142,"Batting":148,"Defense":144,"P":0,"C":0,"1B":0,"2B":0,"3B":0,"SS":0,"LF":129,"CF":24,
@daigofuji
daigofuji / landscape.html
Created April 12, 2012 01:35
Super simple css for “Hey, turn your phone around and you can see this better!” notification for mobile devices.
<html>
<head>
<style type="text/css">
#g-landscape {display:none; margin:0 auto;font-family: sans-serif; font-size:10px;}
@media only screen and (max-device-width: 800px) and (orientation:portrait) {
#g-landscape {display:block;}
}
</style>
</head>
<body>

Keybase proof

I hereby claim:

  • I am daigofuji on github.
  • I am daigofuji (https://keybase.io/daigofuji) on keybase.
  • I have a public key ASApLGFk2DIIEBPaP4Ck-a1V3j0y-hs7MtonUs_cfC1sqAo

To claim this, I am signing this object: