-
This is a numbered list.
-
I'm going to include a fenced code block as part of this bullet:
Code More Code
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
@echo off | |
echo START OF BETTER BRAVO LIGHTS INSTALLATION DIAGNOSTICS | |
echo Microsoft Store location | |
echo "%LOCALAPPDATA%\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache" | |
dir "%LOCALAPPDATA%\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache" | |
if EXIST "%LOCALAPPDATA%\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache" ( | |
echo UserCfg.opt InstalledPackage | |
find "InstalledPackage" "%LOCALAPPDATA%\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache\UserCfg.opt" | |
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
@echo off | |
echo START OF BETTER BRAVO LIGHTS INSTALLATION DIAGNOSTICS | |
echo Microsoft Store location | |
echo "%LOCALAPPDATA%\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache" | |
dir "%LOCALAPPDATA%\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache" | |
if EXIST "%LOCALAPPDATA%\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache" ( | |
echo UserCfg.opt InstalledPackage | |
find "InstalledPackage" "%LOCALAPPDATA%\Packages\Microsoft.FlightSimulator_8wekyb3d8bbwe\LocalCache\UserCfg.opt" | |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 ComparisonPredicate<T> = (value: T) => boolean; | |
type ComparisonObject<T> = { [P in keyof T]?: ComparisonObject<T[P]> | ComparisonPredicate<T[P]> }; | |
function looksLike<T>(obj: T, comparison: ComparisonObject<T>): boolean { | |
return 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
// See https://github.com/thysultan/stylis.js#plugins for documentation on how stylis plugins work | |
function stylisPlugin(context, content) { | |
if (context === 1) { | |
// content is a single CSS rule, like 'background-color: pink' | |
// RTL-CSS-JS requires the key + value to be passed in separately. | |
const [key, value] = content.split(/:/, 2); | |
// TODO: this is a bit onerous: rtlcssjs doesn't expose convertProperty, only the entire object convert | |
// Create an object containing our one property |
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
// Returns an iterator of all positive integers | |
function* allPositiveIntegers(): IterableIterator<number> { | |
let i = 1; | |
while (true) { | |
yield i++; | |
} | |
} | |
// Returns an iterator which passes through selected items | |
// from another iterator, selected by a predicate |
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 * as React from 'react'; | |
interface IMyPropsBase { | |
thisIsAPropInABaseInterface: string; | |
} | |
interface IMyProps extends IMyPropsBase { | |
thisIsAPropInASubtypeInterface: number; | |
onSomething(value: number): void; |
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
"use strict"; | |
// Demonstrates extracting complete props info, using real TypeScript | |
// compiler type info. | |
Object.defineProperty(exports, "__esModule", { value: true }); | |
var tslib_1 = require("tslib"); | |
// | |
var ts = require("typescript"); | |
var fs = require("fs"); | |
var path = require("path"); | |
// Arguments: |
NewerOlder