Skip to content

Instantly share code, notes, and snippets.

Cazuki Hoshina cazuki

Block or report user

Report or block cazuki

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
cazuki / functions-imagemagick-change.php
Created Aug 7, 2017
View functions-imagemagick-change.php
function change_graphic_lib($array) {
return array('WP_Image_Editor_GD', 'WP_Image_Editor_Imagick');
add_filter('wp_image_editors', 'change_graphic_lib');
cazuki / sns-count-cache.php
Created Oct 13, 2016
SNS Count Cache 0.10.0 修正後
View sns-count-cache.php
// Share Facebook Crawl Strategy
$parameters = array(
'app_id' => $this->share_facebook_app_id,
'app_secret' => $this->share_facebook_app_secret
cazuki / sns-count-cache.php
Last active Oct 13, 2016
SNS Count Cache 0.10.0 修正前
View sns-count-cache.php
// Share Facebook Crawl Strategy
$parameters = array(
'app_id' => $this->follow_facebook_app_id,
'app_secret' => $this->follow_facebook_app_secret
View responsive-sass-mixin-use-example.scss
p {
margin: 0 0 1rem 0;
@include smartphone {
margin: 0 0 0.5rem 0;
View responsive-sass-mixin.scss
// Media Queries
@mixin desktop {
//PC表示: 768+20=788px〜
@media only screen and (min-width: $width-tablet + $width-scrollbar) {
View class-share-facebook-strategy.php
$url = self::DEF_BASE_URL . '&' . http_build_query( $this->query_parameters , '' , '&' );
View class-share-facebook-strategy.php
const DEF_BASE_URL = '|appsecret';
View mt-amp-baseTemplate.mtml
<!DOCTYPE html>
<html amp lang="ja">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<link rel="canonical" href="<mt:EntryID zero_pad="6">.html">
<script async src=""></script>
<script custom-element="amp-anim" async src=""></script>
<script custom-element="amp-iframe" async src=""></script>
View ranklet-template.scss
#ranklet-{{}} {
.ranklet-wrapper { counter-reset:ranklet-item; }
.ranklet-item {
margin:0 0 12px;
&:first-child:before {
View ranklet-template.html
<aside class="ranklet ranklet-reset">
<div class="ranklet-wrapper">
<div class="ranklet-item">
<a href="{{url}}" class="ranklet-link">
<figure class="ranklet-image"><img src="{{image}}" alt="{{title}}"></figure>
<p class="ranklet-title">{{title}}</p>
<!-- /.ranklet-link --></a>
You can’t perform that action at this time.