Skip to content

Instantly share code, notes, and snippets.

View hashier's full-sized avatar
🦆

Christopher Loessl hashier

🦆
View GitHub Profile
@hashier
hashier / README.md
Last active April 26, 2020 17:18
Fix for digistump / digispark development board
{
"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 July 2, 2017 15:53
Just +1 the badge and add '[modified]' to the title of the notification
//
// NotificationService.swift
// quickTest
//
// Created by Christopher Loessl on 2017-07-02.
// Copyright © 2017. All rights reserved.
//
import UserNotifications

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:

#!/bin/sh
# FindInFile.sh
#
#
# Created by Gregory Hill on 2/28/13.
#
# Usage:
# ./FindInFile.sh <baseDir>
# e.g. ~/Desktop/Code/Pandora/dev/Pandora
@hashier
hashier / common.h
Last active December 22, 2015 07:18
my common.h for ObjC
//
// common.h
// Common helper stuff
//
// Created by Christopher Loessl.
// Copyright (c) 2013 Christopher Loessl. All rights reserved.
//
#ifndef hashier_common_h
#define hashier_common_h
#import <Foundation/Foundation.h>
#ifdef DEBUG
#define NSLog(args...) ExtendNSLog(__FILE__,__LINE__,__PRETTY_FUNCTION__,args);
#else
#define NSLog(x...)
#endif
void ExtendNSLog(const char *file, int lineNumber, const char *functionName, NSString *format, ...);
@hashier
hashier / main.m
Last active December 19, 2015 13:59
KVC / KVO
//
// main.m
// KVO
//
// Created by Christopher Loessl on 7/14/13.
// Copyright (c) 2013 Christopher Loessl. All rights reserved.
//
/*
* The code is based on a tutorial from:
@hashier
hashier / output.txt
Created June 4, 2014 18:43
Clang and return types
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