Skip to content

Instantly share code, notes, and snippets.

View MatthijsKamstra's full-sized avatar
🤖
Creative Coding

Matthijs Kamstra MatthijsKamstra

🤖
Creative Coding
View GitHub Profile
@MatthijsKamstra
MatthijsKamstra / Main.hx
Last active October 30, 2023 18:45
Reading and writing to a file with Haxe
package;
/**
* Main class for reading and writing a simple text file.
* Author: Matthijs Kamstra aka [mck]
*/
class Main {
/**
* Constructor for the Main class.
* It demonstrates reading and writing operations on a text file.
@MatthijsKamstra
MatthijsKamstra / Main.hx
Last active October 30, 2023 18:47
Write to a file in Haxe
package;
/**
* Main class for a simple file writing example.
* Author: Matthijs Kamstra aka [mck]
*/
class Main {
/**
* Constructor for the Main class.
* It demonstrates how to write a string to a file.
@MatthijsKamstra
MatthijsKamstra / Main.hx
Last active October 2, 2023 11:24
Create a hello world in Haxe
// 👋 Hello World in Haxe
/*
Declaring an empty package. A package isn't necessary, but it's useful if you want to create
a namespace for your code (e.g. org.yourapp.ClassName).
Omitting package declaration is the same as declaring an empty package.
*/
package; // empty package, no namespace.
// Here's the class definition.
@MatthijsKamstra
MatthijsKamstra / feature-flags.json
Created April 5, 2023 09:12
feature-flags.json
{
"bookmarks": true,
"snippets": false,
"packages": true
}
@MatthijsKamstra
MatthijsKamstra / adobe-illustrator-cs2-osx.xml
Last active October 21, 2022 09:44
Inkscape Illustrator shortcuts for OSX
<?xml version="1.0"?>
<keys name="Adobe Illustrator">
<!--
This file contains a profile of keyboard shortcuts for Inkscape
in the style of Adobe Illustrator.
See default.xml for more information.
-->
@MatthijsKamstra
MatthijsKamstra / Main.hx
Last active August 31, 2021 15:57
Haxe and Webassemply
@:buildXml("
<linker id='exe' exe='emcc'>
<flag value='-s' />
<flag value='WASM=1' />
</linker>
")
class Main {
static function main() {
trace('Hello Web Assembly');
}
@MatthijsKamstra
MatthijsKamstra / gist:8373220
Created January 11, 2014 16:40
arkOS Installer Error
11-01-14 17:35:51,332 launchservicesd[76]: Application App:"arkOS Installer" asn:0x0-9b79b7 pid:31717 refs=7 @ 0x7f905b660ec0 tried to be brought forward, but isn't in fPermittedFrontApps ( ( "LSApplication:0x0-0x9b89b8 pid=31720 "SecurityAgent"")), so denying. : LASSession.cp #1481 SetFrontApplication() q=LSSession 100005/0x186a5 queue
@MatthijsKamstra
MatthijsKamstra / 21errors
Created May 15, 2012 06:54
Monodevelop - haxebinding - compilation - 21 errors
Building: HaxeBinding (Debug)
Performing main compilation...
/Library/Frameworks/Mono.framework/Versions/2.10.9/bin/dmcs /noconfig "/out:/Users/mck/Documents/GIT/haXe/md-haxebinding/HaxeBinding/bin/Debug/MonoDevelop.HaxeBinding.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gtk-sharp-2.0/gtk-sharp.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gtk-sharp-2.0/glib-sharp.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/gtk-sharp-2.0/gdk-sharp.dll" "/r:/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.Core.dll" "/r:/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/MonoDevelop.Ide.dll" "/r:/Library/Frameworks/Mono.framework/Versions/2.10.9/lib/mono/4.0/System.Xml.dll" "/r:/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/bin/Mono.TextEditor.dll" "/r:/Applications/MonoDevelop.app/Contents/MacOS/lib/monodevelop/AddIns/Mono
@MatthijsKamstra
MatthijsKamstra / foobar.template.xml
Created April 12, 2012 09:01
Simple tempates that doesn't work (MonoDevelop - haXe addin)
<!--
in OSX this snippets end up here:
/Users/[foobar]/Library/MonoDevelop-2.8/Snippets/
-->
<?xml version="1.0" encoding="utf-8"?>
<CodeTemplates version="3.0">
<CodeTemplate version="2.0">
<Header>
<_Group>haXe</_Group>