Skip to content

Instantly share code, notes, and snippets.

View mkalmes's full-sized avatar
🕵️
NSTrufflePig

Marc Kalmes mkalmes

🕵️
NSTrufflePig
View GitHub Profile
@mkalmes
mkalmes / firebase-iOS-breakdown
Created November 27, 2020 10:00 — forked from steipete/firebase-iOS-breakdown
Firebase iOS Version breakdown
// How to:
// 1. Go in the Firebase Analytics Dashboard
// 2. Filter iOS Platform only
// 3. Scroll down, select `Device` under the "What is your audience like?" widget
// 4. Export the CSV data (top right of the corner, there's a `...` menu with Download CSV option)
// 5. Open the file and select the iOS breakdown raw data
// 6. Replace your data with the sample data in this script
// 7. Run the script in a Xcode Playground
// 8. See the terminal output
@mkalmes
mkalmes / Getting started with Flutter as an iOS developer.md
Last active May 8, 2019 14:29
Getting started with Flutter as an iOS developer

Getting started with Flutter as an iOS developer

The toolchain

To get started with Flutter, you need to install the toolchain. The main goal of Flutter is to provide one code base for different platforms.

Start by installing Flutter. Check out the installation instructions for macOS for details. I'll briefly describe what you need.

  • Flutter SDK (v1.2.1 at the time of writing)
  • Android SDK and Android Studio
@mkalmes
mkalmes / md5_demo.m
Last active September 27, 2018 14:43
md5 Demo
#import <Foundation/Foundation.h>
// clang -g -fobjc-arc -Wall -framework Foundation -o md5_demo md5_demo.m
@interface Demo : NSObject
@end
@implementation Demo
void md5(NSString *input) {
@mkalmes
mkalmes / mutableCopyDemo.m
Created September 11, 2017 17:21
Playing with `copy` and `strong`…
#import <Foundation/Foundation.h>
// clang -g -fobjc-arc -Wall -framework Foundation -o mutableCopyDemo mutableCopyDemo.m
@interface SomeClass : NSObject
@property (nonatomic, strong) NSMutableArray *aStrongArray;
@property (nonatomic, copy) NSMutableArray *aCopiedArray;
@end
@mkalmes
mkalmes / Breakpoints_v2.xcbkptlist
Created August 29, 2016 06:22 — forked from Ashton-W/Breakpoints_v2.xcbkptlist
My User Breakpoints_v2.xcbkptlist
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "2"
version = "2.0">
<Breakpoints>
<!-- All Exceptions -->
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.ExceptionBreakpoint">
<BreakpointContent
@mkalmes
mkalmes / nonnull-warning.m
Last active March 21, 2016 12:48
_Nonnull and warnings
#import <Foundation/Foundation.h>
// clang -g -fobjc-arc -Wall -framework Foundation -o nonnull-warning nonnull-warning.m
@interface Demo : NSObject
@end
@implementation Demo
+ (void)shizzleFrizzle:(NSString * _Nonnull)drizzle {
@mkalmes
mkalmes / cleanlinks.js
Created November 11, 2013 19:32
Javascript Bookmarklet for Clean Links
@mkalmes
mkalmes / dateTest.m
Created November 22, 2012 23:58
Fun with NSDate
#import <Foundation/Foundation.h>
// clang -g -fobjc-arc -Wall -framework Foundation -o dateTest dateTest.m
@interface DateTest : NSObject
@end
@implementation DateTest