Skip to content

Instantly share code, notes, and snippets.

View destari's full-sized avatar
🎳
Knocking 'em down

Eric Anderson destari

🎳
Knocking 'em down
View GitHub Profile
@BrentMifsud
BrentMifsud / Image+Data.swift
Last active March 14, 2024 16:19
SwiftUI Image from data
import Foundation
import SwiftUI
#if canImport(UIKit)
import UIKit
#elseif canImport(AppKit)
import AppKit
#endif
extension Image {
/// Initializes a SwiftUI `Image` from data.
@destari
destari / util.go
Created January 19, 2020 17:29
NN util functions
import (
"math"
"math/rand"
)
func random(a, b float64) float64 {
return (b-a)*rand.Float64() + a
}
func matrix(I, J int) [][]float64 {
@warrenm
warrenm / ARQLThumbnailGenerator.swift
Created June 12, 2018 06:31
Generating thumbnail images of 3D model files for use with AR QuickLook
import Foundation
import SceneKit
class ARQLThumbnailGenerator {
private let device = MTLCreateSystemDefaultDevice()!
/// Create a thumbnail image of the asset with the specified URL at the specified
/// animation time. Supports loading of .scn, .usd, .usdz, .obj, and .abc files,
/// and other formats supported by ModelIO.
@ubergesundheit
ubergesundheit / 000-tunneld-server.md
Last active September 21, 2021 00:14
Ngrok alternative with mmatczuk/go-http-tunnel server
@tkersey
tkersey / links.md
Last active May 20, 2024 14:58
For future reference but maybe not.
@jpr5
jpr5 / b00m.rb
Created December 11, 2012 17:58
Nuke HipChat 1:1 History
require 'rubygems'
require 'mechanize'
account = {
:email => "jpr5@serv.io",
:password => "balls",
}
agent = Mechanize.new
site = agent.post("https://www.hipchat.com/sign_in", account).uri.host
@ntalbott
ntalbott / .gitignore
Created February 16, 2012 19:06
Downloads all of your Basecamp files for archiving
exports