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
/** | |
Usage: | |
- Ensure the following mods are installed and enabled: ModTools - BetterBulldozeTool | |
- Startup game, open asset editor, load a intersection | |
- Press ctrl+q to open ModTools | |
- Ensure all 4 options are checked (use console, hook, etc) | |
- Open de Debug Console (F7) | |
- Copy/paste the code between // # START ... and // # STOP ... | |
- Press run. |
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
#!/usr/bin/env bash | |
MY_VAR1="SEBwite" | |
MY_VAR2="ThijsSebwite" | |
cat >> .outputfile << EOF | |
VARNAME1=${MY_VAR1} | |
VARNAME2=${MY_VAR2} | |
EOF |
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
<?php | |
class ProjectNotFoundException extends \Exception | |
{ | |
public static function missingConfig() | |
{ | |
return new static("Could not find the project config file"); | |
} |
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
FROM ubuntu:14.04 | |
CMD echo "This is a test" | wc - |
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
# | |
# bash_functions | |
# | |
# | |
# load autosys functions | |
# | |
. ~/.bash/.bash_autosys_functions | |
# |
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
# | |
# bash_aliases | |
# | |
alias reload='. $HOME/.bash_profile' | |
alias ..='cd ..' | |
alias ...='cd ../..' | |
alias ....='cd ../../..' | |
alias .....='cd ../../../..' | |
alias ......='cd ../../../../..' |
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
export class InputHelper { | |
@lazyInject('cli.config') | |
protected config: Config | |
async ask(question: string, def?: string): Promise<string> { | |
return <Promise<string>> new Promise((resolve, reject) => { | |
inquirer.prompt({ name: 'ask', default: def, type: 'input', message: question }) | |
.then(answers => resolve(answers.ask)) |
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
export function Mixin<T>(...mixins: Array<new (...args: any[]) => any>): new (...args: any[]) => T { | |
return mixins.reduceRight((prev, cur) => __extends(cur, prev), class {}); | |
} | |
function __extends(f: MixinFunction, s: MixinFunction): MixinFunction { | |
const mixedClass = class { | |
constructor() { | |
return f.apply(s.apply(this, arguments) || this, arguments); | |
} |
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 * as assert from 'assert'; | |
import { action, computed, observable } from 'mobx'; | |
function Mixin<T>(...mixins): new(mixinsParameters?: { [key: string]: any }) => T { | |
// let current = mixins.length - 1; | |
class X { | |
constructor(mixinsParameters?: { [key: string]: any }) { |
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 * as assert from 'assert'; | |
import { action, computed, observable } from 'mobx'; | |
function Mixin<T>(...mixins): new(mixinsParameters?: { [key: string]: any }) => T { | |
// let current = mixins.length - 1; | |
class X { | |
constructor(mixinsParameters?: { [key: string]: any }) { |
OlderNewer