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
hetima / private.xml
Created Apr 24, 2013
test: functional key to shift key with KeyRemap4MacBook
View private.xml
<?xml version="1.0"?>
<root>
<item>
<name>FKEY to Shift_L</name>
<appendix>(+ When you type FKEY only, send FKEY)</appendix>
<identifier>private.fkey2shiftL_fkey</identifier>
<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>
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];
}
View gist:9665137
NS_INLINE CGFloat NSWidth(NSRect aRect) {
return (aRect.size.width);
}
#define NSWidth(aRect) ({aRect.size.width;})
View DVTPlugInCompatibilityUUID.md

#DVTPlugInCompatibilityUUID

  • 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
@hetima
hetima / gist:11212483
Created Apr 23, 2014
Reminders.app 実行するたび締め切りが延びる魔法のスクリプト
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
@hetima
hetima / gist:465b897da0f03e9288b9
Last active Aug 29, 2015
KZRMETHOD_SWIZZLING_WITHBLOCK
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); \
View WebContextMenuProxyMac.txt
//Safari 7
struct WebContextMenuProxyMac {
CDUnknownFunctionPointerType *_field1;
unsigned int _field2;
struct RetainPtr<NSPopUpButtonCell> _field3;
id _field4;
struct WebPageProxy *_field5;
};
//Safari 8
View gist:8e8e06e02493d36e975a

##古いソフトの対応

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

##リンク

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

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

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


こういう問題があり、正しくダウンロードできない。(feed が正しい URL を指しておらず OS X 10.10 Documentation がインストールされる)
http://stackoverflow.com/questions/26531103/xcode-6-1-not-download-the-documentation-files

手動で正しいものをダウンロード

@hetima
hetima / gist:f526cac58a2cdfce56fe
Last active Aug 29, 2015
WoTBlitz 課金関連
View gist:f526cac58a2cdfce56fe

#WoTBlitz 課金関連

##ゴールド

  • 1,400G 500円 (0.357 円/G)(2.8 G/円)
  • 2,900G 1000円 (0.345 円/G)(2.9 G/円)
  • 6,075G 2000円 (0.329 円/G)(3.04 G/円)
  • 16,000G 5000円 (0.312 円/G)(3.2 G/円)
  • 34,000G 9800円 (0.288 円/G)(3.47 G/円)

##パッケージ

You can’t perform that action at this time.