Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View daigofuji's full-sized avatar

Daigo Fujiwara daigofuji

View GitHub Profile
<!-- 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);
<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)
# Set this to the root of your project when deployed:
http_path = "/"
css_dir = "css"
sass_dir = "sass"
images_dir = "img"
javascripts_dir = "js"
fonts_dir = "fonts"
# You can select your preferred output style here (can be overridden via the command line):
output_style = :compact
@daigofuji
daigofuji / simple-3d-card-flip.html
Last active December 18, 2015 12:28
Simple 3d card flip
<!DOCTYPE html>
<html>
<head>
<title>simple3d</title>
<style type="text/css" title="text/css">
.sandbox-wrap {
-webkit-perspective: 800px;
-moz-perspective: 800px;
-o-perspective: 800px;
perspective: 800px;
@daigofuji
daigofuji / WP custom login
Last active December 18, 2015 08:00
Customizing wordpress "login screen." Add this to wp-content/themes/YOUR_THEME_FOLDER/functions.php
// Custom login page. Modifying logo image, link and title.
function my_custom_login_logo() {
echo '<style type="text/css"> h1 a { background-image:url('.get_stylesheet_directory_uri().'/img/MYLOGO.png) !important; }</style>';
}
add_action('login_head', 'my_custom_login_logo');
function namespace_login_headerurl( $url ) {
$url = get_bloginfo( 'url' );
return $url;
}