- Find
SystemCodeSnippets.codesnippetsfile. For Xcode8:
/Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Resources/SystemCodeSnippets.codesnippets - Make save copy of snippets
cp SystemCodeSnippets.codesnippets ~/Desktop/ - Open in vim:
sudo vim SystemCodeSnippets.codesnippets - Move every open bracket on new line
:%s/ {/\r{/g - Save and close
:wq - Restart Xcode
- ????
- PROFIT!
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 Cocoa | |
| extension String { | |
| // https://stackoverflow.com/a/36258684/2227743 | |
| var containsEmoji: Bool { | |
| for scalar in self.unicodeScalars { | |
| switch scalar.value { | |
| case 0x1F600...0x1F64F, // Emoticons | |
| 0x1F300...0x1F5FF, // Misc Symbols and Pictographs |
I wrote this script when Yakuza 0 was a PS4 exclusive, but I've heard whispers that it works just fine for the PC version. No need for PS4 Remote Play
Using the PS4 Remote Play and AutoHotKey for Windows you can automate leveling up the Legend styles for Kiryu (Dragon of Dojima), and Majima (Mad Dog of Shimano).
The PS4 Remote Play app allows keyboard emulation for the Dpad, and "x" button
The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.
The correct way of creating a private frok by duplicating the repo is documented here.
For this assignment the commands are:
- Create a bare clone of the repository.
(This is temporary and will be removed so just do it wherever.)
git clone --bare git@github.com:usi-systems/easytrace.git
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
| struct Keycode { | |
| // Layout-independent Keys | |
| // eg.These key codes are always the same key on all layouts. | |
| static let returnKey : UInt16 = 0x24 | |
| static let enter : UInt16 = 0x4C | |
| static let tab : UInt16 = 0x30 | |
| static let space : UInt16 = 0x31 | |
| static let delete : UInt16 = 0x33 | |
| static let escape : UInt16 = 0x35 |
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
| T@"<NSTouchBarCustomizationCursorManagerDelegate>",W,V_delegate | |
| T@"<NSTouchBarPressAndHoldTransposerDelegate>",W,V_delegate | |
| T@"NSTouchBarItem",&,V_touchBarItem | |
| NSTouchBarLogOnTouches | |
| NSTouchBarViewObservationContext | |
| T@"NSTouchBarViewController",R,V_applicationTouchBarViewController | |
| T@"NSTouchBarCustomizationController",R | |
| T@"NSTouchBarCustomizationPreviewItemContainerView",R | |
| /Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1504.60/TouchBar.subproj/NSTouchBarCustomizationPreviewCollectionViewItem.m | |
| T@"NSTouchBar",& |
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
| // | |
| // File: /System/Library/PrivateFrameworks/DFRFoundation.framework/Versions/A/DFRFoundation | |
| // UUID: C3548955-29E4-3B77-BB2D-687FDA287B87 | |
| // | |
| // Arch: x86_64 | |
| // Current version: 104.2.0 | |
| // Compatibility version: 1.0.0 | |
| // Source version: 104.2.0.0.0 | |
| // Minimum Mac OS X version: 10.12.0 | |
| // SDK version: 10.12.0 |
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
| wget -c --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-cookie" https://download.oracle.com/otn-pub/java/jdk/12.0.2+10/e482c34c86bd4bf8b56c0b35558996b9/jdk-12.0.2_linux-x64_bin.tar.gz |
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 Foundation | |
| import WebKit | |
| final class WebCacheCleaner { | |
| class func clean() { | |
| HTTPCookieStorage.shared.removeCookies(since: Date.distantPast) | |
| print("[WebCacheCleaner] All cookies deleted") | |
| WKWebsiteDataStore.default().fetchDataRecords(ofTypes: WKWebsiteDataStore.allWebsiteDataTypes()) { records in |
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 | |
| killall Xcode | |
| xcrun -k | |
| xcodebuild -alltargets clean | |
| rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang/ModuleCache" | |
| rm -rf "$(getconf DARWIN_USER_CACHE_DIR)/org.llvm.clang.$(whoami)/ModuleCache" | |
| rm -rf ~/Library/Developer/Xcode/DerivedData/* | |
| rm -rf ~/Library/Caches/com.apple.dt.Xcode/* | |
| open /Applications/Xcode.app |