This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* | |
Imports sender addresses from a Mail mailbox into AddressBook | |
Author: @ancientbuho | |
Asks you for: | |
- An Account and Mailbox where emails will be searched | |
- An Address Book Group name where the accounts will be imported (creates it if doesn't exists) | |
This can potentially take a long time depending your number of messages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SHKTableViewCell.m | |
// RIL | |
// | |
// Created by Nathan Weiner on 6/30/10. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SHKTableViewCell.m | |
// RIL | |
// | |
// Created by Nathan Weiner on 6/30/10. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// SHKTableViewCell.m | |
// RIL | |
// | |
// Created by Nathan Weiner on 6/30/10. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifdef DEBUG | |
#define DLog(fmt, ...) NSLog((@"%s <%@:%d> " fmt), __PRETTY_FUNCTION__, [[NSString stringWithFormat:@"%s", __FILE__ ] lastPathComponent] ,__LINE__, ##__VA_ARGS__) | |
#else | |
#define DLog(format, ...) | |
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "switch(<#expression#>){" | |
echo -n "%%%{PBXSelection}%%%" | |
awk '/#define/ {print " case "$2":{\n break;\n }"}' <&0 | |
echo -n "%%%{PBXSelection}%%%" | |
echo "}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// defines... | |
#define SECTION_AND_ROW_INT(section, row) (row | section << 16) | |
#define SECTION_AND_ROW_FOR_FIRST_NAME SECTION_AND_ROW_INT(0, 0) | |
#define SECTION_AND_ROW_FOR_LAST_NAME SECTION_AND_ROW_INT(0, 1) | |
#define SECTION_AND_ROW_FOR_AGE SECTION_AND_ROW_INT(1, 0) | |
// ... | |
// sample switch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
switch (group) { | |
case NAME_GROUP:{ | |
switch(row){ | |
case FIRST_NAME_ROW:{ | |
// do first name things | |
break; | |
} | |
// ... | |
} | |
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(UILabel* label in self.allLabels){ | |
[label setText:NSLocalizedString(label.text, @"")]; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"firstName": "John", | |
"middleName": "M", | |
"lastName": "Appleseed", | |
"age": 30, | |
"addresses":[ | |
{ | |
"streetAddress": "222 North Mountain Rd.", | |
"city": "Redwood City", | |
"state": "CA", |
OlderNewer