Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| /* | |
| * $TM_FILENAME | |
| * ${1:`echo "$TM_FILEPATH" | awk -F"/" '{x=NF-1}{print $x}'`} | |
| * | |
| * Created by `id -P | awk -F ":" '{ print $8 }'` on `date "+%d/%m/%Y"`. | |
| * | |
| * Copyright (c) `date +%Y` ${2:$TM_ORGANIZATION_NAME} | |
| * All rights reserved. | |
| * | |
| * Redistribution and use in source and binary forms, with or without |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| body { | |
| font-family: Helvetica, arial, sans-serif; | |
| font-size: 14px; | |
| line-height: 1.6; | |
| padding-top: 10px; | |
| padding-bottom: 10px; | |
| background-color: white; | |
| padding: 30px; } | |
| body > *:first-child { |
| # Xcode 4.3.3 | |
| Apple clang version 3.1 (tags/Apple/clang-318.0.61) (based on LLVM 3.1svn) | |
| Target: x86_64-apple-darwin11.4.0 | |
| Thread model: posix | |
| # Xcode 4.3.2 | |
| Apple clang version 3.1 (tags/Apple/clang-318.0.58) (based on LLVM 3.1svn) | |
| Target: x86_64-apple-darwin11.4.0 | |
| Thread model: posix |
| // #1: Graph API: /me | |
| - (void)requestMe { | |
| [FBRequestConnection startForMeWithCompletionHandler:^(FBRequestConnection *connection, | |
| NSDictionary<FBGraphUser> *me, | |
| NSError *error) { | |
| if(error) { | |
| [self printError:@"Error requesting /me" error:error]; | |
| return; | |
| } | |
| - (UIImage *) imageByTrimmingTransparentPixels { | |
| int rows = self.size.height; | |
| int cols = self.size.width; | |
| int bytesPerRow = cols*sizeof(uint8_t); | |
| if ( rows < 2 || cols < 2 ) { | |
| return self; | |
| } | |
| //allocate array to hold alpha channel |
この記事は古いです...。はてなブログの方に完全版を置いてあります。→ http://blue-ham-cake1024.hatenablog.com/entry/2012/09/07/Sublime_Text_2_のDefault設定ファイルを眺める
この記事ではDefault設定ファイルにどのような記述がされているか、その記述にどんな意味があるかを一つ一つ見ていきます。実際に設定をカスタマイズしてみたい方は、メニューのPreferencesタブの"Settings - User"からUser設定ファイルを開いてそこでいろいろ試してみましょう。
| // | |
| // AVAsset+VideoOrientation.h | |
| // | |
| // Created by Luca Bernardi on 19/09/12. | |
| // Copyright (c) 2012 Luca Bernardi. All rights reserved. | |
| // | |
| #import <AVFoundation/AVFoundation.h> | |
| typedef enum { | |
| LBVideoOrientationUp, //Device starts recording in Portrait |
| <div id="prefetch"> | |
| <input class="typeahead" type="text" placeholder="Countries"> | |
| </div> |