Skip to content

Instantly share code, notes, and snippets.

View daigofuji's full-sized avatar

Daigo Fujiwara daigofuji

View GitHub Profile
<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');
*,*: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
-----------------------------------------------------------------------
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 || [];
<!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 March 28, 2016 20:50 — 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
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)
@daigofuji
daigofuji / invader.js
Created January 7, 2015 21:51
ScriptCraft drone plugin for space invader 8-bit art
var Drone = require('../drone').Drone;
var blocks = require('blocks');
/************************************************************************
### Drone.invader() method
Creates an 8-bit space invader, 11 blocks wide and 8 blocks high,
made out of black wool, unless otherwise specified.
#### Parameters
@daigofuji
daigofuji / mario.js
Last active August 29, 2015 14:13
ScriptCraft drone plugin, create 8-bit Mario
var Drone = require('../drone').Drone;
var blocks = require('blocks');
/************************************************************************
### Drone.mario() method
Creates an 8-bit mario, 12 blocks wide and 16 blocks high, made out of wool.
#### Parameters
@daigofuji
daigofuji / index.html
Created July 29, 2014 03:25
Barebone index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/foundation/5.3.1/css/foundation.min.css">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
</head>
<body>
@daigofuji
daigofuji / _padding-margin.scss
Last active August 29, 2015 14:03
OOCSS _padding-margin.scss (From @kianoshp)
// ----
// Sass (v3.3.8)
// Compass (v1.0.0.alpha.19)
// ----
/**************** padding and margin settings *****************
Setting padding and margins to be added to different sections
This sections contains individual setting and also a mixin
to be able to add to different sections
@daigofuji
daigofuji / SassMeister-input.scss
Created May 18, 2014 22:03
Generated by SassMeister.com.
// ----
// Sass (v3.3.7)
// Compass (v1.0.0.alpha.18)
// ----
@function grid-calc($colNumber, $totalColumns) {
@return percentage(($colNumber / $totalColumns));
}
.stream-image-right {