alias xcbuild=$(xcode-select -p)/../SharedFrameworks/XCBuild.framework/Versions/A/Support/xcbuild
# THIS DOESNT WORK YET: xcbuild openIDEConsole # … then switch to Xcode ➡️
xcbuild showSpecs
xcbuild build <foo.pif> [—target <target>]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Copyright (c) 2013 Micha Mazaheri | |
* Released under the MIT License: http://opensource.org/licenses/MIT | |
*/ | |
#define LMWindowDEBUGResponders | |
#ifdef LMWindowDEBUGResponders | |
static BOOL _showFirstResponderOverlay = YES; | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// UIView+RSKeyboardLayoutGuide.swift | |
// RSTouchUIKit | |
// | |
// Created by Daniel Jalkut on 12/23/18. | |
// | |
import UIKit | |
// Extends UIView to expose a keyboardLayoutGuide property that can be used to tie a view controller's content |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// RSDimensionHuggingTextField.swift | |
// RSUIKit | |
// | |
// Created by Daniel Jalkut on 6/13/18. | |
// | |
import Cocoa | |
// You probably want to use one of RSHeightHuggingTextField or RSWidthHuggingTextField, below |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Line up a Python script for dynamically loading the private framework | |
-- and invoking the required private methods to get current grayscale mode | |
-- and set it to the opposite value. | |
set toggleGrayScript to "python -c 'from ctypes import cdll | |
lib = cdll.LoadLibrary(\"/System/Library/PrivateFrameworks/UniversalAccess.framework/UniversalAccess\") | |
lib.UAGrayscaleSetEnabled(lib.UAGrayscaleIsEnabled() == 0) | |
'" | |
do shell script toggleGrayScript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
// Compile with cc -o gray gray.c -framework UniversalAccess -F /System/Library/PrivateFrameworks | |
extern void UAGrayscaleSetEnabled(int isEnabled); | |
extern int UAGrayscaleIsEnabled(); | |
int main() { | |
UAGrayscaleSetEnabled(!UAGrayscaleIsEnabled()); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello there |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
testing |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Hello there |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.m | |
// ChangeKeyboard | |
// | |
// Created by Daniel Jalkut on 10/6/15. | |
// Copyright © 2015 Red Sweater. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <Carbon/Carbon.h> |
NewerOlder