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)]
// 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
using System;
using System.Collections.Generic;
using UnityEngine;
namespace NoSuchStudio.Common {
/// <summary>
/// Base class for MonoBehaviours that should have a separate logger. Useful for filtering
/// logs by class types.
/// </summary>
@osmanzeki
osmanzeki / record.py
Created March 11, 2020 12:56 — forked from korakot/record.py
Record audio in Colab using getUserMedia({ audio: true })
# all imports
from IPython.display import Javascript
from google.colab import output
from base64 import b64decode
from io import BytesIO
!pip -q install pydub
from pydub import AudioSegment
RECORD = """
const sleep = time => new Promise(resolve => setTimeout(resolve, time))