Skip to content

Instantly share code, notes, and snippets.

View roberthein's full-sized avatar
👋

Robert-Hein Hooijmans roberthein

👋
View GitHub Profile
@roberthein
roberthein / xyz_exporter.ms
Created December 21, 2016 10:45
An exporter for 3DsMax that exports a 3D scene to a .xyz format.
--maxscript by Robert-Hein Hooijmans, 2004
rollout scene_export "Scene to XYZ"
(
group "Animation Range:"
(
spinner anim_start "From:" fieldwidth:45 range:[animationrange.start,animationrange.end,0] type:#integer across:2
spinner anim_end "To:" fieldwidth:45 range:[1,animationrange.end,animationrange.end] type:#integer
spinner anim_step "Step:" fieldwidth:45 range:[1,100,1] type:#integer across:2
button btn_upd "Update" width:70 height:20 align:#right offset:[0,-2]
@roberthein
roberthein / sample.swift
Created February 19, 2020 11:40 — forked from chriseidhof/sample.swift
View Inspection
import SwiftUI
struct SizeKey: PreferenceKey {
static func reduce(value: inout CGSize?, nextValue: () -> CGSize?) {
value = value ?? nextValue()
}
}
struct ContentView: View {
@State var width: CGFloat? = nil
var body: some View {
//
// Diagrams.swift
// DiagramsSample
//
// Created by Chris Eidhof on 16.12.19.
// Copyright © 2019 objc.io. All rights reserved.
//
import SwiftUI
[{
"id": 0,
"date": "2020-07-18T00:47:00+0200",
"title": "reprehenderit aliquip sit",
"text": "Proident sint proident do ut aliquip cillum labore mollit deserunt. Consequat incididunt ullamco amet irure excepteur excepteur adipisicing irure laboris eiusmod excepteur. Tempor enim pariatur qui quis consectetur eiusmod et eu amet aliquip cillum officia velit laborum. Non labore cillum esse Lorem dolor proident.",
"link": "https://lipsum.com"
},
{
"id": 1,
"date": "2020-07-18T01:02:00+0200",
@roberthein
roberthein / ChoasLinesShader.metal
Created January 9, 2024 09:50 — forked from realvjy/ChoasLinesShader.metal
Choas Lines - Metal Shader
// Lines
float hash( float n ) {
return fract(sin(n)*753.5453123);
}
// Slight modification of iq's noise function.
float noise(vector_float2 x )
{
vector_float2 p = floor(x);
vector_float2 f = fract(x);