- Go to System Preferences -> Keyboard -> Modifier Keys...
- Change “Caps Lock” to “No action”
- Install Seil
- Change the Caps Lock key in Seil to keyCode 80 (F19)
- Install Karabiner
- Open Karabiner and go to Misc & Uninstall -> Open private.xml
- Copy the contents of this gist's example to the XML file and save
- In Karabiner, go to Change Keys -> Reload XML
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 | |
| public indirect enum JSON: Equatable { | |
| case null | |
| case string(String) | |
| case number(String) | |
| case bool(Bool) | |
| case dictionary([String: JSON]) | |
| case array([JSON]) | |
| } |
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
| // Dark Mode | |
| #FFFEFE rgba(255, 254, 254, 0.847) hsla(320, 0%, 100%, 0.847) labelColor | |
| #FFFEFE rgba(255, 254, 254, 0.549) hsla(320, 0%, 100%, 0.549) secondaryLabelColor | |
| #FFFEFE rgba(255, 254, 254, 0.247) hsla(320, 0%, 100%, 0.247) tertiaryLabelColor | |
| #FFFEFE rgba(255, 254, 254, 0.098) hsla(320, 0%, 100%, 0.098) quaternaryLabelColor | |
| #3486FE rgba(52, 134, 254, 1.000) hsla(215, 79%, 99%, 1.000) linkColor | |
| #FFFEFE rgba(255, 254, 254, 0.498) hsla(320, 0%, 100%, 0.498) placeholderTextColor | |
| #FFFEFE rgba(255, 254, 254, 0.847) hsla(320, 0%, 100%, 0.847) windowFrameTextColor | |
| #FFFEFE rgba(255, 254, 254, 1.000) hsla(320, 0%, 100%, 1.000) selectedMenuItemTextColor |
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
| // Copy & paste this is code in Javascript Console when logged into Search Ads | |
| // When executed you'll get phrase and numeral search popularity for each keyword | |
| // Example: https://www.dropbox.com/s/iuuk8uipwnpvnn6/searchads.png?dl=0 | |
| $('td.iad-keyword').each(function(idx, value) { | |
| var keyword = value.innerHTML; | |
| var searchVolume = value.nextSibling.childNodes[0].childNodes[0].childNodes[0].innerHTML; | |
| console.log(keyword + ' : ' + searchVolume.replace(' Complete', '')); | |
| }); |
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/sh | |
| defaults read com.apple.finder CreateDesktop > /dev/null 2>&1 | |
| enabled=$? | |
| if [ "$1" = "off" ]; then | |
| if [ $enabled -eq 1 ]; then | |
| defaults write com.apple.finder CreateDesktop false | |
| osascript -e 'tell application "Finder" to quit' | |
| open -a Finder |
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
| @interface UIPreviewForceInteractionProgress : NSObject | |
| - (void)endInteraction:(BOOL)arg1; | |
| @end | |
| @interface UIPreviewInteractionController : NSObject | |
| @property (nonatomic, readonly) UIPreviewForceInteractionProgress *interactionProgressForPresentation; |
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
| We're working on supporting Bitcode in PSPDFKit but hit a blocking issue with OpenSSL (latest 1.0.2d). | |
| We're using a script that downloads and builds OpenSSL into fat static libraries for both Mac and iOS. I've put the gist here: | |
| https://gist.github.com/steipete/ce09ba176a4b8ef66b2d/bf053eab1c0f8494dcd3748079543c4ed4367b9c | |
| Enabling Bitcode should be as easy as adding `-fembed-bitcode` as clang flag according to this entry. That's exactly what I did. | |
| Now things build, but the script eventually stops with this error: | |
| ld: could not open bitcode temp file: ../libcrypto.a(aes-x86_64.o) for architecture x86_64 |
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 | |
| # This script downlaods and builds the iOS and Mac openSSL libraries with Bitcode enabled | |
| # Credits: | |
| # https://github.com/st3fan/ios-openssl | |
| # https://github.com/x2on/OpenSSL-for-iPhone/blob/master/build-libssl.sh | |
| # Peter Steinberger, PSPDFKit GmbH, @steipete. | |
| set -e |
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 | |
| # | |
| # convert-video.sh | |
| # | |
| # Copyright (c) 2013-2014 Don Melton | |
| # | |
| about() { | |
| cat <<EOF | |
| $program 2.0 of December 3, 2014 |
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
| // | |
| // PrintLocalesController.m | |
| // NSFormatterTest | |
| // | |
| // Created by Maciek Grzybowski on 02.04.2014. | |
| // | |
| #import "PrintLocalesController.h" | |
| @interface PrintLocalesController () |
NewerOlder