Skip to content

Instantly share code, notes, and snippets.

@csutanyu
csutanyu / MTLTexture+Z.swift
Created February 21, 2019 09:00 — forked from codelynx/MTLTexture+Z.swift
Piece of Utility code to make CGImage from MTLTexture under (BGRA8Unorm)
//
// MTLTexture+Z.swift
// ZKit
//
// The MIT License (MIT)
//
// Copyright (c) 2016 Electricwoods LLC, Kaz Yoshikawa.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal

Sometimes we need to open Setting's Preferences not of our app, but of the iPhone itself. What should we do to acomplish this?

[UPDATE: Added Wallet And Apple Pay below]

[UPDATE: Changed prefs for Bluetooth]

keyboard

@csutanyu
csutanyu / brand
Created March 3, 2014 05:39 — forked from cowboygneox/brand
#!/bin/bash
set -e
# Making sure GRIP_HOME is set
: ${GRIP_HOME?"GRIP_HOME must be set to Grip's project root"}
IPA=$1
NAME=$2
PROFILE=$3
@csutanyu
csutanyu / Makefile
Created January 7, 2014 08:51 — forked from j0sh/Makefile
# iOS builds for ARMv7 and simulator i386.
# Assumes any dependencies are in a local folder called libs and
# headers in a local folder called headers.
# Dependencies should already have been compiled for the target arch.
PROJ=untitled
ifeq ($(IOS), 1)
ARCH=armv7
DEVICE=OS
CC_FLAGS=-arch $(ARCH)