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 logging.config | |
import coloredlogs | |
logging.config.dictConfig( | |
{ | |
"version": 1, | |
"disable_existing_loggers": False, | |
"formatters": { | |
"verbose": { |
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 sys, os | |
import time | |
import shutil, zipfile | |
import subprocess, shlex | |
import argparse | |
import StringIO | |
HOME = os.getcwd() | |
def getAllDeviceIds(): |
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
A) Exploring Postgres Internal | |
B) Debugging Postgres Queries | |
C) Using an Index | |
D) Advanced Indexing | |
E) Vacuuming Postgres Databases |
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
p = subprocess.Popen(shlex.split(cmd), stdout=subprocess.PIPE) | |
# Grab stdout line by line as it becomes available. This will loop until | |
# p terminates. | |
while p.poll() is None: | |
l = p.stdout.readline() # This blocks until it receives a newline. | |
print l | |
# When the subprocess terminates there might be unconsumed output | |
# that still needs to be processed. | |
print p.stdout.read() |
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
parser = argparse.ArgumentParser() | |
parser.add_argument('build', | |
type=str, | |
help='GET WORKING INPUT NUMBER') | |
parser.add_argument('-d', '--download', | |
action='store_true', | |
help='DOWNLOAD BUILD') | |
parser.add_argument('-f', '--flash', | |
action='store_true', | |
help='FLASH BUILD') |
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
for elem in os.listdir(DOWNLOAD_DIR): | |
if elem.endswith('.zip'): | |
src = os.path.join(DOWNLOAD_DIR, elem) | |
dst = os.path.join(........) | |
shutil.move(src, dst) | |
time.sleep(20) | |
zipPath = os.path.join(dst, elem) | |
zip_ref = zipfile.ZipFile(zipPath, 'r') |
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 os | |
import sys | |
import time | |
import subprocess | |
import shlex | |
import re | |
def read_battery_level(device): | |
cmd = "adb -s " + device + " shell dumpsys battery| grep level" |
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
# -*- coding: utf-8 -*- | |
import dash | |
import dash_core_components as dcc | |
import dash_html_components as html | |
app = dash.Dash() | |
app.layout = html.Div(children=[ | |
html.H1(children='Hello Dash'), |
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 http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
<title>Two Bell Curves</title> | |
<meta name="description" content=""> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
<style type="text/css"> |
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
Rank | Job | channel | Salary | ||
---|---|---|---|---|---|
1 | 1 | Lead Software Engineer Contractor | Low | 221000 | |
2 | 2 | Product Management Director | Low | 203000 | |
3 | 3 | Directors | Low | 172000 | |
4 | 4 | Engineering Director | Low | 184000 | |
5 | 5 | Human Resources Director | Low | 183000 | |
6 | 6 | Senior Partner Technology Manager | Low | 180000 | |
7 | 7 | Staff User Experience Designer | Low | 167000 | |
8 | 8 | Marketing Director | Low | 165000 | |
9 | 9 | Group Product Manager | Low | 157000 |
NewerOlder