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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
<title>Document</title> | |
<style> | |
body { | |
margin: 0; | |
} |
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
<script> | |
import { mergeProps } from 'vue' | |
export default { | |
setup(props, context) { | |
const slotContent = context.slots?.default?.() | |
if (slotContent) { | |
slotContent.forEach(vNode => { | |
vNode.props.class = (vNode.props.class ?? '') + ' foo' | |
vNode.props.style = mergeProps(vNode.props.style, style) |
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
[user] | |
name = Eiji Meguro | |
email = [email protected] | |
[core] | |
autocrlf = input | |
editor = emacs -nw | |
[alias] | |
br = branch | |
st = status | |
cm = commit -m |
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
/** | |
* CSSが使えるかチェックします。 | |
* @param prop:String CSSプロパティ(ベンダープリフィックスがある場合を考慮) | |
* @param useVendorPrefix:Boolean ベンダープリフィックスを付けるか(default: false) | |
* @see http://caniuse.com/#feat=css-transitions | |
* @return:Boolean 指定のCSSが使える場合trueを返却 | |
*/ | |
function canUseCss(prop, useVendorPrefix) { | |
var props = [ prop ], | |
// ベンダープリフィックス |
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.exports = function(grunt) { | |
var glob = require('glob'); | |
// load plugins in 'devDependencies' | |
require('load-grunt-tasks')(grunt, { | |
scope: 'devDependencies' | |
}); | |
// load a configuration file that specifies 'jade' amd 'sass' compilation settings. |
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
{ | |
"exclude": [ | |
".git/**", | |
"node_modules/**", | |
"bower_components/**" | |
], | |
"always-semicolon": true, | |
"block-indent": "", | |
"color-case": "lower", | |
"color-shorthand": true, |
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
// plugins | |
var gulp = require('gulp'); | |
var del = require('del'); | |
var webserver = require('gulp-webserver'); | |
var sass = require('gulp-sass'); | |
var pleeease = require('gulp-pleeease'); | |
var changed = require('gulp-changed'); | |
var usemin = require('gulp-usemin'); | |
var uglify = require('gulp-uglify'); | |
var minifyHtml = require('gulp-minify-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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Picturefill 1.2 Example</title> | |
<link rel="stylesheet" href="css/main.css"> | |
<!--[if IE 9]><script src="js/vendor/matchMedia.js"></script><![endif]--> | |
<script src="js/vendor/picturefill.js"></script> | |
</head> |
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
{ | |
"exclude": [ | |
".git/**", | |
"node_modules/**", | |
"bower_components/**" | |
], | |
"always-semicolon": true, | |
"block-indent": "\t", | |
"color-case": "lower", | |
"color-shorthand": true, |
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
{ | |
"name": "application-name", | |
"version": "0.0.1", | |
"private": true, | |
"scripts": { | |
"start": "node app.js" | |
}, | |
"dependencies": { | |
"express": "3.4.8", | |
"jade": "*" |
NewerOlder