- npm install
- node index.js
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
<template lang="i18n"> | |
<svg xmlns="http://www.w3.org/2000/svg" :width.once="width" :height.once="height" viewBox="0 0 8 13"> | |
<path d="M6.4 12.7L.3 6.5 6.4.2l1.3 1.3-4.9 5 4.9 4.9z" :transform.once="'rotate('+rotation+')'" :fill="color"/> | |
</svg> | |
</template> | |
<script> | |
export default { | |
data: function(){ | |
return {}; |
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
define(function (require) { | |
var registerSuite = require('intern!object'); | |
var assert = require('intern/chai!assert'); | |
registerSuite({ | |
name: 'index', | |
'greeting form': function () { | |
return this.remote | |
.get(require.toUrl('index.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
<div> | |
<iconarrow rotate="90" color="#FF0000"/> | |
<iconarrow rotate="45" color="#00FF00"/> | |
<iconarrow rotate="180" color="#0000FF"/> | |
</div> |
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
<div class="pure-g"> | |
<div class="pure-u-1-1" style="max-width:1200px;margin-left:auto;margin-right:auto"> | |
Center | |
</div> | |
</div> |
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
var gulp = require('gulp'); | |
var validatenv = require('validate-node-version')(); | |
gulp.task( 'env' , function (){ | |
if( !validatenv.satisfies ){ | |
console.error(validatenv.message); | |
process.exit(1); | |
} | |
}); |
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
<template> | |
<h2>{{msg}}</h2> | |
</template> | |
<script lang="ts"> | |
export function data() { | |
return { | |
msg: 'Hello from Component AAA!' | |
}; | |
}; |
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
<template> | |
<svg xmlns="http://www.w3.org/2000/svg" width="2.5em" height="1em" viewBox="0 0 8 13"> | |
<path d="M6.4 12.7L.3 6.5 6.4.2l1.3 1.3-4.9 5 4.9 4.9z" transform="rotate({{rotation}})" fill="#969696"/> | |
</svg> | |
</template> | |
<script> | |
export default { | |
props:{ | |
rotation:{ |
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
// Import required java libraries | |
import java.io.*; | |
import javax.servlet.*; | |
import javax.servlet.http.*; | |
import java.util.*; | |
// Implements Filter class | |
public class LogFilter implements Filter { | |
public void init(FilterConfig config) | |
throws ServletException{ |
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
var ts = require("typescript"); | |
module.exports = { | |
// register custom compilers | |
customCompilers: { | |
// for tags with lang="ts" | |
ts: function( content , cb ){ | |
var compilerOptions = { module: ts.ModuleKind.CommonJS }; | |
var res = ts.transpileModule( content , { compilerOptions: compilerOptions , moduleName: "" , reportDiagnostics: true } ); |