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
func (o *ContentAddOperation) add(fs files.File) (*AddedContent, error) { | |
var contentType ContentType | |
if fs.IsDirectory() { | |
contentType = Directory | |
for { | |
f, err := fs.NextFile() | |
if err == io.EOF { | |
break | |
} else if err != nil { | |
return nil, err |
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
module.exports = { | |
preset: 'ts-jest', | |
testEnvironment: 'node', | |
roots: [ | |
"<rootdir>/src" | |
], | |
transform: { | |
"^.+\.tsx?$": "ts-jest" | |
}, | |
moduleFileExtensions: [ |
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
{ | |
"compilerOptions": { | |
"emitDecoratorMetadata": true, | |
"experimentalDecorators": true, | |
"declaration": true, | |
"rootDir": "src", | |
"baseUrl": "./", | |
"typeRoots": [ | |
"node_modules/@types", |
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
<template> | |
<h1>${label}</h1> | |
</template> |
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
@customElement('hello') | |
export class HelloElement { | |
@bindable label: string; | |
} |
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
let component: any; | |
function initialize(bindingContext:any) { | |
let template = ` | |
<hello label.bind="label"></hello> | |
` | |
component = StageComponent.withResources(PLATFORM.moduleName('hello')) |
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 'reflect-metadata'; | |
import 'aurelia-polyfills'; | |
import { Options } from 'aurelia-loader-nodejs'; | |
import { globalize } from 'aurelia-pal-nodejs'; | |
import 'isomorphic-fetch'; | |
import * as path from 'path'; | |
require('jsdom-global')(); | |
require('mutationobserver-shim'); |
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 pug from 'pug'; | |
import {PLATFORM} from 'aurelia-pal'; | |
import { | |
StageComponent, | |
ComponentTester | |
} from 'aurelia-testing'; | |
export function render(template: string, options?:any) : string { | |
return pug.compile(template.trim())(options); |
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
{ | |
"objective": "minimize", | |
"name": "stigler diet", | |
"type": "io.sunshower.anvil.model.LinearOptimizationProblem", | |
"variables": { | |
"constraint": [ | |
{ | |
"name": "Calories (1000s)", | |
"coefficient": 3.0 | |
}, |
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
@Getter | |
@Setter | |
@XmlRootElement | |
public class LinearSolution extends AbstractElement<LinearSolution> { | |
@XmlAttribute(name = "solution-type") | |
private SolutionType solutionType; | |
@XmlElement(name = "statistic") | |
@XmlElementWrapper(name = "statistics") |
OlderNewer