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
static const FName PropertyEditor("PropertyEditor"); | |
void FMyGameEditorModule::InitCategories() | |
{ | |
FPropertyEditorModule& PropertyModule = FModuleManager::GetModuleChecked<FPropertyEditorModule>(PropertyEditor); | |
for (const auto* const Class : TObjectRange<UClass>()) | |
{ | |
if (!Class->GetClassPathName().ToString().StartsWith("/Script/MyGame")) { continue; } | |
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
" .ideavimrc | |
set noerrorbells visualbell t_vb= " Disable annoying bells. | |
filetype plugin indent on " Enable automatic filetype detection, filetype-specific plugins/indentation | |
set encoding=utf8 " Set encoding to UTF-8 to show glyphs | |
scriptencoding utf8 | |
set nocompatible " Don't need to keep compatibility with Vi | |
set nocp " Don't need to keep compatibility with Vi | |
set hidden " Allow hiding buffers with unsaved changes | |
set listchars=trail:·,precedes:«,extends:»,tab:▸\ " Change the invisible characters, no eol |
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
022-03-22 09:53:27.364952-0400 UnrealEditor[90322:4884359] [UE] Ensure condition failed: !UberGraphFramePointerProperty == !UberGraphFunction [File:/Users/timoxley/Projects/libs/UnrealEngine5/Engine/Source/Runtime/Engine/Private/BlueprintGeneratedClass.cpp] [Line: 1357] | |
2022-03-22 09:53:27.365339-0400 UnrealEditor[90322:4884364] [UE] [2022.03.22-13.53.27:364][417]LogOutputDevice: Warning: | |
Script Stack (0 frames): | |
2022-03-22 09:53:27.378940-0400 UnrealEditor[90322:4884364] [UE] [2022.03.22-13.53.27:378][417]LogStats: FPlatformStackWalk::StackWalkAndDump - 0.013 s | |
2022-03-22 09:53:27.379471-0400 UnrealEditor[90322:4884359] [UE] [2022.03.22-13.53.27:379][417]LogOutputDevice: Error: === Handled ensure: === | |
2022-03-22 09:53:27.379828-0400 UnrealEditor[90322:4884359] [UE] [2022.03.22-13.53.27:379][417]LogOutputDevice: Error: | |
2022-03-22 09:53:27.380201-0400 UnrealEditor[90322:4884359] [UE] [2022.03.22-13.53.27:379][417]LogOutputDevice: Error: Ensure condition failed: !UberGraphFramePointerProperty == !UberGraphFu |
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 { PassThrough, Readable, once, TransformOptions } from 'stream' | |
/** | |
* Write to stream. | |
* Block until drained or aborted | |
*/ | |
async function write(stream: PassThrough, data: any, ac: AbortController) { | |
if (stream.write(data)) { return } | |
await once(stream, 'drain', ac) | |
} |
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 assert = require('assert') | |
class Generators { | |
items = new Map() | |
add(id) { | |
const gen = generate(this, id) | |
this.items.set(id, gen) | |
return gen | |
} |
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
start() | |
async function start () { | |
const promises = [ | |
new Promise((resolve, reject) => setTimeout(() => reject(0), 1000)), | |
Promise.reject(1), | |
Promise.reject(2) | |
] | |
promises.forEach(p => p.catch(() => {})) // prevent unhandled |
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 Emitter = require('events') | |
const emitter = new Emitter() | |
// Currently, (Node v14.12.0) this just prints 'iterating', waits a moment, then silently exits 0. | |
// But adding at least one event triggers the full flow of: iterating, caught, finally, rejected | |
// thinking maybe throw() should call errorHandler? | |
;(async () => { | |
const it = Emitter.on(emitter, 'test') | |
setTimeout(() => { | |
// emitter.emit('test') // uncomment to trigger full error flow |
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 todoMachine ({ contextKey, task, ...opts }) { | |
return { | |
...opts, | |
initial: 'run', | |
states: { | |
run: { | |
invoke: { | |
src: (ctx, event) => (fn) => { | |
const itemDone = (key) => (data) => { | |
fn({ type: 'itemDone', data: { key, data } }) |
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
// Requires: | |
// JAZZ Plugin: https://jazz-soft.net/download/Jazz-Plugin/ | |
// JAZZ-Midi Chrome Extension: https://chrome.google.com/webstore/detail/jazz-midi/jhdoobfdaejmldnpihidjemjcbpfmbkm | |
// Paste this into the Javascript console on *any* https website (sites using http won't work). | |
// Only works in Chrome | |
document.body.innerHTML = '' | |
async function addController () { | |
const serviceUuid = '03b80e5a-ede8-4b33-a751-6ce34ec4c700' |
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
Show hidden characters
{ | |
"presets": [ | |
"./config/babel-preset-myapp" | |
], | |
"plugins": [ | |
"transform-class-properties" | |
] | |
} |
NewerOlder