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 [email protected]: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
<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
#!/bin/sh | |
APP_NAME=$1 | |
[ -z "$APP_NAME" ] && echo "1 args required" && exit 1 | |
[ -d "$APP_NAME" ] && echo "$APP_NAME exists" && exit 1 | |
which tsc || npm install -g typescript | |
which browser-sync || npm install -g browser-sync | |
which watchify || npm install -g watchify |
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"; |
OlderNewer