Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages and install them manually as needed.
| #!/usr/bin/env bash | |
| rm -rf "${HOME}/Library/Caches/CocoaPods" | |
| rm -rf "`pwd`/Pods/" | |
| pod update |
| #import <objc/runtime.h> | |
| #import <Foundation/Foundation.h> | |
| @interface Person : NSObject | |
| @property (nonatomic,strong) NSMutableDictionary *properties; | |
| @end | |
| @implementation Person |
| # xcode-build-bump.sh | |
| # @desc Auto-increment the build number every time the project is run. | |
| # @usage | |
| # 1. Select: your Target in Xcode | |
| # 2. Select: Build Phases Tab | |
| # 3. Select: Add Build Phase -> Add Run Script | |
| # 4. Paste code below in to new "Run Script" section | |
| # 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
| # 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |
| """PyObjC keylogger for Python | |
| by ljos https://github.com/ljos | |
| """ | |
| from Cocoa import * | |
| from Foundation import * | |
| from PyObjCTools import AppHelper | |
| class AppDelegate(NSObject): | |
| def applicationDidFinishLaunching_(self, aNotification): |
| #!/usr/bin/env python | |
| # | |
| # cocoa_keypress_monitor.py | |
| # Copyright © 2016 Bjarte Johansen <Bjarte.Johansen@gmail.com> | |
| # | |
| # The MIT License (MIT) | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining | |
| # a copy of this software and associated documentation files (the | |
| # “Software”), to deal in the Software without restriction, including |
| import sys | |
| import threading | |
| import Queue | |
| import wx | |
| _noTimeoutDefault = object() | |
| def defer( | |
| returnToFunction, | |
| function, |
Install ImageMagick for image conversion:
brew install imagemagick
Install tesseract for OCR:
brew install tesseract --all-languages
Or install without --all-languages and install them manually as needed.
| <?php die('This file is not really here!'); | |
| /** | |
| * ------------- DO NOT UPLOAD THIS FILE TO LIVE SERVER --------------------- | |
| * | |
| * Implements code completion for CodeIgniter in phpStorm | |
| * phpStorm indexes all class constructs, so if this file is in the project it will be loaded. | |
| * ------------------------------------------------------------------- | |
| * Drop the following file into a CI project in phpStorm | |
| * You can put it in the project root and phpStorm will load it. |
| @implementation MySharedThing | |
| + (id)sharedInstance | |
| { | |
| DEFINE_SHARED_INSTANCE_USING_BLOCK(^{ | |
| return [[self alloc] init]; | |
| }); | |
| } | |
| @end |