Skip to content

Instantly share code, notes, and snippets.

{
"files":
{
"Dynamic-Carousel": "https://raw.github.com/Wilto/Dynamic-Carousel/master/plugin.js",
"FitText": "https://raw.github.com/davatron5000/FitText.js/master/jquery.fittext.js",
"FitVids": "https://raw.github.com/davatron5000/FitVids.js/master/jquery.fitvids.js",
"Lettering.js": "https://raw.github.com/davatron5000/Lettering.js/master/jquery.lettering.js",
"Normalize.css": "https://raw.github.com/necolas/normalize.css/master/normalize.css",
"Sass-Css3-Mixins": "https://raw.github.com/matthieua/Sass-Css3-Mixins/master/css3-mixins.scss",
"_rem.scss": "https://raw.github.com/ry5n/rem/master/stylesheets/_rem.scss",
{
"files":
{
"jquery" : "http://code.jquery.com/jquery.js",
"jquery.min" : "http://code.jquery.com/jquery.min.js",
"jquery-cookie" : "https://raw.github.com/carhartl/jquery-cookie/master/jquery.cookie.js",
"jquery-dotimeout" : "https://raw.github.com/cowboy/jquery-dotimeout/master/jquery.ba-dotimeout.min.js",
"jquery-extra-selectors" : "https://raw.github.com/keithclark/JQuery-Extended-Selectors/master/jquery-extra-selectors.js",
"jquery-flexslider" : "https://raw.github.com/mbmufffin/FlexSlider/master/jquery.flexslider-min.js",
"jquery-mediaelement" : "https://raw.github.com/johndyer/mediaelement/master/build/mediaelement-and-player.js",
@sou-lab
sou-lab / SassMeister-input.scss
Created August 28, 2014 11:10
Generated by SassMeister.com.
// ----
// Sass (v3.4.1)
// Compass (v1.0.1)
// ----
$graceful-usage-threshold: 9;
//$supported-browsers: ("chrome");
@import "compass";
$debug-browser-support: true;
@sou-lab
sou-lab / sass.fish
Created February 27, 2015 16:33
fish shell completions sass.fish
#sass
complete -f -c sass -s c -l check --description ""
complete -f -c sass -s C -l no-cache --description ""
complete -f -c sass -s g -l debug-info --description ""
complete -f -c sass -s h -l help --description ""
complete -f -c sass -s i -l interactive --description ""
complete -f -c sass -s l -l line-comments -l line-numbers --description ""
complete -f -c sass -s s -l stdin --description ""
complete -f -c sass -s t -l style --description ""
complete -f -c sass -s v -l version --description ""
@sou-lab
sou-lab / Emmet.sublime-settings
Last active August 29, 2015 14:17
Emmet.sublime-settings
{
//お約束
"snippets": {
"variables": {
"lang": "ja",
"locale": "ja-JP"
}
},
// 補完のスコープ対象にSassファイルを追加
@sou-lab
sou-lab / jQuery-Plugin-Format.coffee
Last active August 29, 2015 14:17
jQuery Plug-in Format (coffee)
do ($=jQuery) ->
namespace = 'pluginName'
$.fn[namespace] = (options) ->
if @length == 0
return false
settings = $.extend(
# settings default
foo: 'fuga'
bar: 'hoge'
プロパティー 発音
background-attachment バックグラウンド・アタッチメント
background-color バックグラウンド・カラー
background-image バックグラウンド・イメージ
background-position バックグラウンド・ポジション
background-repeat バックグラウンド・リピート
background バックグラウンド
border-collapse ボーダー・コラプス
border-color ボーダー・カラー
@sou-lab
sou-lab / SassMeister-input.scss
Created January 21, 2016 04:08
Generated by SassMeister.com.
// ----
// Sass (v3.4.20)
// Compass (v1.0.3)
// ----
.wrap {
@media (min-width: 769px) {
display: block;
@at-root (without: media){
.box {
@sou-lab
sou-lab / functions.php
Last active June 17, 2016 13:49 — forked from mypacecreator/functions.php
WP SitemanagerまたはPrime Strategy Bread Crumbの拡張(type string対応版)
<?php
//パンくずのリッチスニペット対応
function rich_bread_crumb($output, $args) {
if ($args['type'] == 'list') {
$output = preg_replace('|<li\s+(.*?)>|mi','<li ${1} itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb">',$output);
$output = preg_replace('|<li\s+class="(.*?current.*?)".*?>|mi','<li class="${1}">',$output);
$output = preg_replace('|<a\s+(.*?)>|mi','<a ${1} itemprop="url"><span itemprop="title">',$output);
$output = str_replace('</a>','</span></a>',$output);
} elseif ($args['type'] == 'string') {
$output = preg_replace('|<a\s+(.*?)>|mi','<span itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb"><a ${1} itemprop="url"><span itemprop=”title”>',$output);
@sou-lab
sou-lab / functions.php
Created July 28, 2016 19:18
キャプションショートコードのfigureにaria-labelledbyを、figcaptionにそのidを付ける
<?php
//キャプションにaria-labelledbyを付ける
add_shortcode('caption', 'my_img_caption_shortcode');
function my_img_caption_shortcode( $attr, $content = null ) {
// New-style shortcode with the caption inside the shortcode with the link and image tags.
if ( ! isset( $attr['caption'] ) ) {
if ( preg_match( '#((?:<a [^>]+>\s*)?<img [^>]+>(?:\s*</a>)?)(.*)#is', $content, $matches ) ) {
$content = $matches[1];
$attr['caption'] = trim( $matches[2] );