Skip to content

Instantly share code, notes, and snippets.

View timsneath's full-sized avatar

Tim Sneath timsneath

View GitHub Profile
@timsneath
timsneath / analyzer.log
Created October 29, 2021 03:07
Analyzer Failure
This file has been truncated, but you can view the full file.
1635476713209:Ver:1596173960672524124772:VS-Code:3.27.2:1.32.7:2.15.0
1635476713315:Req:{"jsonrpc"::"2.0","id"::0,"method"::"initialize","params"::{"processId"::7100,"clientInfo"::{"name"::"Visual Studio Code","version"::"1.61.2"},"locale"::"en-us","rootPath"::"c::\\src\\win32","rootUri"::"file::///c%3A/src/win32","capabilities"::{"workspace"::{"applyEdit"::true,"workspaceEdit"::{"documentChanges"::true,"resourceOperations"::["create","rename","delete"],"failureHandling"::"textOnlyTransactional","normalizesLineEndings"::true,"changeAnnotationSupport"::{"groupsOnLabel"::true}},"didChangeConfiguration"::{"dynamicRegistration"::true},"didChangeWatchedFiles"::{"dynamicRegistration"::true},"symbol"::{"dynamicRegistration"::true,"symbolKind"::{"valueSet"::[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"tagSupport"::{"valueSet"::[1]}},"codeLens"::{"refreshSupport"::true},"executeCommand"::{"dynamicRegistration"::true},"configuration"::true,"workspaceFolders"::true,"semanticTokens"::{"refresh
void main() {
const address = -69795452;
const UINT32_MAX = 0xFFFFFFFF;
// Two's complement
print((UINT32_MAX - address.abs() + 1).toRadixString(16));
}
@timsneath
timsneath / failed.txt
Created May 19, 2021 21:52
Dart pub upload attempt
[C:\src\win32] dart pub publish -v
FINE: Pub 2.14.0-119.0.dev
FINE: Archiving and publishing Instance of 'Package'.
MSG : Publishing win32 2.1.1 to https://pub.dartlang.org:
| |-- AUTHORS
| |-- CHANGELOG.md
| |-- CODE_OF_CONDUCT.md
| |-- CONTRIBUTING.md
| |-- LICENSE
abstract class BaseObject {
final String species;
BaseObject(this.species);
}
class Rabbit extends BaseObject {
Rabbit(String species) : super(species);
}
2021-04-24T00:40:56.9210201Z ##[section]Starting: Request a runner to run this job
2021-04-24T00:40:57.1351285Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'windows-2016'
2021-04-24T00:40:57.1351425Z Can't find any online and idle self-hosted runner in current repository's account/organization that matches the required labels: 'windows-2016'
2021-04-24T00:40:57.1351663Z Found online and idle hosted runner in current repository's account/organization that matches the required labels: 'windows-2016'
2021-04-24T00:40:57.2303980Z ##[section]Finishing: Request a runner to run this job
2021-04-24T00:41:04.0999277Z Current runner version: '2.278.0'
2021-04-24T00:41:04.1116623Z ##[group]Operating System
2021-04-24T00:41:04.1117920Z Microsoft Windows Server 2016
2021-04-24T00:41:04.1118460Z 10.0.14393
2021-04-24T00:41:04.1119035Z Datacenter
// Copyright (c) 2020, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:ffi';
import 'package:ffi/ffi.dart';
import 'package:win32/win32.dart';
import 'base.dart';
@timsneath
timsneath / msgbox.dart
Last active April 10, 2021 15:22
MessageBox with Dart FFI -- a simple example
// msgbox.dart
// Demonstrates a simple example of calling a Win32 API directly from Dart code.
// This sample relies on the ffi package. Download these two files to an empty
// directory and run `pub get` to download the ffi package prior to running this
// example.
import 'dart:ffi';
import 'package:ffi/ffi.dart';
@timsneath
timsneath / log.txt
Created April 6, 2021 18:17
Github Action
2021-04-06T18:13:37.0477320Z ##[section]Starting: Request a runner to run this job
2021-04-06T18:13:37.1907254Z Can't find any online and idle self-hosted runner in current repository that matches the required labels: 'windows-latest'
2021-04-06T18:13:37.1907342Z Can't find any online and idle self-hosted runner in current repository's account/organization that matches the required labels: 'windows-latest'
2021-04-06T18:13:37.1907773Z Found online and idle hosted runner in current repository's account/organization that matches the required labels: 'windows-latest'
2021-04-06T18:13:37.3421042Z ##[section]Finishing: Request a runner to run this job
2021-04-06T18:13:44.2964566Z Current runner version: '2.277.1'
2021-04-06T18:13:44.3099208Z ##[group]Operating System
2021-04-06T18:13:44.3100178Z Microsoft Windows Server 2019
2021-04-06T18:13:44.3100666Z 10.0.17763
2021-04-06T18:13:44.3101191Z Datacenter
@timsneath
timsneath / refreshButton.dart
Created April 5, 2018 00:33
Simple refresh button in Flutter
_refreshAction() {
setState(() {
_response = http.read(dadJokeApi, headers: httpHeaders);
});
}
floatingActionButton: new FloatingActionButton(
onPressed: _refreshAction,
tooltip: 'New joke',
child: new Icon(Icons.refresh),
@timsneath
timsneath / results.txt
Created March 23, 2021 04:30
Demonstrates failed attempt to retrieve system interfaces
Resolving Windows.Media.Playback.IMediaPlaybackItem:
This type implements 1 interface(s).
rImpl token: 0x090002ba.
iface token: 0x010004f6. typeRef: true
iface represents: Windows.Media.Playback.IMediaPlaybackSource
ptkResolutionScope is: 0x00000001
Resolving Windows.Foundation.Collections.IPropertySet:
This type implements 3 interface(s).
rImpl token: 0x09000005.