Skip to content

Instantly share code, notes, and snippets.

View jakob's full-sized avatar

Jakob Egger jakob

View GitHub Profile
@jakob
jakob / UDPClient.h
Created January 29, 2023 13:37
Objective-C class for sending data via UDP
//
// UDPClient.h
// ParticleCar
//
// Created by Jakob Egger on 06/11/2016.
// Copyright © 2016 Egger Apps. All rights reserved.
//
#import <Foundation/Foundation.h>

Keybase proof

I hereby claim:

  • I am jakob on github.
  • I am jabakobob (https://keybase.io/jabakobob) on keybase.
  • I have a public key ASAdks5IMhDaWtYabcY9zNQlJBQ5P_OpWDymtIYbyUwoTAo

To claim this, I am signing this object:

@jakob
jakob / build-clangd.sh
Last active September 1, 2022 22:19
How To Build clangd
#!/bin/bash
set -e
mkdir clangd
cd clangd/
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm
cd llvm/tools
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
@jakob
jakob / async-await-example.md
Last active October 20, 2022 08:56
Swift Async/Await: A thorough example

I love the async/await proposal, but some of the examples are too simplified. In this message I'd like to explore what a more thorough example could look like.

Let's start with this example from the proposal:

@IBAction func buttonDidClick(sender:AnyObject) {
  beginAsync {
    let image = await processImage()
    imageView.image = image
  }

}

@jakob
jakob / hosts
Created January 31, 2014 09:38
Vanilla `/etc/hosts` file on Mavericks
##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting. Do not change this entry.
##
127.0.0.1 localhost
255.255.255.255 broadcasthost
::1 localhost
fe80::1%lo0 localhost