Skip to content

Instantly share code, notes, and snippets.

View oronbz's full-sized avatar
🎯
Focusing

Oron Ben Zvi oronbz

🎯
Focusing
View GitHub Profile
@oronbz
oronbz / keymap.json
Created March 9, 2026 08:34 — forked from oca159/keymap.json
zed keymap.json with same lazyvim keymaps
[
// Terminal
{
"context": "Workspace",
"bindings": {
"ctrl-/": "workspace::ToggleBottomDock"
}
},
// Window's navigation
{
@oronbz
oronbz / settings.json
Created March 9, 2026 08:34 — forked from oca159/settings.json
Zed settings.json
// Zed settings
//
// For information on how to configure Zed, see the Zed
// documentation: https://zed.dev/docs/configuring-zed
//
// To see all of Zed's default settings without changing your
// custom settings, run `zed: open default settings` from the
// command palette
{
"edit_predictions": {
@oronbz
oronbz / hook_allow_mcp.js
Created March 5, 2026 09:19 — forked from igor-makarov/hook_allow_mcp.js
Auto-approve annoying Xcode 26.3 MCP prompts
#!/usr/bin/env osascript -l JavaScript
// Find and approve any MCP agent access dialogs in Xcode.
function run() {
var se = Application("System Events");
try { se.processes.byName("Xcode").name(); } catch (e) { return "Xcode not running."; }
var count = 0;
var windows = se.processes.byName("Xcode").windows();
@oronbz
oronbz / ContentView.swift
Created October 15, 2024 09:06 — forked from JSerZANP/ContentView.swift
communication between native(swiftUI) and wkwebview
import SwiftUI
import WebKit
struct WebView: UIViewRepresentable {
class Coordinator: NSObject, WKNavigationDelegate, WKScriptMessageHandler {
var webView: WKWebView?
func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!) {
self.webView = webView
}
@oronbz
oronbz / SwipeInput.cs
Created July 8, 2020 18:38 — forked from Fonserbc/SwipeInput.cs
A simple swipe detector for touchscreens for Unity3D. Four cardinal directions.
using UnityEngine;
/*
* Swipe Input script for Unity by @fonserbc, free to use wherever
*
* Attack to a gameObject, check the static booleans to check if a swipe has been detected this frame
* Eg: if (SwipeInput.swipedRight) ...
*
*
*/
@oronbz
oronbz / PixelPerfectCam.cs
Last active September 21, 2015 20:33 — forked from pixelrevision/PixelPerfectCam.cs
Script for unity to create a pixel locked orthogonal camera
using UnityEngine;
/**
* A camera to help with Orthagonal mode when you need it to lock to pixels. Desiged to be used on android and retina devices.
*/
public class PixelPerfectCam : MonoBehaviour {
/**
* The target size of the view port.
*/
public Vector2 targetViewportSizeInPixels = new Vector2(480.0f, 320.0f);
/**