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
| <svg width="640" height="480" xmlns="http://www.w3.org/2000/svg"> | |
| <!-- Created with SVG-edit - http://svg-edit.googlecode.com/ --> | |
| <g> | |
| <title>レイヤ 1</title> | |
| <rect id="svg_1" height="156" width="382.00001" y="52" x="99" stroke-width="5" stroke="#000000" fill="#FF0000"/> | |
| </g> | |
| </svg> |
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
| 'use strict'; | |
| var counter = (next, loopNum, wait) => { | |
| var count = 0; | |
| var last = Date.now(); | |
| var logger = () => { | |
| wait && heavyFunction(wait); | |
| console.log(next.name, Date.now() - last , count); | |
| count++; | |
| last = Date.now(); |
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
| git remote add heroku git@heroku.com:mennakumaker.git |
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
Show hidden characters
| { | |
| "compilerOptions": { | |
| "module": "commonjs", | |
| "target": "es6", | |
| "noImplicitAny": false, | |
| "sourceMap": false, | |
| "moduleResolution": "node", | |
| "experimentalDecorators": true, | |
| "emitDecoratorMetadata": true | |
| }, |
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! vim_typings#install(...) | |
| let type_file_list = map(range(1, a:{0}), 'a:{v:val}') | |
| let stdouts = systemlist('typings install '.join(type_file_list, ' ').' --save') | |
| if v:shell_error | |
| let stdouts = systemlist('typings install '.join(type_file_list, ' ').' --ambient --save') | |
| endif | |
| echom join(stdouts, ', ') | |
| endfunction |
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
| import 'reflect-metadata'; | |
| import {injectable, Kernel} from 'inversify'; | |
| // 注入したい振る舞いの定義 | |
| @injectable() | |
| abstract class AwesomeService { | |
| abstract greeting(): string; | |
| } | |
| // 振る舞いに対応した実装 |
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
| import _ from "lodash"; | |
| import Router from "falcor-router"; | |
| const routingDefinitions = [ | |
| { | |
| // "users.u001.name" のようなpathに反応する | |
| route: "[{keys:collections}][{keys:ids}][{keys:props}]", | |
| get: function(pathset) { | |
| const collectionName = pathset.collections[0]; | |
| const paths = pathset.ids.map(id => ({ refPath: `/${collectionName}/${id}`, fPath: [collectionName, id] })); |
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
| import { NgModule } from '@angular/core'; | |
| import { FormsModule } from '@angular/forms'; | |
| import { BrowserModule } from '@angular/platform-browser'; | |
| import { MyApp } from './my-app.component'; | |
| import { routing , appRoutingProviders } from "./app.routing"; | |
| import { TopComponent } from "./top.component"; | |
| import { AboutComponent } from "./about.component"; | |
| //import { SubModule } from "./sub/sub.module"; |
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 path = require("path"); | |
| var loadChildrenRegex = /loadChildren\s*:(.*)$/gm; | |
| var ngfactoryRegex = /\.ngfactory(\.|$)/; | |
| var stringRegex = /(['"])((?:[^\\]\\\1|.)*?)\1/g; | |
| function replacePath(str, addSuffix) { | |
| return str.replace(stringRegex, function(match, quote, pathAndFragment) { | |
| var tmp = pathAndFragment.split("#"); | |
| var fpath = addSuffix ? tmp[0] + ".ngfactory" : tmp[0]; | |
| var moduleName; |
OlderNewer