Skip to content

Instantly share code, notes, and snippets.

View mafis's full-sized avatar
🏠
Working from home

Maximilian Fischer mafis

🏠
Working from home
View GitHub Profile
{"dives": [{"created": "2011-06-01 07:03:16 +0000", "number": 1, "lastEdited": "2011-06-01 07:03:17 +0000", "locationName": "Hamburg", "location": "ag9ub3RlcGFkaS1zZXJ2ZXJyEAsSCERpdmVTcG90GKrAAgw", "key": "ag9ub3RlcGFkaS1zZXJ2ZXJyFwsSBURpdmVyGNqwAgwLEgREaXZlGAUM", "entry": "2010-05-27 18:27:00 +0000"}, {"created": "2011-06-03 07:12:36 +0000", "number": 3, "lastEdited": "2011-06-03 07:12:36 +0000", "locationName": "Hannover", "location": "ag9ub3RlcGFkaS1zZXJ2ZXJyEAsSCERpdmVTcG90GNuwAgw", "key": "ag9ub3RlcGFkaS1zZXJ2ZXJyGAsSBURpdmVyGNqwAgwLEgREaXZlGLwXDA", "entry": "2010-05-27 18:27:00 +0000"}], "npclass": "diveList"}
//so sollte es sein
{[{"created": "2011-06-01 07:03:16 +0000", "number": 1, "lastEdited": "2011-06-01 07:03:17 +0000", "locationName": "Hamburg", "location": "ag9ub3RlcGFkaS1zZXJ2ZXJyEAsSCERpdmVTcG90GKrAAgw", "key": "ag9ub3RlcGFkaS1zZXJ2ZXJyFwsSBURpdmVyGNqwAgwLEgREaXZlGAUM", "entry": "2010-05-27 18:27:00 +0000"}, {"created": "2011-06-03 07:12:36 +0000", "number": 3, "lastEdited": "2011-06-03 07:1
@mafis
mafis / gist:994791
Created May 27, 2011 07:16
Loading LoadingAlertView
public class LoadingAlertView : UIAlertView
{
public LoadingAlertView (string title) : base(title,String.Empty,null,null,null)
{
}
public override void LayoutSubviews ()
{
base.LayoutSubviews ();
1. Installation
2. Getting started
3. OOP
4. MVC
5. Interface
1. Nib2Cib
2. Code
6. Commucation with Server
7. Drag and Drop
Foundation/CPObject.j: if (typeof self._UID === "undefined")
Foundation/CPObject.j: self._UID = objj_generateObjectUID();
Foundation/CPObject.j: return _UID + "";
Foundation/CPProxy.j: if (typeof self._UID === "undefined")
Foundation/CPProxy.j: self._UID = objj_generateObjectUID();
Foundation/CPProxy.j: return _UID;
Objective-J/CFDictionary.js: this._UID = objj_generateObjectUID();
Objective-J/CFPropertyList.js: this._UID = objj_generateObjectUID();
Objective-J/CFURL.js: this._UID = objj_generateObjectUID();
Objective-J/CFURL.js: return this._UID;
var baseURL = @"http://localhost/~Vincent/Mail/Webservice";
var completeURL = [CPString stringWithFormat:@"%@/%@", baseURL,@"?class=FetchImap&method=getMailboxes"];
var request = [CPURLRequest requestWithURL:[CPURL URLWithString:completeURL]];
@mafis
mafis / version.cs
Created April 10, 2011 12:05
Read out Version of an Monotouch App
string version = NSBundle.MainBundle.ObjectForInfoDictionary("CFBundleVersion").ToString();
//Mit Var nur in der Datei verfügbar
var kCellHeight = 100;
//Ohne Var als Global im ganzen Programm verfügbar
kCellHeight = 50;
UIView view = new UIView();
//Dicke des Randes
view.Layer.BorderWidth = 1;
//Farbe des Randes
view.Layer.BorderColor = UIColor.FromRGB(100,100,100).CGColor;
//Bilder direkt aus dem Bundle laden
bundleImage.Image = UIImage.FromBundle("14_fat-cat.jpeg");
//Bilder aus einen Verzeichniss im Bundle laden
folderImage.Image = UIImage.FromBundle("TestFolder/14_fat-cat.jpeg");
char[] alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ".ToCharArray();