https://medium.com/@walkert/fun-building-shared-libraries-in-go-639500a6a669
https://www.darkcoding.net/software/building-shared-libraries-in-go-part-2/
// Created by Helge Heß 2021-06-17 | |
import Foundation | |
// They use obfuscated names to hide it from us! | |
import JavaScriptCore | |
/// Setup our async/await runtime. | |
let runtime = JSContext()! |
import SwiftUI | |
let LINE_LENGTH: Double = 500.0 | |
let N = 720 | |
let LINES = 18 | |
let WAVES: Double = 18.0 | |
let WAVE_HEIGHT: Double = 20 | |
let SPACING: Double = 27.0 | |
let CURL_AMOUNT: Double = 12.0 |
tool | |
extends EditorPlugin | |
class MyExportPlugin: | |
extends EditorExportPlugin | |
func _add_bundles(): | |
var dir = Directory.new() | |
if dir.open('res://addons/iOS') == OK: | |
dir.list_dir_begin() |
import Foundation | |
public struct Unit: Codable, Equatable { | |
init() {} | |
public init(from decoder: Decoder) {} | |
public func encode(to encoder: Encoder) throws {} | |
public static func ==(lhs: Self, rhs: Self) -> Bool { | |
return true | |
} | |
} |
using UnityEngine; | |
[ExecuteInEditMode] | |
public class CreatePlaneStack : MonoBehaviour | |
{ | |
public MeshFilter meshFilter; | |
[Range(1, 64)] | |
public int layers = 4; | |
[Space] |
// Staggart Creations | |
// http://staggart.xyz | |
using UnityEngine; | |
[ExecuteInEditMode] | |
public class HeightmapToMesh : MonoBehaviour | |
{ | |
public MeshFilter meshFilter; | |
public Texture2D heightmap; |
- (UIImage *)dynamicImage | |
{ | |
UITraitCollection *const baseTraitCollection = /* an existing trait collection */; | |
UITraitCollection *const lightTraitCollection = [UITraitCollection traitCollectionWithTraitsFromCollections:@[baseTraitCollection, [UITraitCollection traitCollectionWithUserInterfaceStyle:UIUserInterfaceStyleLight]]]; | |
UITraitCollection *const purelyDarkTraitCollection = [UITraitCollection traitCollectionWithUserInterfaceStyle:UIUserInterfaceStyleDark]; | |
UITraitCollection *const darkTraitCollection = [UITraitCollection traitCollectionWithTraitsFromCollections:@[baseTraitCollection, purelyDarkTraitCollection]]; | |
__block UIImage *lightImage; | |
[lightTraitCollection performAsCurrentTraitCollection:^{ | |
lightImage = /* draw image */; |
/******************************************************************************* | |
* Don't Be a Jerk: The Open Source Software License. | |
* Adapted from: https://github.com/evantahler/Dont-be-a-Jerk | |
******************************************************************************* | |
* _I_ am the software author - JohannesMP on Github. | |
* _You_ are the user of this software. You might be a _we_, and that's OK! | |
* | |
* This is free, open source software. I will never charge you to use, | |
* license, or obtain this software. Doing so would make me a jerk. | |
* |