Skip to content

Instantly share code, notes, and snippets.

View guneyozsan's full-sized avatar
👶
Dad

Guney Ozsan guneyozsan

👶
Dad
View GitHub Profile
@guneyozsan
guneyozsan / heap.py
Last active January 8, 2020 20:36 — forked from showell/heap.py
heapsort in Python
def swap(a, i, j):
a[i], a[j] = a[j], a[i]
def is_heap(a):
n = 0
m = 0
while True:
for i in [0, 1]:
m += 1
if m >= len(a):
@guneyozsan
guneyozsan / UnityRefresher.cs
Created December 13, 2021 13:47
Forces Unity to refresh and recompile
// Copyright 2021 Guney Ozsan
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
@guneyozsan
guneyozsan / BuildProcessorMobileBuildNumberSetter.cs
Created February 16, 2023 12:34
Sets mobile build number to Unix time without last digit before building with Unity
using UnityEditor;
using UnityEditor.Build;
using UnityEditor.Build.Reporting;
using UnityEngine;
public class BuildProcessorBuildNumberSetter : IPreprocessBuildWithReport
{
public int callbackOrder => 0;
public void OnPreprocessBuild(BuildReport report)
@guneyozsan
guneyozsan / BuildProcessorBitcodeCompilationDisabler.cs
Created April 6, 2021 13:03
Unity 3D - Disable bitcode compilation on iOS
using UnityEditor;
using UnityEditor.Build;
using UnityEditor.Callbacks;
#if UNITY_IOS
using UnityEditor.iOS.Xcode;
#endif
using UnityEngine;
public class BuildProcessorBitcodeCompilationDisabler
{