Skip to content

Instantly share code, notes, and snippets.

View tanshio's full-sized avatar
🤢
😭

Shota Tanno tanshio

🤢
😭
View GitHub Profile
@tanshio
tanshio / welcart-acf.js
Created June 2, 2015 20:19
welcart-acf.js
javascript:(function (){var url = location.href,result = url.match(/&post=(.*)&/),protocol = location.protocol+'//',host = location.host+'/';location.href = protocol + host + 'wp-admin/post.php?post=' + result[1] + '&action=edit'})()
@tanshio
tanshio / adwords-report.js
Last active August 29, 2015 14:22
Simple Report Script
/**
* Simple Report Script
*/
/**
* Date Settings
*/
var date = new Date(),
@mixin media-smp {
// スマートフォンのみ
@media only screen and (max-width: $smp) {
@content;
}
}
$.fn.extend
tabs: (options) ->
# Default settings
settings =
duration: 500
# Merge default settings with options.
settings = $.extend settings, options
@tanshio
tanshio / map.coffee
Created January 27, 2015 21:23
map.coffee
$.fn.extend
multiMap: (options) ->
if !$(@).length > 0
return
$self = $(@)
settings = {
callback: ()->
@tanshio
tanshio / moveLink.coffee
Last active August 29, 2015 14:14
moveLink
@tanshio
tanshio / overflow.css
Created January 27, 2015 17:37
overflow
overflow: scroll;
-webkit-overflow-scrolling : touch;
@tanshio
tanshio / loop-multi.styl
Created January 14, 2015 05:00
loop.styl
list = {
blog: {
width: 89px
height: 44px
},
archive: {
width: 210px
height: 44px
},
about: {
@tanshio
tanshio / sass-map.scss
Created January 13, 2015 21:24
sass-map
$map: (
key1: 10px,
key2: 20px,
key3: (
nested-key1: red,
nested-key2: blue,
),
);
.map {
@tanshio
tanshio / loop-multi.scss
Created January 13, 2015 18:32
scss loop
$main-title: (
blog:
(
width:188px,
background-image:url(../images/blog/main-title.png)
),
archive:
(
width:162px,
background-image:url(../images/archive/main-title.png)