Skip to content

Instantly share code, notes, and snippets.

View evarilci's full-sized avatar
💢
ouch

Eymen Varilci evarilci

💢
ouch
View GitHub Profile
@radiofun
radiofun / DistortionSampleView.swift
Created January 1, 2026 22:16
Distortion Sample view to use Distortion Shader
import SwiftUI
struct DistortionSampleView: View {
@State private var dragP : CGPoint = .init(x: -1000, y: -1000)
var body: some View {
ZStack {
// Black Background - replace with image, gradient, whatever you like.
Color.black
@radiofun
radiofun / Distortion.metal
Created January 1, 2026 22:14
Distortion Shader that is influenced by dragging position.
#include <metal_stdlib>
#include <SwiftUI/SwiftUI.h>
using namespace metal;
//Use DistortionSampleView.swift to try it out
//2026 Minsang Choi
[[ stitchable ]] half4 distortion(float2 pos, SwiftUI::Layer l, float4 boundingRect, float2 dragp) {
float2 delta = pos - dragp;
@ohong
ohong / Brewfile
Created April 4, 2025 00:52
Oscar's Tools & Apps
# Command line tools
brew 'ata' # ChatGPT in the terminal
brew 'cask' # Extension to brew supporting installation of graphical applications
brew 'ffmpeg' # Complete solution to record, convert and stream audio and video
brew 'gh' # GitHub's CLI
brew 'git' # Version control
brew 'htop' # Interactive process viewer, an enhanced version of top
brew 'imagemagick' # Command-line tool for manipulating images
brew 'mailsy' # Command-line email client or email utility
brew 'mas' # Mac App Store command-line interface