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
--- | |
env: | |
browser: true | |
parserOptions: | |
ecmaVersion: 6 | |
sourceType: | |
module | |
ecmaFeatures: | |
jsx: true |
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
const path = require('path'), | |
ExtractTextPlugin = require('extract-text-webpack-plugin'), | |
webpack = require('webpack') | |
const plugins = [ | |
new ExtractTextPlugin('app.css'), | |
new webpack.LoaderOptionsPlugin({ | |
// test: /\.xxx$/, // may apply this only for some modules | |
options: { | |
eslint: { |
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
"use strict" | |
/* | |
* Webpack 2 loader that can take CommonJS output by psc 0.9.1 and convert | |
* it into tree shakable ES6 modules. No transpiling required. | |
*/ | |
const fs = require('fs') | |
const commonJsRequire = /var ([$\w]+) = require\("(.*)"\)/g | |
const moduleExports = /module\.exports = \{(\n( ([$\w]+): ([$\w]+)(, )?\n)*)?\};/m |
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
const sizeNode = d => d.value + 5 | |
const fill = d3.scale.category10(); | |
d3.json('file.json', function(error, top) { | |
const {nodes, links} = top | |
const parents = {} | |
links.forEach(link => { | |
let target = link.target | |
let source = link.source |
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
--- | |
env: | |
browser: true | |
es6: true | |
parserOptions: | |
ecmaVersion: 6 | |
sourceType: module | |
rules: |
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
[format] | |
pretty = %Cblue%h%Creset %Cgreen[%ar]%Creset (%an) %s | |
[alias] | |
a = add | |
c = commit | |
co = checkout | |
d = diff | |
f = fetch | |
fmm = !git fetch origin master && git merge origin master |
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
// Fsharp 4.1.0 | |
open System | |
open Newtonsoft.Json // 10.0.3 | |
open Newtonsoft.Json.Converters | |
type ToStringJsonConverter () = | |
inherit JsonConverter() | |
override this.CanConvert objectType = true; | |
override this.WriteJson (writer: JsonWriter, value: obj, serializer: JsonSerializer): unit = |
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
[@bs.module "./i18n"] | |
external modelNameI18n: string = | |
"MODEL_NAME"; |
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<OutputType>Exe</OutputType> | |
<TargetFramework>netcoreapp2.0</TargetFramework> | |
</PropertyGroup> | |
<ItemGroup> | |
<Compile Include="Program.fs" /> | |
</ItemGroup> |
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 * as PropTypes from "prop-types"; | |
var shape = PropTypes.default.shape(); | |
var arrayOf = PropTypes.default.arrayOf(); | |
var Internal = /* module */[ | |
/* shape */shape, |
OlderNewer