Confirmed: both Mac OS X Server 1.0's PowerPC AppKit and current ARM64e AppKit
create and add the titlebar controls in the same semantic order: close, zoom,
then miniaturize. Because later-added sibling views are in front, the
miniaturize button is above both the close and zoom buttons when they overlap.
The positioning code is also in AppKit in both releases: Server 1.0 uses
NSTitledFrame origin methods plus _tileTitlebar; current macOS uses
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 avian3d::prelude::*; | |
| use bevy::prelude::*; | |
| pub struct LiquidsPlugin; | |
| #[derive(Default, Component, Reflect, Debug)] | |
| #[reflect(Default, Component, Debug)] | |
| pub struct Liquid { | |
| pub kind: LiquidKind, | |
| } |
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 { contextKeySpan, opentelemetry } from "@elysiajs/opentelemetry"; | |
| import { | |
| context as otelContext, | |
| propagation, | |
| trace, | |
| type Span, | |
| } from "@opentelemetry/api"; | |
| import { W3CTraceContextPropagator } from "@opentelemetry/core"; | |
| import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-proto"; | |
| import { BatchSpanProcessor } from "@opentelemetry/sdk-trace-node"; |
The Bevy Remote Protocol (BRP) is a transport-agnostic and serialization-agnostic protocol for communication between a Bevy application (acting as a server) and a remote (or local) client. It's a request/response-style protocol (similar to HTTP), meaning that every communication is always initiated by the client, and the server only responds to the client's requests.
- A editor/inspector, allowing the user to inspect and modify the Bevy application's state in real time, both locally and remotely;
- “Gameshark“-style cheats, allowing the user to modify a game's state in real time;
- JS/HTML-based UI interacting with an embedded Bevy application running in a browser;
- Non-Bevy/Rust applications (e.g. a C++/Python/Java application) interacting with embedded Bevy modules;
This is a simple experiment to verify if browsers will block/hang execution in a page when a child iframe (of a different origin) has a running script blocked in an infinite loop.
As of Nov 4, 2021, Chrome/Edge won't block the parent page, but Firefox and Safari will.
You'll need Node and NPM for this.
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
| /mnt/c/Users/coreh/Desktop $ sudo apt-get upgrade youtube-dl | |
| Reading package lists... Done | |
| Building dependency tree | |
| Reading state information... Done | |
| youtube-dl is already the newest version (2016.02.22-1). | |
| Calculating upgrade... Done | |
| The following packages have been kept back: | |
| libegl1-mesa libgbm1 libgl1-mesa-dri libwayland-egl1-mesa mesa-va-drivers mesa-vdpau-drivers open-vm-tools | |
| The following packages will be upgraded: | |
| apparmor apport apt apt-transport-https apt-utils base-files bind9-host bsdutils cloud-guest-utils cloud-init |
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
| [object Object] |
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
| 0 info it worked if it ends with ok | |
| 1 verbose cli [ '/Users/coreh/.nvm/versions/node/v8.1.0/bin/node', | |
| 1 verbose cli '/Users/coreh/.nvm/versions/node/v8.1.0/bin/npm', | |
| 1 verbose cli 'update' ] | |
| 2 info using npm@5.0.3 | |
| 3 info using node@v8.1.0 | |
| 4 verbose npm-session cf449ad0bbb9faa1 | |
| 5 silly mapToRegistry name @types/config | |
| 6 silly mapToRegistry scope (from package name) @types | |
| 7 verbose mapToRegistry no registry URL found in name for scope @types |
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
| // Instructions: Open slack, switch to the channel you want to invite people to, | |
| // Copy and paste the entire code snippet below to the "Console" tab of your web inspector, hit "Enter". | |
| (function () { | |
| var people = prompt('Paste the usernames you want to invite here and hit OK:').split(/,\s*|\s+/); | |
| var textArea = $('#message-input'); | |
| var dismiss = function () { | |
| $(".dialog_go").click(); | |
| } |
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
| NSImage *CaptureScreen() { | |
| // Get the Screen Rect | |
| NSRect screenRect = [[NSScreen mainScreen] frame]; | |
| // Create a CGImage with the screen contents | |
| CGImageRef cgImage = CGWindowListCreateImage(screenRect, kCGWindowListOptionOnScreenOnly, kCGNullWindowID, kCGWindowImageDefault); | |
| // Convert the CGImage into a NSBitmapImageRep | |
| NSBitmapImageRep *rep = [[NSBitmapImageRep alloc] initWithCGImage:cgImage]; |
NewerOlder