Skip to content

Instantly share code, notes, and snippets.

View gekitz's full-sized avatar
🌴
On vacation

Georg Kitz gekitz

🌴
On vacation
View GitHub Profile
@gekitz
gekitz / keybase.md
Created April 16, 2014 22:38
keybase.md

Keybase proof

I hereby claim:

  • I am gekitz on github.
  • I am gekitz (https://keybase.io/gekitz) on keybase.
  • I have a public key whose fingerprint is 9F42 1470 F4EB 8B9E 8984 A6C3 3320 A90A 9784 0D27

To claim this, I am signing this object:

@gekitz
gekitz / file.m
Created April 30, 2014 11:07
Never do that if performance matters
- (BOOL)twitterAuthorized {
ACAccountStore *store = [ACAccountStore new];
ACAccountType *accountType = [store
accountTypeWithAccountTypeIdentifier:ACAccountTypeIdentifierTwitter];
return [accountType accessGranted];
}
@gekitz
gekitz / sample.swift
Created July 23, 2014 21:10
Why do I have to do this, shouldn't autolayout figure out the height on it's own?
class GKTextAlertContentView: UIView {
@IBOutlet var titleLabel: UILabel!
@IBOutlet var textLabel: UILabel!
@IBOutlet var textField: UITextField!
@IBOutlet var submitButton: UIButton!
override func intrinsicContentSize() -> CGSize {
let titleSize = titleLabel.intrinsicContentSize()
override func addSubview(view: UIView) {
//for some reason view could also be nil,
//even though it's not an optional
let possibleNilView:UIView? = view as UIView?
if let v = possibleNilView? {
if v.dynamicType.description() == "_" + "UITableViewCell" + "SeparatorView" {
return
}
@gekitz
gekitz / sample-office-time-tracking.json
Created February 27, 2017 08:29
sample-office-time-tracking.json
{
"created": "2017-02-24T12:53:56.369+01:00",
"id": 0,
"started": "2017-02-27T09:27:46.279+01:00",
"updated": "2017-02-24T12:53:56.369+01:00",
"user": 14,
"uuid": "e5cba7d9-bca9-40ce-8ad7-b953c2996c3a",
"hq_work_end": "2017-02-27T09:27:54.047+01:00",
"hq_work_start": "2017-02-27T09:27:46.279+01:00"
}
@gekitz
gekitz / TooltipView.swift
Created September 5, 2018 17:14 — forked from simonwuyts/TooltipView.swift
Customizable Tooltips
//
// TooltipView.swift
// Customizable Tooltips
//
// Copyright © 2017 Simon Wuyts
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@gekitz
gekitz / index.html
Created November 8, 2021 07:12
Popup Sample
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sample Site</title>
<!-- Script for showing/hiding thte modal -->
<script>
window.onload = function() {
// check if user uses a mobile device