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
using UnityEngine; | |
public class Example : MonoBehavoiur | |
{ | |
[SerializeField] | |
GameObject prefab; | |
bool isTrigger = false; | |
void OnTriggerEnter(Collider col) |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Utils : MonoBehaviour | |
{ | |
int[] numbers = new int[] { | |
1, 2, 3, 4, 5, 6, 7, 0, 0, 0, 0, 0, 0, 0 | |
}; |
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
using UnityEngine; | |
using System.Collections; | |
using UnityEditor; | |
[CustomEditor (typeof(TriggerContainer))] | |
public class TriggerContainerEditor : Editor | |
{ | |
private SerializedObject obj; |
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
extends Node | |
const MIN_HEALTH = 0 | |
const MAX_HEALTH = 100 | |
export var current_health = MAX_HEALTH | |
func _ready(): | |
current_health = clamp(current_health, MIN_HEALTH, MAX_HEALTH) |
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 | |
SAVEIFS=$IFS | |
IFS=$(echo -en "\n\b") | |
COUNTER=0 | |
echo -e "Start converting files..." | |
notify-send "Start converting files..." | |
for path in $NAUTILUS_SCRIPT_SELECTED_FILE_PATHS; do |
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
def main(): | |
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9] | |
print("Before reverse : ") | |
print(numbers) | |
numbers = reverse_array(numbers) | |
print("") |
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
import random | |
def main(): | |
random.seed() | |
numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10] | |
print("Before shuffle : " + str(numbers)) | |
numbers = shuffle(numbers) | |
print("After shuffle : " + str(numbers)) | |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
#if UNITY_EDITOR | |
using UnityEditor; | |
#endif | |
public class CustomCollision : MonoBehaviour |
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
#include <iostream> | |
#include <string> | |
#include <vector> | |
#include <stdbool.h> | |
struct OrderInfo | |
{ | |
int price = 0; | |
std::string customerName; |
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
alias fd-WWW="cd /home/csaratakij/TTT" | |
alias fd-git="cd /home/csaratakij/@GitRepository" | |
alias fd-fdir="cd /home/csaratakij/@GitRepository/FDir" | |
alias fd-music="cd /home/csaratakij/Music" | |
alias fd-download="cd /home/csaratakij/Downloads" | |
alias fd-video="cd /home/csaratakij/Videos" | |
alias fd-tools="cd /home/csaratakij/Tools" | |
alias fd-prototypeA="cd /home/csaratakij/@GitRepository/PrototypeA" | |
alias fd-picture="cd /home/csaratakij/Pictures" | |
alias fd-godot-custom="cd /home/csaratakij/Tools/Utils/Godot/Custom" |