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
public class singHadGadiaSong { | |
public static void singHadGadia(String[] characters, String[] actions, int n) | |
{ | |
if (n >= characters.length) | |
return; | |
System.out.println("ואתא " + characters[n]); | |
for (int i = n - 1; i >= 0; i--) { | |
String prefix = (i == n - 1 ? "ו" : "ד"); | |
System.out.println(prefix + actions[i] + " ל" + characters[i]); | |
} |
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
- (NSArray *)allMyContacts { | |
// cf. http://stackoverflow.com/questions/12083643/how-do-i-correctly-use-abaddressbookcreatewithoptions-method-in-ios-6 | |
CFErrorRef error = nil; | |
ABAddressBookRef addressBook = ABAddressBookCreateWithOptions(NULL, &error); | |
__block BOOL accessGranted = NO; | |
dispatch_semaphore_t sema = dispatch_semaphore_create(0); | |
ABAddressBookRequestAccessWithCompletion(addressBook, ^(bool granted, CFErrorRef error) { | |
accessGranted = granted; |
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
# script to create timer in terminal | |
# Jason Atwood | |
# 2013/6/22 | |
#!/bin/sh | |
# start up | |
echo "starting timer script ..." | |
sleep 1 # seconds | |
# get input from user |