This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Customize contact fields on Profile admin panel | |
* | |
* @package WordPress | |
*/ | |
/** | |
* WordPressのプロフィール画面に追加するコンタクトメソッド | |
* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Jekyll | |
class TagCloudTag < Liquid::Tag | |
safe = true | |
def initialize(tag_name, text, tokens) | |
super | |
end | |
def render(context) | |
html = "" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'cgi' | |
require 'digest/md5' | |
require 'net/https' | |
require 'uri' | |
module Jekyll | |
class GistTag < Liquid::Tag | |
def initialize(tag_name, text, token) | |
super | |
@text = text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//tiny requestFileSystem Wrapper | |
//author @ukyo | |
//apache license | |
//refer: http://d.hatena.ne.jp/shirokurostone/20111014/1318593601 | |
var fs = (function(window){ | |
var fs = {}, | |
BlobBuilder = window.WebKitBlobBuilder || window.MozBlobuilder || window.MSBlobBuilder, | |
requestFileSystem = window.requestFileSystem || window.webkitRequestFileSystem, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function() { | |
// Support for AJAX loaded modal window. | |
// Focuses on first input textbox after it loads the window. | |
$('[data-toggle="modal"]').click(function(e) { | |
e.preventDefault(); | |
var url = $(this).attr('href'); | |
if (url.indexOf('#') == 0) { | |
$(url).modal('open'); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Released under MIT license | |
// Copyright (c) 2012 Syu Kato <ukyo.web@gmail.com> | |
markdown.toHTML5 = function(source, dialect, options) { | |
return markdown.renderJsonML((function to5(tree, level) { | |
var i, m, | |
indices = [], | |
hx = 'h' + level, | |
n = tree.length, | |
blocks = []; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function themename_customize_register($wp_customize){ | |
$wp_customize->add_section('themename_color_scheme', array( | |
'title' => __('Color Scheme', 'themename'), | |
'priority' => 120, | |
)); | |
// ============================= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// flatten.js | |
// @author noromanba (https://www.hatena.ne.jp/noromanba/) | |
// @license Public Domain https://creativecommons.org/licenses/publicdomain/ | |
// https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/reduce | |
var flatten = function (ary) { | |
return ary.reduce(function (p, c) { | |
return Array.isArray(c) ? p.concat(flatten(c)) : p.concat(c); | |
}, []); | |
}; |
OlderNewer