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
| " Vim syntax file | |
| " Language: Vue.js | |
| " Maintainer: Eduardo San Martin Morote | |
| if exists("b:current_syntax") | |
| finish | |
| endif | |
| if !exists("s:syntaxes") | |
| " Search available syntax files. |
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
| <template> | |
| <p> | |
| <haha> | |
| <v-template inline-template> | |
| <span>{{$ctx.name}}说: 闷声发大财 +{{$ctx.i}}s<br/></span> | |
| </v-template> | |
| </haha> | |
| </p> | |
| </template> |
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 { | |
| Component, NgModule, TemplateRef, | |
| Directive, Input, ViewContainerRef, | |
| Compiler, OnChanges, ComponentFactory | |
| } from '@angular/core' | |
| import { CommonModule } from '@angular/common' | |
| @Component({ | |
| template: ` |
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
| from typing import Union, TypeVar, _type_check, TypingMeta | |
| import builtins | |
| class MyTypingMeta(type): | |
| def __or__(self, tpe): | |
| return Union[self, tpe] | |
| class MyTypeVar(TypeVar, metaclass=TypingMeta, _root=True): | |
| def __pos__(self): | |
| self.__covariant__ = 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
| // webpack.config.js | |
| module.exports = { | |
| entry: { | |
| 'test': './test', | |
| }, | |
| output: { | |
| filename: 'output.js', | |
| }, | |
| module: { | |
| loaders: [ |
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
| /// <reference path='./typings/tsd.d.ts' /> | |
| import 'reflect-metadata' | |
| type _ = {} | |
| type ClassN<N, T> = { new (...a: N[]): T } | |
| type FN8<A, B, C, D, E, F, G, H, R> = (a?: A, b?: B, c?: C, d?: D, e?: E, f?: F, g?: G, h?: H) => R | |
| type CLS8<A, B, C, D, E, F, G, H, R> = { new (a?: A, b?: B, c?: C, d?: D, e?: E, f?: F, g?: G, h?: H): R} |
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
| <!-- | |
| postMessage(navigator.appName); | |
| /* | |
| --> | |
| <!doctype html> | |
| <title>navigator.appName</title> | |
| <script src="/resources/testharness.js"></script> | |
| <script src="/resources/testharnessreport.js"></script> | |
| <div id=log></div> | |
| <script> |
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
| let s:enabled_options = [ | |
| \ 'target', 'emitDecoratorMetadata', 'experimentalDecorators', 'module', | |
| \ 'noImplicitAny', 'rootDir', 'noEmit', 'allowSyntheticDefaultImports', | |
| \ 'noImplicitReturn', 'allowUnreachableCode', 'allowUnusedLabels' | |
| ] | |
| function! neomake#makers#ft#typescript#tsc() | |
| let l:tsconfig = findfile('tsconfig.json', '.;') | |
| if len(l:tsconfig) | |
| let true = 1 |
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 inject(...injectionKeys : Array<string>) { | |
| return function decoratorFactory(target : Object|Function, decoratedPropertyName? : string) : void { | |
| let targetType : Function; | |
| let injectionPoint : InjectionPoint; | |
| // Decorator applied to Class (for Constructor injection). | |
| if (typeof target === 'function' && decoratedPropertyName === undefined) { | |
| targetType = target; | |
| injectionPoint = new ConstructorInjectionPoint(injectionKeys); | |
| } |