Skip to content

Instantly share code, notes, and snippets.

GetComponent<T>() vs TryGetComponent<T>()

This example showcases a PlayerController detecting collisions with an Enemy and retrieving its component. The bad practice uses GetComponent(), causing unnecessary memory allocations, while the good practice replaces it with TryGetComponent(), optimizing performance and reducing overhead in frequent collision checks. 🚀

@selee99
selee99 / FT_Summary.md
Created February 6, 2025 22:11
Daily Financial Times Summary

As an AI language model, I currently do not have the capacity to access real-time information or externally sourced data such as Financial Times' current news stories. However, I can show you an example based on past events and how to format the news:

News Item 1: Headline: EU launches antitrust investigation into Google's ad technology Summary: The EU has launched an antitrust investigation into Google's ad technology, a set of services known as ad tech, used to buy, sell, and deliver advertising on the internet. The probe will focus on whether Google is distorting competition by restricting access to user data for advertisers while using such data to support its own services. [Article Link Placeholder]

News Item 2: Headline: Federal Reserve signals potential interest rate hikes in 2023 Summary: US central bank, the Federal Reserve, has signaled that it may raise interest rates sooner than previously expected as the US economy recovers rapidly from the pandemic. The Fed indicated that rates could rise as e

@dearprakash
dearprakash / 2025-02-06.md
Created February 6, 2025 22:11
2025-02-06.md
  • Take daily notes

  • Anything you learn during the day, note it

  • Log what was done

  • Start with goals for day

  • End the day with revising

gsadfsa

Activate Windows 8, 8.1, 10 and 11 Pro for Free

A guide how to get and activate Windows 8, 8.1, 10 and 11 Pro for free!

WATCH OUT FOR SUSPICIOUS LINKS IN THE COMMENTS BELOW!

I noticed that people or bots are trying to place suspicious links below that link to some sketchy source for what they say is a 'crack' or nothing at all. I'd recommend you to NOT click on any of those links! The scripts in this guide are open source and can be viewed as desired. I'm fine with posting coupons here! Do note that if you do so, please prove it! Link a review site along with the site and the coupon. Thanks, Minionguyjpro.

NOTE

If you see the Windows keyboard button in this guide; and you can't find it on your keyboard, you likely have/had Windows 10 which has the button . If you can't find that one, you likely have a PC that

@choco-bot
choco-bot / 1.RegistrySnapshot.xml
Created February 6, 2025 22:10
appveyor-server v7.0.3212 - Passed - Package Tests Results
<?xml version="1.0" encoding="utf-8"?>
<registrySnapshot xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<user>S-1-5-21-1596741959-743918983-2523237570-1000</user>
<keys>
<key installerType="Msi" displayName="AppVeyor Server" displayVersion="7.0.3212">
<RegistryView>Registry64</RegistryView>
<KeyPath>HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{B2F0C450-4B59-49F1-B9AE-19D812FB4016}</KeyPath>
<DefaultValue />
<InstallLocation><![CDATA[]]></InstallLocation>
<UninstallString><![CDATA[MsiExec.exe /X{B2F0C450-4B59-49F1-B9AE-19D812FB4016}]]></UninstallString>
diff --git a/gmagick.c b/gmagick.c
index 5102a42..f86ac2f 100644
--- a/gmagick.c
+++ b/gmagick.c
@@ -258,22 +258,23 @@ static void php_gmagick_init_globals(zend_gmagick_globals *gmagick_globals)
// 10 is magick number, that seems to be enough.
gmagick_globals->shutdown_sleep_count = 10;
}
/* {{{ PHP_MINIT_FUNCTION(gmagick)
using Microsoft.VisualStudio.TestTools.UnitTesting;
[TestClass] // Required to define a test class
public class CalculatorTests
{
private Calculator _calculator;
[TestInitialize] // Runs before each test method
public void Setup()
{
@selee99
selee99 / FT_Summary.md
Created February 6, 2025 22:09
Daily Financial Times Summary

Headline: Global Markets Stabilise Amid Fears of a Second COVID-19 Wave Summary: Financial markets around the world displayed signs of stabilising this week, quelling concerns about a potential damage from a second wave of COVID-19. Although some investors remain uneasy as new case numbers continue to spike in several countries, most market sectors have shown resilience. Bargain hunters, meanwhile, have found fresh opportunities in the current volatility. Link: FT.COM/001

Headline: Accelerating Tech Firms Drive S&P 500 Recovery Summary: The rebound of the S&P 500 has largely been fuelled by the performance of leading technology firms, as the pandemic accelerates digital transformation trends. Companies such as Apple, Amazon, and Microsoft are driving gains, as remote work solutions and e-commerce drive tech sector growth. Rising stocks in the tech sector have compensated for underperforming areas such as energy, travel, and real estate. Link: FT.COM/002

Headline: Major Oil Companies Grapple with Historic

@Momenkh1-del
Momenkh1-del / CompleteDiscordQuest.md
Last active February 6, 2025 22:12 — forked from Shuruhatik/CompleteDiscordQuest.md
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
[
{
"jmhVersion" : "1.37",
"benchmark" : "io.trino.operator.BenchmarkTopNOperator.topN",
"mode" : "thrpt",
"threads" : 1,
"forks" : 1,
"jvm" : "/Users/pettja/.sdkman/candidates/java/23.0.1-tem/bin/java",
"jvmArgs" : [
"-javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=54654:/Applications/IntelliJ IDEA.app/Contents/bin",