I hereby claim:
- I am janx2 on github.
- I am janx2 (https://keybase.io/janx2) on keybase.
- I have a public key whose fingerprint is 174E E709 4D71 8181 229B BF3C 843C DD8C C631 4433
To claim this, I am signing this object:
/** | |
* Determine the common prefix elements of two collections. | |
* @param collection1 First collection. | |
* @param collection2 Second collection. | |
* @return The number of elements common to the start of each collection. | |
*/ | |
func commonPrefixLength<T: Swift.Collection, U: Swift.Collection where | |
T: Sequence, U: Sequence, | |
T.GeneratorType.Element: Equatable, | |
T.GeneratorType.Element == U.GeneratorType.Element> |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# SignAndPackageForMAS.sh v1.0.1 | |
# | |
# Codesign an app bundle and build a signed package ready for submission to the | |
# Mac App Store | |
# | |
# Copyright (c) 2014 Felix Schwarz (@felix_schwarz), IOSPIRIT GmbH (@iospirit) | |
# |
set theString to "Test" | |
set theseCharacters to characters of theString | |
tell application "System Events" | |
delay 2 -- Time to switch, if running from editor. Can be removed, if running from menu. | |
tell front process | |
repeat with thisChar in theseCharacters | |
keystroke (thisChar as text) | |
delay 0.1 |
#!/bin/bash | |
# Creates a complete class-dump of Xcode and all its libs and internal plug-ins. | |
# Assumes you have Class-Dump in your path and Xcode at the location set via `xcode-select`. | |
xcodeClassDump=${1:-"$HOME/Documents/XcodeClassDump"} | |
xcodePath=`xcode-select -p` | |
sourceXcodeRootPath="$(dirname "$xcodePath")" | |
echo "Dumping from Xcode: $sourceXcodeRootPath" |
Getting the webrtc code: https://webrtc.org/native-code/development/
Then:
cd webrtc-checkout/src/
Extracted using this Perl 5 tool (after installing its dependencies): https://github.com/JanX2/git-extract-files
javascript:(function()%7Bvar%20s=document.createElement('link');s.setAttribute('href','https://dyslexicfonts.com/plugin/easyread.css');s.setAttribute('rel','stylesheet');s.setAttribute('type','text/css');document.getElementsByTagName('head')%5B0%5D.appendChild(s);%7D)(); |
import Cocoa | |
// Support Foundation calls on String | |
public extension String { public var ns: NSString {return self as NSString} } | |
/// Custom Labeled Playground-Based Drag-and-Drop window | |
public class DropView: NSTextField { | |
// Default action handler | |
public var handler: ([String]) -> Void = { paths in Swift.print(paths) } |
#=============================================================================== | |
# Filename: boost.sh | |
# Author: Pete Goodliffe | |
# Copyright: (c) Copyright 2009 Pete Goodliffe | |
# Licence: Please feel free to use this, with attribution | |
# Modified version | |
#=============================================================================== | |
# | |
# Builds a Boost framework for iOS, iOS Simulator, and OSX. | |
# Creates a set of universal libraries that can be used on an iOS and in the |
import Foundation | |
/// Adapted from https://stackoverflow.com/a/62112007 | |
/// https://stackoverflow.com/questions/31778700/read-a-text-file-line-by-line-in-swift | |
extension URL { | |
/// Note: Only supports newline as the line break character. | |
func processLineByLine(processLine: @escaping (_ line: String) -> ()) { |