Ingwie@Ingwies-Macbook-Pro.local /p/tmp $ node
> var fs = require("fs")
undefined
> var data = fs.readFileSync("./input.txt")
undefined
> data.toString().trim().split(" ").forEach(function(e){ process.stdout.write(String.fromCharCode(Number("0b"+e))) })
Ich Liebe dich mein Engel... Antonia du bist kein einfaches Mädchen ... du bist mein Mädchen undefined
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Gravity { | |
<template T> | |
class TypedArray { | |
private: | |
typedef marray_t(T) array_struct; | |
array_struct arr; | |
public: | |
TypedArray() { marray_init(this->arr); } | |
TypedArray(array_struct arr) { this->arr = arr; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file | |
* Demonstrating how to use classes or opaque data types | |
* within Gravity. | |
* | |
* This does NOT use xData attached to functions... | |
* but rather gravity_instance_t's xdata. | |
*/ | |
#include <stdio.h> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Based on gravity/api/exec_c.c | |
#include <stdio.h> | |
#include <math.h> | |
#include "gravity_compiler.h" | |
#include "gravity_macros.h" | |
#include "gravity_vm.h" | |
#include "gravity_core.h" | |
#include "gravity_value.h" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import "Toolchains/Native" for Native | |
import "FLTK" for libfltk | |
import "Detector/CC" for CC_Detector | |
namespace("IngwiePhoenix") {|ns| | |
// @var ns: Current namespace object. Can be omitted. | |
Native.executable("MyApp") {|t| | |
// @var t: Current target | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file | |
* Kleines Beispiel einer Main Methode. | |
* | |
* @author Kevin Ingwersen | |
*/ | |
class MainExample { | |
// Als aller Erstes definieren wir mal eine kleine Methode... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file | |
* Implementierung des chinesischen Spiels "Baguenaudier". | |
* @see Aufgabe 4.2 | |
* @author Kevin Ingwersen | |
*/ | |
/** | |
* @section Spielregeln | |
* Kurze zusammenfassung der Regeln (angelegt aus Eigeninteresse). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ----------------------------------------------------------------------------------------------------------------------------- | |
# --------------------- General Settings -------------------------------------------------------------------------------------- | |
# ----------------------------------------------------------------------------------------------------------------------------- | |
HOSTNAME="ingwie-io" | |
DOMAINNAME="ingwie.io" | |
CONTAINER_NAME=mail | |
# empty => uses the `hostname` command to get the mail server's canonical hostname |
# Heading 1
## Heading 2
### Heading 3
... continues to heading 6 ...
Using ` (backtick) will start code...However, use three of them, followed by alanguage name - such as PHP - and you tell the
respective program to show syntax highlighting.
A Mac Application is structured as a bundle. Assume you have a Hello World application in Objective-C, the most "by-hand" way to build the bundle would be so:
Code:
// Copied from: http://macosx-programming.blogspot.de/2011/09/simple-gui-hello-world-using-cocoa.html
#include <Cocoa/Cocoa.h>
int main(int argc, const char** argv)
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];