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
- (IBAction)buttonBack:(id)sender { | |
[[self presentingViewController] dismissModalViewControllerAnimated:YES]; | |
} | |
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
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender | |
{ | |
if ([segue.identifier hasPrefix:@"Create Label"]) { | |
AskerViewController *asker = (AskerViewController *)segue.destinationViewController; | |
asker.question = @"What"; | |
asker.delegate = self; | |
} | |
// This is really cool. | |
if ([segue.identifier hasPrefix:@"Segue Table0"]) { |
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
package dev.sysadmin.test; | |
import java.util.concurrent.ArrayBlockingQueue; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.ThreadPoolExecutor; | |
import java.util.concurrent.TimeUnit; | |
public class CmdTdev { | |
private static int myid; |
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
xattr -d com.apple.quarantine /path/to/Eclipse.app |
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 void pr(ConcurrentHashMap<String, String[][]> hmap) { | |
Iterator itr = hmap.entrySet().iterator(); | |
while (itr.hasNext()) { | |
Map.Entry pairs = (Map.Entry) itr.next(); | |
System.out.println("key= " + pairs.getKey()); | |
pr((String[][]) pairs.getValue()); | |
// itr.remove(); // avoids a ConcurrentModificationException | |
} | |
} |
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
import java.io.BufferedReader; | |
import java.io.FileReader; | |
import java.io.IOException; | |
import java.util.ArrayList; | |
import java.util.List; | |
public class FileRead { | |
public String[] readLines(String filename) throws IOException { | |
FileReader fileReader = new FileReader(filename); |
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
package dev.sysadmin; | |
/* | |
* https://bitbucket.org/xerial/sqlite-jdbc/overview | |
* | |
* | |
*/ | |
import java.sql.Connection; | |
import java.sql.DriverManager; |
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
s[0][1]=String.format("a%11.0f", Math.pow(2,32)); |
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
def num(m): | |
h={} | |
for i in m: | |
j=i.split(",") | |
if (j[0] in h): | |
h[j[0]]=h[j[0]]+1 | |
else: | |
h[j[0]]=1 | |
return h |
OlderNewer