This file contains 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
// Referanslar | |
// [1] https://gist.github.com/antonsem/09b4f902ed22adbdf8f664fac539543f | |
// [2] https://gist.github.com/antonsem/1b34acd82470f34a1fd45160c180834b | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.UI; | |
// [1]'de bahsettiğim gibi Türkçe değişken, sınıf ve metod isimleri kullanmak |
This file contains 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
public class Original_1 : MonoBehaviour | |
{ | |
public int boyut; | |
public bool isWork; | |
Transform Target; | |
public float Speed; | |
public bool Flip; | |
// Start is called before the first frame update | |
void Start() |
This file contains 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
// This is feedback and refactoring of a code snippet. You can see the original in feedback.png | |
public class Feedback_EN : MonoBehaviour | |
{ | |
// Whenever we define a variable it allocates some memory and deallocates it back once we are done with the | |
// variable. This is called garbage collection, and a relatively slow process. Of course, a single ray won't | |
// affect the performance. In fact, it is called "micro-optimization." But why not do it if we can | |
private Ray _ray; | |
// Similarly, we don't need to redefine Raycast hit in each frame |
This file contains 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
#!/bin/bash | |
#Checks if expressVPN is connected. Connects if not. | |
#Assumes that the expressVPN is installed! | |
#Tested on Pop!_OS 20.4 (LTS) | |
#Let me know if there is a better way to do it, I'm a Linux noob! | |
#Run this script from ~/.profile, and it should work. | |
status=$(expressvpn status) #save the response from the VPN | |
read -ra connected <<< "$status" #seperate individual words |
This file contains 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
Shader "AR Proxy" | |
{ | |
Properties | |
{ | |
} | |
SubShader | |
{ | |
Tags | |
{ |