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
(use-package markdown-mode | |
:defer t | |
:commands (org-table-begin org-table-end orgtbl-mode) | |
:config | |
(progn | |
(require 'org-table) | |
(eval-when-compile | |
(require 'whitespace)) | |
(defun advice:org-table-align:markdown () |
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
# Boilarplate: Makefile for building Unity3d C# managed DLL on Mac | |
# | |
# [Usage] | |
# If Unity is installed in the default directory /Applications/Unity/Unity.app, simply: | |
# $ make | |
# Or either: | |
# $ UNITY_NAME=UnityXXX make | |
# $ UNITY_DIR=/Applications/UnityXXX/UnityYYY.app make | |
# | |
# [library directory layout] |
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
// simple but not performance wise | |
- (UIImage *)normalizeImageOrientation:(NSString *)path { | |
UIImage *image = [UIImage imageWithContentsOfFile:path]; | |
if (image.imageOrientation != UIImageOrientationUp) { | |
CGSize size = image.size; | |
UIGraphicsBeginImageContext(size); | |
[image drawInRect:CGRectMake(0, 0, size.width, size.height)]; | |
image = UIGraphicsGetImageFromCurrentImageContext(); | |
UIGraphicsEndImageContext(); |