Skip to content

Instantly share code, notes, and snippets.

hetima hetima

Block or report user

Report or block hetima

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
hetima / gist:14ea8987a50373706266
Last active Aug 29, 2015
Xcode 6.1 Documentation ダウンロード&インストール手順
View gist:14ea8987a50373706266

#Xcode 6.1 Documentation ダウンロード&インストール手順

追記:feed は修正されているので正しくダウンロードできると思われます。上手く行かない場合 ~/Library/Caches/ を削除すればよろしいかと。

こういう問題があり、正しくダウンロードできない。(feed が正しい URL を指しておらず OS X 10.10 Documentation がインストールされる)


View gist:8e8e06e02493d36e975a


  • VMware Fusion 6.0.5 問題なさげ
  • iStat Menus 3.2.7 温度センサー関連をインストールしなければ問題なさげ
  • LaunchBar 5.6 問題なさげ
  • かわせみ 1.1.5 問題なさげ
  • Audio Hijack Pro 2.11 問題なさげ


View WebContextMenuProxyMac.txt
//Safari 7
struct WebContextMenuProxyMac {
CDUnknownFunctionPointerType *_field1;
unsigned int _field2;
struct RetainPtr<NSPopUpButtonCell> _field3;
id _field4;
struct WebPageProxy *_field5;
//Safari 8
hetima / gist:465b897da0f03e9288b9
Last active Aug 29, 2015
View gist:465b897da0f03e9288b9
#define KZRMETHOD_SWIZZLING_WITHBLOCK(className, selectorName, isClassMethod, originalIMP, originalSelector, block) {\
BOOL _val_isClassMethod=isClassMethod; \
const char* _val_selName=selectorName; \
if(*_val_selName=='+'){_val_isClassMethod=YES; _val_selName++;} \
Class _val_cls=objc_getClass(className); \
SEL originalSelector=sel_registerName(_val_selName); \
Method _val_originalMethod; \
if (_val_isClassMethod)_val_originalMethod = class_getClassMethod(_val_cls, originalSelector); \
else _val_originalMethod = class_getInstanceMethod(_val_cls, originalSelector); \
KZRIMPUnion originalIMP = (KZRIMPUnion)(IMP)method_getImplementation(_val_originalMethod); \
hetima / gist:11212483
Created Apr 23, 2014 実行するたび締め切りが延びる魔法のスクリプト
View gist:11212483
tell application "Reminders"
set reminderTitle to "Shimekiri"
set listTitle to "work"
set workerList to list listTitle
-- remove old reminder
set ids to {}
repeat with r in reminder of workerList
if name of r is reminderTitle then


  • 5.0 : 37B30044-3B14-46BA-ABAA-F01000C27B63
  • 5.1 : A2E4D43F-41F4-4FB9-BB94-7177011C9AED
  • 6.0 beta : AD68E85B-441B-4301-B564-A45E4919A6AD
  • 6.0, 6.1 : C4A681B0-4A26-480E-93EC-1218098B9AA0
  • 6.2 : A16FF353-8441-459E-A50C-B071F53F51B7
  • 6.3 : 9F75337B-21B4-4ADC-B558-F9CADF7073A7
  • 6.3.2 : E969541F-E6F9-4D25-8158-72DC3545A6C6
  • 6.4 : 7FDF5C7A-131F-4ABB-9EDC-8C5F8F0B8A90
View gist:9665137
NS_INLINE CGFloat NSWidth(NSRect aRect) {
return (aRect.size.width);
#define NSWidth(aRect) ({aRect.size.width;})
View gist:7028237
NSImage* lightImage;
lightImage=[[NSImage alloc]initWithSize:[image size]];
[lightImage lockFocus];
NSRect rect=NSZeroRect;
rect.size=[image size];
[image drawAtPoint:NSZeroPoint fromRect:rect operation:NSCompositeCopy fraction:0.4];
[lightImage unlockFocus];
hetima / private.xml
Created Apr 24, 2013
test: functional key to shift key with KeyRemap4MacBook
View private.xml
<?xml version="1.0"?>
<name>FKEY to Shift_L</name>
<appendix>(+ When you type FKEY only, send FKEY)</appendix>
<autogen>__KeyOverlaidModifier__ KeyCode::F1, KeyCode::SHIFT_L, KeyCode::F1</autogen>
<autogen>__KeyOverlaidModifier__ KeyCode::F2, KeyCode::SHIFT_L, KeyCode::F2</autogen>
<autogen>__KeyOverlaidModifier__ KeyCode::F3, KeyCode::SHIFT_L, KeyCode::F3</autogen>
<autogen>__KeyOverlaidModifier__ KeyCode::F4, KeyCode::SHIFT_L, KeyCode::F4</autogen>
hetima / gist:5142318
Created Mar 12, 2013
NSScrollView のスクロール位置を同期する
View gist:5142318
@interface SSRefrectingScrollView : NSScrollView
@property BOOL inRefrecting;
@property (assign)IBOutlet SSRefrectingScrollView* counterPartView;
@implementation SSRefrectingScrollView
You can’t perform that action at this time.