Editor tell other nodes what data is going to be passed throug some structs
that are
are converted to dictionaries.
These structs usually have this format:
{type, value, origin}
@echo off | |
:: change the path below to match your installed version | |
SET AndroidStudioPath=C:\Program Files\Android\Android Studio\bin\studio64.exe | |
echo Adding file entries | |
@reg add "HKEY_CLASSES_ROOT\*\shell\AndroidStudio" /t REG_SZ /v "" /d "Open with AndroidStudio" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\AndroidStudio" /t REG_EXPAND_SZ /v "Icon" /d "%AndroidStudioPath%,0" /f | |
@reg add "HKEY_CLASSES_ROOT\*\shell\AndroidStudio\command" /t REG_SZ /v "" /d "%AndroidStudioPath% \"%%1\"" /f | |
/* | |
* MIT License | |
* | |
* Copyright (c) 2022 Albert Chang | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to deal | |
* in the Software without restriction, including without limitation the rights | |
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
* copies of the Software, and to permit persons to whom the Software is |
// | |
// DarwinNotificationCenter.swift | |
// | |
// Copyright © 2017 WeTransfer. All rights reserved. | |
// | |
import Foundation | |
/// A Darwin notification payload. It does not contain any userInfo, a Darwin notification is purely event handling. | |
public struct DarwinNotification { |
# This is an awful solution, but NodePath is missing an important method, so there's no great alternative that I've found. | |
# Try me with get_node_property(self, "Control/Spatial/CollisionShape2D:shape:extents:x") | |
func get_node_property(from: Node, path: NodePath): | |
assert ":" in path as String # Causes a hard crash | |
path = path as NodePath | |
var node_path = get_as_node_path(path) | |
var property_path = (path.get_concatenated_subnames() as NodePath).get_as_property_path() | |
return from.get_node(node_path).get_indexed(property_path) |
https://gist.github.com/search?q=user%3A%40me&ref=searchresults
Uses @me
to refer to itself in the gist search query.
Type this into Github Gist Search (https://gist.github.com/)
user:BoQsc your search query
@echo off | |
@set ASEPRITE="C:\Program Files (x86)\Steam\steamapps\common\Aseprite\Aseprite.exe" | |
@set FILENAME="%~n0" | |
if exist %FILENAME% ( | |
choice /c YN /m "Would you like to delete and recreate '%FILENAME%' directory " | |
if errorlevel == 2 goto save | |
if errorlevel == 1 goto delete | |
goto end | |
) |
aspectFitBoundsInBounds(src, dest, center=true) { | |
let WIDTH_KEY = "width"; | |
let HEIGHT_KEY = "height"; | |
let largerSide = src.height > src.width ? HEIGHT_KEY : WIDTH_KEY; | |
let smallerSide = largerSide == HEIGHT_KEY ? WIDTH_KEY : HEIGHT_KEY; | |
let aspectRatio = src[smallerSide]/src[largerSide]; | |
src[largerSide] = dest[largerSide]; | |
src[smallerSide] = dest[largerSide]*aspectRatio; |
(function() { | |
var coverNavBar = true; | |
var css = ` | |
ytd-watch:not([fullscreen])[theater] #player.ytd-watch { | |
height: ` + (coverNavBar?'':'calc(') + '100vh' + (coverNavBar?'':' - 56px)') + ` !important; | |
max-height: none !important;` + (coverNavBar?` | |
position: relative; | |
margin-top: -56px; | |
z-index: 9999; |