http://stackoverflow.com/questions/18158727/sha256-with-pipe
openssl コマンドで SHA256 の文字列を生成
$ echo -n foobar | openssl dgst -sha256
# update homebrew | |
update | |
# upgrade already-installed packages | |
upgrade | |
# add repositories | |
tap homebrew/binary | |
tap homebrew/versions |
#import "Kiwi.h" | |
#import "APMApp.h" // NSManagedObject subclass | |
#import <MagicalRecord/CoreData+MagicalRecord.h> | |
SPEC_BEGIN(APMAppSpec) | |
describe(@"APMApp", ^{ | |
beforeAll(^{ | |
[MagicalRecord setDefaultModelFromClass:[self class]]; | |
[MagicalRecord setupCoreDataStackWithInMemoryStore]; |
git submodule deinit -f path | |
git config -f .gitmodules --remove-section submodule.path |
self.firstField.delegate = self; | |
self.firstField.layer.borderWidth = 2; | |
self.firstField.layer.borderColor:[UIColor redColor].CGColor; | |
self.secondField.delegate = self; | |
self.secondField.layer.borderWidth = 2; | |
self.secondField.layer.borderColor:[UIColor redColor].CGColor; | |
// 以降続く... |
#pragma mark - UITableView DataSource/Delegate | |
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView | |
{ | |
return 1; | |
} | |
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section | |
{ | |
return 10; |
NSDateFormatter *formatter = [NSDateFormatter new]; | |
[formatter setDateFormat:@"yyyy-MM-dd"]; | |
cell.textLabel.text = [[formatter dateFromString:master.date] stringValueWithFormat:@"yyyy.MM.dd”]; |
http://stackoverflow.com/questions/18158727/sha256-with-pipe
openssl コマンドで SHA256 の文字列を生成
$ echo -n foobar | openssl dgst -sha256
$prefNames = array( | |
'北海道', | |
'青森県', | |
'岩手県', | |
'宮城県', | |
'秋田県', | |
'山形県', | |
'福島県', | |
'茨城県', | |
'栃木県', |
NSArray *array = @[@"北海道", | |
@"青森県", | |
@"岩手県", | |
@"宮城県", | |
@"秋田県", | |
@"山形県", | |
@"福島県", | |
@"茨城県", | |
@"栃木県", | |
@"群馬県", |
#!/usr/bin/ruby | |
days = Hash::new | |
if ARGV[0].nil? | |
# get latest file name | |
file_names = Dir::glob(File.expand_path("~/Dropbox/Tasks/*.md")).sort{|x, y| y <=> x} | |
target_file_name = file_names[0] | |
else | |
# get selected file name |