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
| # 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; |
| # SGR color constants | |
| # rene-d 2018 | |
| class Colors: | |
| """ ANSI color codes """ | |
| BLACK = "\033[0;30m" | |
| RED = "\033[0;31m" | |
| GREEN = "\033[0;32m" | |
| BROWN = "\033[0;33m" | |
| BLUE = "\033[0;34m" |
If you haven’t worked with JavaScript in the last few years, these three points should give you enough knowledge to feel comfortable reading the React documentation:
let and const statements. For the purposes of the React documentation, you can consider them equivalent to var.class keyword to define JavaScript classes. There are two things worth remembering about them. Firstly, unlike with objects, you don't need to put commas between class method definitions. Secondly, unlike many other languages with classes, in JavaScript the value of this in a method [depends on how it is called](https://developer.mozilla.org/en-US/docs/Web/JavWant to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...
What this guide covers: