Skip to content

Instantly share code, notes, and snippets.

View zeedark's full-sized avatar
💭
There.

Zeed Ark zeedark

💭
There.
View GitHub Profile
@zeedark
zeedark / MyOwnTableViewCell.h
Created February 6, 2012 14:37
Modifying the default UITableViewCell's layout
#import <UIKit/UIKit.h>
@interface MyOwnTableViewCell : UITableViewCell
@end
@zeedark
zeedark / stuff.m
Created October 17, 2012 09:22
UISwitch on an Accessory View of a UITableCellViewController
UISwitch * uis = [[[UISwitch alloc] init] autorelease];
[uis addTarget:self action:@selector(toogleSwitch:) forControlEvents:UIControlEventValueChanged];
NSString * key = [[sets objectAtIndex:[indexPath section]] objectForKey:SOME_KEY];
uis.on = [[[NSUserDefaults standardUserDefaults] valueForKey:key] boolValue];
uis.tag = [indexPath section];
cell.accessoryView = uis;
# Source:
# https://stackoverflow.com/questions/3971822/how-do-i-validate-my-yaml-file-from-command-line
$ ruby -e "require 'yaml';puts YAML.load_file('some-file.yaml')"
$ perl -MYAML -e 'use YAML;YAML::LoadFile("./file.yaml")'
$ python -c "from yaml import load, Loader; load(open('.travis.yml'), Loader=Loader)"
$ travis lint .travis.yml