This is an overview over the inner workings of Detexify. Extended knowlege in pattern recognition or machine learning is not necessary as I will explain some basics but understanding of linear algebra will definitely help. I have to note that I am not an expert, either. I more or less stumbled into this because of this project. Experts in this field may safely skip the first section.
This file contains 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 | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
This file contains 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
#define ASSOCIATED_PROPERTY(Type, getter, setter, key, association) \ | |
static char key;\ | |
%new -(void)setter:(Type)val{objc_setAssociatedObject(self, &key, val, association);}\ | |
%new -(Type)getter{return objc_getAssociatedObject(self, &key);} |
- Install SublimeClang with Package Control if you don't already have it (you do also need to install Package Control first)
- Click Sublime Text -> Preferences -> Sublime Clang -> User
- Paste in the contents of SublimeClang.sublime-settings, modifying the location of theos (
-I/opt/theos/include
) and the SDK (/Applications/Xcode.app/Contents/...etc
) if needed - Save, restart Sublime, be happy (or yell at me if it didn't work)
(This was just written from memory so let me know if something is wrong. Note that logos syntax is not supported as SublimeClang expects to only be running clang --analyze
, and I know nothing about python.)
This file contains 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 | |
#ID='A16FF353-8441-459E-A50C-B071F53F51B7' # Xcode 6.2 | |
ID='992275C1-432A-4CF7-B659-D84ED6D42D3F' # Xcode 6.3 | |
PLIST_BUDDY=/usr/libexec/PlistBuddy | |
function add_compatibility() { | |
"$PLIST_BUDDY" -c "Add DVTPlugInCompatibilityUUIDs:10 string $2" \ | |
"$1/Contents/Info.plist" |
#How to transition from EasySIMBL to SIMBL
( ~
is your home directory )
- Launch EasySIMBL.app. Turn OFF
Use SIMBL
checkbox. Quit EasySIMBL. - Remove
~/Library/ScriptingAdditions/EasySIMBL.osax
if exists. SIMBL
directory andEasySIMBL.osax
located in~/Library/Containers/
is not needed. Find from Finder or find command likefind ~/Library/Containers -name "*SIMBL*" -ls
and remove manually if exists.- Restart Mac (just in case).
- Install SIMBL-0.9.9 (original SIMBL-0.9.9.pkg is not code signed. So open from context menu)
- Done.
This file contains 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 <UIKit/UIKit.h> | |
#import <CoreFoundation/CoreFoundation.h> | |
#import <CoreGraphics/CoreGraphics.h> | |
#import <CoreText/CoreText.h> | |
@interface EmojiUtilities : NSObject | |
+ (CFMutableCharacterSetRef)emojiCharacterSet; | |
+ (BOOL)containsEmoji:(NSString *)emoji; | |
@end |