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 PinCircle extends View { | |
private Paint paint; | |
private float strokeWidth; | |
public PinCircle(Context context) { | |
this(context, null); | |
} |
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
convert image.png -fuzz 50% -opaque black -fill white imageout.png |
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
adb shell screenrecord /sdcard/blah_blah.mp4 |
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
convert image.png -channel R -evaluate set 30% -channel G -evaluate set 0% -channel B -evaluate set 100% image2.png |
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
adb shell " | |
sqlite3 /data/data/com.android.providers.settings/databases/settings.db \" | |
update global set value='0.0' where name='window_animation_scale'; | |
update global set value='0.0' where name='transition_animation_scale'; | |
update global set value='0.0' where name='animator_duration_scale'; | |
\" | |
" |
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 numpy as np | |
import matplotlib.pyplot as plt | |
# Load the text file | |
# This gives us an Nx4 matrix with columns: t, left, t, right | |
data = np.loadtxt("jeremih.txt") | |
print('Num samples: ' + str(len(data))) | |
# Make Nx2 matrix with columns: t, mean(left, right) | |
amp_vs_time = [[row[0], np.mean(row[1], row[3])] for row in data] |