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
{"lastUpload":"2020-02-01T16:31:27.958Z","extensionVersion":"v3.4.3"} |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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
Download SDK Platform-Tools and unzip to a location https://developer.android.com/studio/releases/platform-tools | |
Open a cmd/terminal window in platform-tools dir | |
Connect Device | |
Ensure that android device is properly connected via platform tools | |
adb devices | |
Enter adb shell on device | |
adb shell |
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 flatten_array(array, result=None): | |
""" | |
Flatten a given array of arbitrarily nested arrays of integers. | |
e.g. [[1,2,[3]],4] -> [1,2,3,4] | |
:param array: Input array to flatten | |
:param result: Starting result array. Can be omitted. | |
:return: Flattened array | |
""" | |
try: |
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
Get-AppxPackage *3dbuilder* | Remove-AppxPackage | |
Get-AppxPackage *windowscamera* | Remove-AppxPackage | |
Get-AppxPackage *zunemusic* | Remove-AppxPackage | |
Get-AppxPackage *getstarted* | Remove-AppxPackage | |
Get-AppxPackage *windowsmaps* | Remove-AppxPackage | |
Get-AppxPackage *solitairecollection* | Remove-AppxPackage | |
Get-AppxPackage *bingfinance* | Remove-AppxPackage | |
Get-AppxPackage *zunevideo* | Remove-AppxPackage | |
Get-AppxPackage *bingnews* | Remove-AppxPackage | |
Get-AppxPackage *people* | Remove-AppxPackage |
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
# Generic reader method | |
# Reads data, prints columns, and prints each row to file | |
def do_query_to_csv_file(cursor, sql, csv_file): | |
try: | |
cursor.execute(sql) | |
file_header = '' | |
f = open(file_dir + csv_file + '.csv', 'w') | |
columns = [column[0] for column in cursor.description] | |
for col in columns: |