Skip to content

Instantly share code, notes, and snippets.

View fuxx's full-sized avatar

Stefan Mayer-Popp fuxx

View GitHub Profile
@fuxx
fuxx / asm-template.txt
Created July 25, 2012 18:57
Template files for NASM programs
; Executable name : %EXEC_NAME%
; Version : 1.0
; Created date : %CREATION_DATE%
; Author : Ish - StefanPopp.de
; Description
;
;
;
; Build using these commands:
; nasm -f elf -g -F stabs %EXEC_NAME%.asm
@fuxx
fuxx / keybase.md
Created May 2, 2014 14:29
Keybase proof

Keybase proof

I hereby claim:

  • I am fuxx on github.
  • I am stefanpopp (https://keybase.io/stefanpopp) on keybase.
  • I have a public key whose fingerprint is 0D1A AA55 8919 0120 4828 219F CFC9 C03D AFD2 6FAD

To claim this, I am signing this object:

import Cocoa
// Operator überladen und missbrauchen
@infix func &- (left: Int, right: Int) -> Int {
var ergebnis = left - right
if (ergebnis < 0) {
ergebnis = -ergebnis;
}
return ergebnis
}
import UIKit
let a: Int = 8
let b: Double = 16
let c: CGFloat = 32
let d = CGFloat(Double(a) * b) / c
println(d)
protocol A {
var name: String { get set }
func foo()
}
protocol B {
var name: String { get set }
func foo()
}
@fuxx
fuxx / gist:b8274e428b6c9f5e24a7
Last active March 23, 2016 11:11
Include sqlite3 by architecture for Xcode 7.3
module sqlite3 [system] {
module arm {
header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sqlite3.h"
requires arm
}
module arm64 {
header "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/sqlite3.h"
requires arm64
}
@fuxx
fuxx / applescript
Created July 21, 2016 21:35
Twitter unblock apple script safari
tell application "Safari"
activate
repeat
open location "https://twitter.com/settings/blocked"
delay 5
repeat 30 times
tell application "System Events"
key down {command}
key code 125
key up {command}
@fuxx
fuxx / XCApplicationPrivateExtension.h
Created June 7, 2017 08:48
private api xcode xctest
//
// XCApplicationPrivateExtension.h
// C24Core
//
// Created by Stefan Mayer-Popp on 20.05.16.
// Copyright © 2016 CocoaPods. All rights reserved.
//
#ifndef XCApplicationPrivateExtension_h
#define XCApplicationPrivateExtension_h
import Foundation
import XCTest
enum Safari {
static func launch() -> XCUIApplication {
// Open safariapp
let safariApp = XCUIApplication(privateWithPath: nil, bundleID: "com.apple.mobilesafari")
//
// SafariTestsBaseClass.swift
// C24Core
//
// Created by Stefan Mayer-Popp on 24.05.16.
// Copyright © 2016 CocoaPods. All rights reserved.
//
import Foundation
import XCTest