Skip to content

Instantly share code, notes, and snippets.

Avatar
🦆

Christopher Loessl hashier

🦆
View GitHub Profile
@hashier
hashier / README.md
Last active Apr 26, 2020
Fix for digistump / digispark development board
View README.md
View README.md
View listings.json
{
"listings": [{
"listingType": "ActivePropertyListing",
"id": "1234567890",
"askingPrice": "2 650 000 kr",
"monthlyFee": "1 498 kr/mån",
"municipality": "Gällivare kommun",
"area": "Heden",
"daysOnHemnet": 1,
"livingArea": 120,
@hashier
hashier / NotificationService.swift
Created Jul 2, 2017
Just +1 the badge and add '[modified]' to the title of the notification
View NotificationService.swift
//
// NotificationService.swift
// quickTest
//
// Created by Christopher Loessl on 2017-07-02.
// Copyright © 2017. All rights reserved.
//
import UserNotifications
View keybase.md

Keybase proof

I hereby claim:

  • I am hashier on github.
  • I am hashier (https://keybase.io/hashier) on keybase.
  • I have a public key whose fingerprint is 8A66 095F 4960 62DB D3D1 80D5 44F1 DB06 C926 11B4

To claim this, I am signing this object:

@hashier
hashier / output.txt
Created Jun 4, 2014
Clang and return types
View output.txt
2014-06-04 20:43:10.363 Untitled 9[49902:507] Output: http://www.apple.com
2014-06-04 20:43:10.365 Untitled 9[49902:507] Output: NSString
@hashier
hashier / block copy.m
Created May 13, 2014
How to call blocks?
View block copy.m
#import <Foundation/Foundation.h>
// 2nd class
@interface DownTheLine : NSObject
@end
@implementation DownTheLine
-(void)deepDown:(void (^)(int var))completionHandler {
completionHandler(4);
View .lldbinit
command script import ~/Library/lldb/sniff_objc_exception_throw.py
@hashier
hashier / block.m
Last active Aug 29, 2015
Blocks on stack and on the heap and pointers to it
View block.m
#import <Foundation/Foundation.h>
int main(int argc, char *argv[]) {
@autoreleasepool {
typedef int(^Block)(void);
void *p0, *p1;
Block blockOnStack[3];
@hashier
hashier / strong-copy.m
Created Feb 25, 2014
Property: What's the difference between strong and copy. Blogpost: http://stackenblochen.blogsport.eu/2014/02/25/property-strong-and-copy/
View strong-copy.m
//
// main.m
// strong_retain_copy
//
// Created by Christopher Loessl on 25/02/14.
// Copyright (c) 2014 Christopher Loessl. All rights reserved.
//
#import <Foundation/Foundation.h>
You can’t perform that action at this time.