This file contains hidden or 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
const api = { | |
uri: { | |
entry: 'https://app.codegrid.net/api/entry', | |
author: 'https://app.codegrid.net/api/author', | |
}, | |
options: { | |
mode: 'cors', | |
} | |
} | |
const countout = [ |
This file contains hidden or 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
// copy & paste text from Simple Poll | |
const str = `` | |
const members = [ | |
'tacamy', | |
'yomotsu', | |
'armorik83', | |
'nakajmg', | |
'cancer', | |
'cyokodog', |
This file contains hidden or 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
var $window = $(window); | |
var $items = $('.items'); | |
var $item = $items.find('.item'); | |
var length = $item.length; | |
setItemSize(); | |
var flipsnap = Flipsnap('.items'); | |
$window.on('resize', function () { |
This file contains hidden or 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
// ---- | |
// Sass (v3.4.13) | |
// Compass (v1.0.3) | |
// ---- | |
.block | |
color: red | |
&__element | |
color: yellow | |
&--modifier |
This file contains hidden or 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
// ---- | |
// Sass (v3.4.13) | |
// Compass (v1.0.3) | |
// ---- | |
.block | |
width: 10px | |
&__element | |
width: 100px | |
height: 100px |
This file contains hidden or 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
function ObjectCreate(o) { | |
function F() {} | |
F.prototype = o; | |
return new F(); | |
} | |
function Parent(text) { | |
console.log('called parent'); | |
this.text = text || 'default text'; | |
} |
This file contains hidden or 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
gistってなに・・! |
This file contains hidden or 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
if ((navigator.userAgent.indexOf('iPhone') > 0 && navigator.userAgent.indexOf('iPad') == -1) || navigator.userAgent.indexOf('iPod') > 0 || /Android.+Mobile/.test(navigator.userAgent) > 0) { | |
location.href = '/hoge/'; | |
} |
This file contains hidden or 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
/* devicePixelRatio=1 & devicePixelRatio未対応ブラウザ */ | |
.className { | |
width: 100px; | |
height: 100px; | |
background: url([email protected]); /* 等倍の画像 */ | |
} | |
/* devicePixelRatio=1.5以上 */ | |
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), | |
only screen and (min-device-pixel-ratio: 1.5) { |
This file contains hidden or 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
/* devicePixelRatio=1 & devicePixelRatio未対応ブラウザ */ | |
.className { | |
width: 100px; | |
height: 100px; | |
background: url([email protected]); /* 等倍の画像 */ | |
} | |
/* devicePixelRatio=1.5 */ | |
@media only screen and (-webkit-min-device-pixel-ratio: 1.5), | |
only screen and (min-device-pixel-ratio: 1.5) { |