This file contains hidden or 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
# https://github.com/fastlane/fastlane/issues/7676 | |
desc "All App Store Connect" | |
lane :appStoreConnect do #|options| | |
self.runner.current_platform = :ios | |
appStoreConnect | |
self.runner.current_platform = :tvos | |
appStoreConnect | |
# the following executes before_all every time |
This file contains hidden or 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
#!/usr/bin/env fish | |
set kodiRepo "$HOME/dev/kodi/macos" | |
set -x CODE_SIGN_IDENTITY "Developer ID Application: Kodi Foundation" | |
set DEV_ACCOUNT foo | |
set DEV_ACCOUNT_PASSWORD bar | |
set DEV_TEAM "QR7RHK8K4X" | |
# fixed params | |
set kodiVolume /Volumes/Kodi |
This file contains hidden or 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
let spaceWidth = { () -> Double in | |
let font = self.font! | |
var spaceGlyph = CGGlyph() | |
var space: UniChar = numericCast((" " as Unicode.Scalar).value) | |
_ = CTFontGetGlyphsForCharacters(font, &space, &spaceGlyph, 1) | |
return CTFontGetAdvancesForGlyphs(font, .horizontal, &spaceGlyph, nil, 1) | |
}() | |
// to be called from func layoutManager(_ layoutManager: NSLayoutManager, shouldSetLineFragmentRect lineFragmentRect: UnsafeMutablePointer<CGRect>, lineFragmentUsedRect: UnsafeMutablePointer<CGRect>, baselineOffset: UnsafeMutablePointer<CGFloat>, in textContainer: NSTextContainer, forGlyphRange glyphRange: NSRange) | |
let addSpaces = Int(Double(lineFragmentRect.pointee.maxX - lineFragmentUsedRect.pointee.maxX) / spaceWidth) |
This file contains hidden or 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
- (void)viewDidLoad { | |
[super viewDidLoad]; | |
__auto_type appLabel = [UILabel new]; | |
appLabel.translatesAutoresizingMaskIntoConstraints = NO; | |
appLabel.text = NSBundle.mainBundle.executablePath.lastPathComponent; | |
[self.view addSubview:appLabel]; | |
__auto_type createLabel = ^{ | |
__auto_type l = [UILabel new]; |
This file contains hidden or 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 <iostream> | |
#include <fstream> | |
#include <sstream> | |
#include <vector> | |
#include <cmath> | |
#include <cstring> | |
using std::string; |
This file contains hidden or 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 | |
// FSTraversal | |
// | |
// Created by Andrey Filipenkov on 03/03/17. | |
// Copyright © 2017 Andrey Filipenkov. All rights reserved. | |
// | |
@import Foundation; |
This file contains hidden or 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
import plistlib | |
# Read Plists | |
myAppInfoPlist = plistlib.readPlist(“MyApp/Info.plist”) | |
watchKitExtensionInfoPlist = plistlib.readPlist(“WatchKitExtension/Info.plist”) | |
watchKitAppInfoPlist = plistlib.readPlist(“WatchKitApp/Info.plist”) | |
# Update Watch Kit Extension Plist | |
watchKitExtensionInfoPlist[“NSExtension”][“NSExtensionAttributes”][“WKAppBundleIdentifier”] = watchKitAppInfoPlist[“CFBundleIdentifier”] | |
watchKitExtensionInfoPlist[“CFBundleVersion”] = myAppInfoPlist[“CFBundleVersion”] |
This file contains hidden or 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
#!/bin/bash | |
cd "${HOME}/Library/Application Support/Developer/Shared/Xcode/Plug-ins" | |
for plugin in *.xcplugin; do | |
/usr/libexec/PlistBuddy -c "Add :DVTPlugInCompatibilityUUIDs: string $1" "${plugin}/Contents/Info.plist" | |
done |
NewerOlder