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
@jakubtomsu
jakubtomsu / octviz.odin
Last active November 20, 2023 11:11
Odin program for visualizing spherical/hemispherical octahedral mapping with Raylib
// Octahedral mapping visualization in Odin and Raylib
// by Jakub Tomšů (@jakubtomsu_)
//
// Build and run with 'odin run octsphere.odin -file'.
// No additional dependencies required.
//
// Sources:
// https://gpuopen.com/learn/fetching-from-cubes-and-octahedrons/
// https://knarkowicz.wordpress.com/2014/04/16/octahedron-normal-vector-encoding/
@passivestar
passivestar / Editor.tres
Last active April 10, 2024 20:07
Godot editor theme
[gd_resource type="Theme" load_steps=12 format=3 uid="uid://7bvxnk5n5imx"]
[sub_resource type="StyleBoxFlat" id="StyleBoxFlat_6h42l"]
content_margin_left = 10.5
content_margin_top = 8.75
content_margin_right = 10.5
content_margin_bottom = 8.75
bg_color = Color(0.117647, 0.117647, 0.117647, 1)
draw_center = false
border_color = Color(1, 1, 1, 0.137255)
@keijiro
keijiro / unity-rust.md
Last active January 24, 2022 09:45
Unity/Rust interoperability test projects
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "Packages",
platforms: [
.macOS(.v10_15),
.iOS(.v13),
],
products: [
@marcus-at-localhost
marcus-at-localhost / goog-maps-formulas.js
Created April 1, 2021 12:14
[Google Maps Formulas for Google Sheets] #googlescript #googlesheets https://www.labnol.org/google-maps-sheets-200817
/*
*
* Google Maps Formulas for Google Sheets
*
* Written by Amit Agarwal
*
* Web: https://labnol.org/google-maps-formulas-for-sheets-200817
*
*/
@eldadfux
eldadfux / .env
Last active June 29, 2022 05:24
Appwrite 0.14 - Stack
_APP_ENV=production
_APP_LOCALE=en
_APP_OPTIONS_ABUSE=enabled
_APP_OPTIONS_FORCE_HTTPS=disabled
_APP_OPENSSL_KEY_V1=your-secret-key
_APP_DOMAIN=localhost
_APP_DOMAIN_TARGET=localhost
_APP_CONSOLE_WHITELIST_ROOT=enabled
_APP_CONSOLE_WHITELIST_EMAILS=
_APP_CONSOLE_WHITELIST_IPS=
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using System.IO;
using System;
using System.Text.RegularExpressions;
using System.Linq;
// Original code by PlayItSafe_Fries
@ydnar
ydnar / swift.yaml
Created April 5, 2020 19:42
SwiftFormat with GitHub Actions
name: Swift
on:
push:
branches:
- master
paths:
- ".github/workflows/swift.yaml"
- "**.swift"
- "**/Package.resolved"
// Replaces data[0..2*nn-1] by its discrete Fourier transform,
// if isign is input as 1; or replaces data[0..2*nn-1] by nn times its inverse
// discrete Fourier transform, if isign is input as −1.
// data is a complex array of length nn or, equivalently, a real array
// of length 2*nn.
// nn MUST be an integer power of 2 (this is not checked for!).
void dfft(float data[], unsigned int nn, int isign) {
initialize_sincos_tables();
unsigned int n, mmax, m, j, istep, i;
double wtemp, wr, wpr, wpi, wi, theta;