start new:
tmux
start new with session name:
tmux new -s myname
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
import org.omg.CORBA.PUBLIC_MEMBER; | |
import java.util.Iterator; | |
import java.util.Map; | |
import java.util.Properties; | |
import soot.Body; | |
import soot.BodyTransformer; | |
import soot.Local; | |
import soot.PackManager; | |
import soot.PatchingChain; |
import java.util.Iterator; | |
import java.util.Map; | |
import soot.Body; | |
import soot.BodyTransformer; | |
import soot.Local; | |
import soot.PackManager; | |
import soot.PatchingChain; | |
import soot.RefType; | |
import soot.Scene; |
.class public org/tomdroid/util/NoteListCursorAdapter | |
.super android/widget/SimpleCursorAdapter | |
.source NoteListCursorAdapter.java | |
.field private static final TAG Ljava/lang/String; = "NoteListCursorAdapter" | |
.field private context Landroid/content/Context; | |
.field private layout I | |
.field private localeDateFormat Ljava/text/DateFormat; | |
.field private localeTimeFormat Ljava/text/DateFormat; | |
.field private selectedIndex I |
.class public org/tomdroid/util/NoteListCursorAdapter | |
.super android/widget/SimpleCursorAdapter | |
.source NoteListCursorAdapter.java | |
.field private static final TAG Ljava/lang/String; = "NoteListCursorAdapter" | |
.field private context Landroid/content/Context; | |
.field private layout I | |
.field private localeDateFormat Ljava/text/DateFormat; | |
.field private localeTimeFormat Ljava/text/DateFormat; | |
.field private selectedIndex I |
travelSUT(packageName,activityName) | |
input:packageName,activityName | |
output:nodeList,edgeList,screenButtonTapped | |
edgeList | |
nodeList | |
class Solution: | |
def rotateString(self, A, offset): | |
if A is None or len(A) == 0: | |
return A | |
offset %= len(A) | |
self.reverse(A, 0, len(A)-offset-1) | |
self.reverse(A, len(A)-offset, len(A)-1) | |
self.reverse(A, 0, len(A)-1) |
class Solution: | |
def lcp(self, str1, str2): | |
i = 0 | |
while (i < len(str1) and i < len(str2)): | |
if str1[i] == str2[i]: | |
i = i+1 | |
else: | |
break | |
return str1[:i] |