Skip to content

Instantly share code, notes, and snippets.

@krayinc
krayinc / UIColor+Hex.m
Created April 3, 2009 15:03
Hex から UIColor の作成
#import <Foundation/Foundation.h>
@interface UIColor (Hex)
- (UIColor *) initWithHex:(NSString *)hexString alpha:(CGFloat)alpha;
@end
@implementation UIColor (Hex)
- (UIColor *) initWithHex:(NSString *)string alpha:(CGFloat)alpha {
UIColor *color = nil;
#! /bin/sh
openssl des3 -salt -in $1 -out $1.des3
@krayinc
krayinc / show_all_files.sh
Created July 1, 2009 06:14
不可視ファイルのON/OFF
#!/bin/bash
case "$1" in
true)
defaults write com.apple.finder AppleShowAllFiles TRUE
killall Finder
;;
false)
defaults write com.apple.finder AppleShowAllFiles FALSE
killall Finder