A script to fix EDID problems on external monitors in macOS.
-
Connect only the problem display.
-
Create this directory structure (if it doesn't already exist):
// | |
// NSObject+setValuesForKeysWithJSONDictionary.h | |
// SafeSetDemo | |
// | |
// Created by Tom Harrington on 12/29/11. | |
// Copyright (c) 2011 Atomic Bird, LLC. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
# This can be inserted as a Run Script build phase or a Build Rule in your Xcode project. | |
# You can set this to whatever you like. | |
DOCUMENTATION_DIR="Documentation" | |
BUNDLE_ID=$(/usr/libexec/PlistBuddy -c "Print :CFBundleIdentifier" "${BUILD_ROOT}/${INFOPLIST_PATH}") | |
# DOCUMENTATION_FOLDER_PATH | |
if [ -e /usr/local/bin/appledoc ] ; then | |
/usr/local/bin/appledoc --project-name $PRODUCT_NAME --output $DOCUMENTATION_DIR --logformat xcode --exit-threshold 2 --verbose xcode --docset-bundle-filename "$BUNDLE_ID.$PRODUCT_NAME.docset" . |
######################### | |
# .gitignore file for Xcode4 and Xcode5 Source projects | |
# | |
# Apple bugs, waiting for Apple to fix/respond: | |
# | |
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation? | |
# | |
# Version 2.6 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# |
// | |
// C4WorkSpace.m | |
// | |
// Created by Travis Kirton | |
// | |
#import "C4WorkSpace.h" | |
@implementation C4WorkSpace { | |
UIView *v; |
*.strings utf16 diff=localizablestrings |
var mediaJSON = { "categories" : [ { "name" : "Movies", | |
"videos" : [ | |
{ "description" : "Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" ], | |
"subtitle" : "By Blender Foundation", | |
"thumb" : "images/BigBuckBunny.jpg", | |
"title" : "Big Buck Bunny" | |
}, | |
{ "description" : "The first Blender Open Movie from 2006", | |
"sources" : [ "http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/ElephantsDream.mp4" ], |
import UIKit | |
// Returns a list of points on the convex hull in counter-clockwise order. | |
// Note: the last point in the returned list is the same as the first one. | |
// | |
// https://en.wikibooks.org/wiki/Algorithm_Implementation/Geometry/Convex_hull/Monotone_chain | |
// | |
func closedConvexHull(points_ : [CGPoint]) -> [CGPoint] { | |
// 2D cross product of OA and OB vectors, i.e. z-component of their 3D cross product. |
(defn deaccent [str] | |
"Remove accent from string" | |
;; http://www.matt-reid.co.uk/blog_post.php?id=69 | |
(let [normalized (java.text.Normalizer/normalize str java.text.Normalizer$Form/NFD)] | |
(clojure.string/replace normalized #"\p{InCombiningDiacriticalMarks}+" ""))) |
// MICMSampleBuffer.h | |
// MovieMaker | |
// | |
// Created by Kevin Meaney on 02/01/2015. | |
// Copyright (c) 2015 MIT License. All rights reserved. | |
@import Foundation; | |
@import AVFoundation; | |
@interface MICMSampleBuffer : NSObject <NSCopying> |