Skip to content

Instantly share code, notes, and snippets.

View iwoj's full-sized avatar

Ian Wojtowicz iwoj

View GitHub Profile
@iwoj
iwoj / export-mesh.swift
Last active April 8, 2020 18:02 — forked from prcalopa/export-mesh.swift
Export mesh to obj file @ SceneKit
import SceneKit
import SceneKit.ModelIO
let documentsPath = NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0]
func exportMesh(_ geometry: SCNGeometry, withName name:String, useTimestamp:Bool = false){
// export geometry
let mesh = MDLMesh(scnGeometry: geometry)
let asset = MDLAsset(mesh.allocator)
### Keybase proof
I hereby claim:
* I am iwoj on github.
* I am iwoj (https://keybase.io/iwoj) on keybase.
* I have a public key ASAhWYmVWltAtN-Xwd7sYBA8TsFGOXLO9guS3SHEi3Mm7wo
To claim this, I am signing this object:
@iwoj
iwoj / gist:5961744
Last active December 19, 2015 13:19
Exception from setInterval callback: { stack: [Getter] }
var SC_URL = "http://localhost:8100";
Meteor.startup(function () {
Meteor.setInterval(updateInfo, 10 * 1000);
});
function updateInfo() {
var result = Meteor.http.get(SC_URL+"/info");
}
Error: A method named '/todos/insert' is already defined
at app/packages/livedata/livedata_server.js:733:15
at Function.<anonymous> (app/packages/underscore/underscore.js:84:24)
at [object Object].methods (app/packages/livedata/livedata_server.js:731:7)
at new <anonymous> (app/packages/mongo-livedata/collection.js:111:13)
at app/todo.js:4:9
at /home/todos/Website/.meteor/local/build/server/server.js:111:21
at Array.forEach (native)
at Function.<anonymous> (/home/todos/Website/.meteor/local/build/server/underscore.js:76:11)
at /home/todos/Website/.meteor/local/build/server/server.js:97:7