This file contains hidden or 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 dumpsys activity activities | |
ACTIVITY MANAGER ACTIVITIES (dumpsys activity activities) | |
Display #0 (activities from top to bottom): | |
Stack #71: type=standard mode=fullscreen | |
isSleeping=false | |
mBounds=Rect(0, 0 - 0, 0) | |
Task id #108 | |
mBounds=Rect(0, 0 - 0, 0) | |
mMinWidth=-1 |
This file contains hidden or 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
from foreveralonemusician import Lonelyplayer | |
player = Lonelylayer() | |
player.compose('metalsong') | |
player.play() | |
player.profit() |
This file contains hidden or 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
/* Model mockup */ | |
var colors = [0xcceeee, 0xddeeff, 0xeeccee, 0x00cc00, 0x0000cc, 0xcc3333]; | |
for (i = 0; i < 10; ++i) { | |
var w = 200 * Math.random(); | |
var h = 200 * Math.random(); | |
var d = 5 * Math.random() + 1; | |
var dx = (Math.random() * 40 - 20); | |
var dy = (Math.random() * 40 - 20); | |
var dz = Math.random() * 10; |
This file contains hidden or 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 zmq | |
import sys | |
context = zmq.Context() | |
socket = context.socket(zmq.PUSH) | |
socket.connect("tcp://172.21.0.49:5000") | |
socket.send_json({'video': sys.argv[1]}) | |
sys.exit(0) |
This file contains hidden or 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 zmq | |
import urlparse | |
import urllib | |
import json | |
DEFAULT_TIMEOUT=5 | |
def parse(link): | |
url_data = urlparse.urlparse(link) | |
query = urlparse.parse_qs(url_data.query) |