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
// Type definitions for React: | |
// https://raw.githubusercontent.com/borisyankov/DefinitelyTyped/master/react/react-global.d.ts | |
declare var __extends: (derived: Object, base: Object) => void; | |
declare var JSXTransformer: { transform: (jsx: string, opts: Object) => { code: string } }; | |
class ReactUtils { | |
private static _extends: typeof __extends; | |
private static _compiled = <{ [key: string]: () => React.ReactElement<any> }>{}; |
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
public delegate void ValuesGetter(params Object[] values); | |
private const char Comma = ','; | |
private static readonly Regex _escapedChars = new Regex(@"[,""\r\n]"); | |
public static string ToCsv<T>(IEnumerable<T> enumerable, string headers, Action<T, ValuesGetter> valuesGetter) | |
{ | |
var columnCount = headers.Count(c => c == Comma) + 1; | |
var result = new StringBuilder(); |
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
angular | |
.module("DemoApp", []) | |
.controller("DemoController", DemoController) | |
.config(["$provide", $provide => | |
{ | |
$provide.decorator("ngModelDirective", ["$delegate", $delegate => | |
{ | |
var directive = <angular.IDirective>$delegate[0]; | |
var oldCompile = directive.compile; | |
directive.compile = (element, attr, trans) => |
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
<NotepadPlus> | |
<UserLang name="TypeScript" ext="ts" udlVersion="2.1"> | |
<Settings> | |
<Global caseIgnored="no" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" /> | |
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Comments">00// 01 02 03/* 04*/</Keywords> | |
<Keywords name="Numbers, prefix1"></Keywords> | |
<Keywords name="Numbers, prefix2"></Keywords> |
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
<NotepadPlus> | |
<UserLang name="TypeScript" ext="ts" udlVersion="2.1"> | |
<Settings> | |
<Global caseIgnored="no" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" /> | |
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" /> | |
</Settings> | |
<KeywordLists> | |
<Keywords name="Comments">00// 01 02 03/* 04*/</Keywords> | |
<Keywords name="Numbers, prefix1"></Keywords> | |
<Keywords name="Numbers, prefix2"></Keywords> |
NewerOlder