Skip to content

Instantly share code, notes, and snippets.

Daigo Fujiwara daigofuji

View GitHub Profile
@daigofuji
daigofuji / 2018-mlb-allplayers.json
Last active Mar 10, 2019
All 30 teams Full-Season Roster & Games by Position of 2018 MLB Regular season from Baseball-reference.com
View 2018-mlb-allplayers.json
[{"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,
View towns.ndjson
{"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"}
View gulpfile.js
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,
View quantcast.master-edited0508.html
<%@ 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>
View gist:881e6e5c5fbcb833e1f22a00eb814e33
<!-- 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);
View tracking on allegiance
<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');
View native-ads.min.css
*,*: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
View gist:b24421e9931f09ffa13fd82dcb60b65f
-----------------------------------------------------------------------
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 || [];
View disqus-test
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>change shortname</title>
</head>
<body>
<h1>Disqus y u no work </h1>
@daigofuji
daigofuji / .bash_git
Created Mar 28, 2016 — forked from MattSurabian/.bash_git
This can be appended to .bash_profile it will allow the prompt to display the current branch and branch-status
View .bash_git
if tput setaf 1 &> /dev/null; then
tput sgr0
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then
MAGENTA=$(tput setaf 9)
ORANGE=$(tput setaf 172)
GREEN=$(tput setaf 190)
PURPLE=$(tput setaf 141)
WHITE=$(tput setaf 256)
else
MAGENTA=$(tput setaf 5)
You can’t perform that action at this time.