Skip to content

Instantly share code, notes, and snippets.

View osmanzeki's full-sized avatar
👋
Oh hi!

Osman Zeki osmanzeki

👋
Oh hi!
View GitHub Profile
@osmanzeki
osmanzeki / Caustics.shader
Created March 21, 2022 17:52
Caustics shader
Shader "Caustics"
{
Properties
{
[Header(Caustics)]
_CausticsTexture("Texture", 2D) = "white" {}
_CausticsStrength("Strength", float) = 0
_CausticsSplit("RGB Split", float) = 0
[Header(Movement)]
@osmanzeki
osmanzeki / batch_export_fbx_to_babylon.py
Created January 25, 2017 01:38
Blender - Batch Export models from Fbx to BabylonJS.
"""
Description :
Allows batch exporting of FBX files contained in a
given folder to BabylonJS files in the same folder.
Dependencies :
- Blender 2.7.8a
- BabylonJS Blender Exporter 4.6.1 (from https://github.com/BabylonJS/Babylon.js)
@osmanzeki
osmanzeki / ARKitDefines.h
Last active July 12, 2021 16:30
AR Foundation Extension to bring back the ARKit `setWorldOrigin` functionality into AR Foundation 3.0.1. This feature was previously supported by the now depreciated official `Unity-ARKit-Plugin`.
// Unity Technologies Inc (c) 2017
// ARKitDefines.h
// 2020-01-05: @osmanzeki => Adapted as an AR Foundation Extension from features originally implemented in the depreciated official `Unity-ARKit-Plugin`.
#import <ARKit/ARKit.h>
typedef struct
{
float x,y,z,w;
// Thanks https://amorten.com/blog/2017/ios-bluetooth-and-microphone-input/
func configure() {
// ...
let session = AVAudioSession.sharedInstance()
let sampleRate = 48000.0
do {
@osmanzeki
osmanzeki / NorvigSpellChecker.cs
Created April 18, 2021 19:59 — forked from yetanotherchris/NorvigSpellChecker.cs
How to Write a Spelling Corrector in C# (from Peter Norvig's Python example)
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
namespace SpellingCorrector
{
/// <summary>
/// Conversion from http://norvig.com/spell-correct.html by C.Small
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
@osmanzeki
osmanzeki / HumanTrait.MuscleNames.csv
Created March 20, 2021 15:05 — forked from neon-izm/HumanTrait.MuscleNames.csv
HumanPose.musclesの中身の95個のfloatはこんな感じ。55から94に指の情報が入っている
0 Spine Front-Back
1 Spine Left-Right
2 Spine Twist Left-Right
3 Chest Front-Back
4 Chest Left-Right
5 Chest Twist Left-Right
6 UpperChest Front-Back
7 UpperChest Left-Right
8 UpperChest Twist Left-Right
9 Neck Nod Down-Up
@osmanzeki
osmanzeki / ExcemptFromEncryption.cs
Created December 21, 2020 18:44 — forked from TiborUdvari/ExcemptFromEncryption.cs
Marks ITSAppUsesNonExemptEncryption in Unity generated Info.plist file to false. Doing this no longer requires manually marking the app as not using non-exempt encryption in iTunes Connect for Testflight beta testing.
using UnityEngine;
using UnityEditor.Build;
using UnityEditor.Build.Reporting;
using UnityEditor;
using UnityEditor.iOS.Xcode;
using System.IO;
public class ExcemptFromEncryption : IPostprocessBuildWithReport // Will execute after XCode project is built
{
public int callbackOrder { get { return 0; } }
@osmanzeki
osmanzeki / IncrementBuildNumber.cs
Created December 21, 2020 18:44 — forked from TiborUdvari/IncrementBuildNumber.cs
Unity Editor Script that increments build number for iOS builds
using UnityEngine;
using UnityEditor.Build;
using UnityEditor.Build.Reporting;
using UnityEditor;
public class IncrementBuildNumber : IPreprocessBuildWithReport
{
public int callbackOrder { get { return 0; } } // Part of the IPreprocessBuildWithReport interface
public void OnPreprocessBuild(BuildReport report)
@osmanzeki
osmanzeki / LAPLASCIIAN.py
Created April 29, 2020 20:14 — forked from zalo/LAPLASCIIAN.py
A mildly complex program that will compare each chunk of an image's laplacian to all the ASCII characters for the best fit...
import numpy as np
import cv2
import pyperclip
from PIL import ImageFont, ImageDraw, Image
laplacian = False
density = 17
font_size_y = 18
blur = 5 # Must Be Odd