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
| FIFO Message Header: | |
| -------------------- | |
| dddddddddddddddddddddddddd f ttttt | |
| Tag (lower 5 bits, mask 0x1F) | |
| Error (bit5, mask 0x20) | |
| Data (Upper 26 bits, mask 0xFFFFFFC0) | |
| FIFO Data Packing (26 bits): | |
| -------------------- |
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
| # | |
| # OpenOCD configuration for Tegra X1 (T210) | |
| # by shinyquagsire23 | |
| # For use on Jetson Nano/TX1 and similar | |
| # | |
| transport select jtag | |
| adapter speed 3000 | |
| reset_config trst_and_srst | |
| jtag_ntrst_delay 500 |
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
| &mdss_mdp { | |
| /* Samsung 4K OLED ID9 */ | |
| dsi_9: somc,9_panel { | |
| qcom,dsi-ctrl-num = <0>; | |
| qcom,dsi-phy-num = <0>; | |
| qcom,dsi-select-clocks = "mux_byte_clk0", "mux_pixel_clk0"; | |
| qcom,mdss-dsi-panel-name = "9"; | |
| qcom,mdss-dsi-panel-type = "dsi_cmd_mode"; | |
| qcom,mdss-pan-physical-width-dimension = <65>; |
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 struct | |
| import imageio | |
| import numpy as np | |
| import sys | |
| if len(sys.argv) < 2: | |
| print ("Usage: image-extract.py [raw_resources_a.image]") | |
| exit(0) | |
| f = open(sys.argv[1], "rb") |
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 struct | |
| import imageio | |
| import numpy as np | |
| import sys | |
| if len(sys.argv) < 2: | |
| print ("Usage: image-extract.py [imgdata.image]") | |
| exit(0) | |
| f = open(sys.argv[1], "rb") |
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 imageio | |
| import numpy as np | |
| import cv2 | |
| q = "20191230_221836_HDR.jpg" | |
| r = "legs.png" | |
| im = np.array(imageio.imread(r)) | |
| im_orig = im | |
| dims = im.shape |
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 Crypto.Cipher import AES | |
| from Crypto import Random | |
| import base64 | |
| import requests | |
| import xml.etree.ElementTree as ET | |
| block_size = AES.block_size | |
| unpad = lambda s : s[0:-ord(s[-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
| #!/bin/bash | |
| # copy to /usr/sbin | |
| interface=org.chromium.PowerManager | |
| member=SetPolicy | |
| # Run once just to be sure | |
| echo "Surface Go fix daemon start..." > /dev/kmsg | |
| echo "on" > /sys/devices/pci0000:00/0000:00:15.1/i2c_designware.1/power/control |
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
| DeviceInfo(softwareRevision, isOn, | |
| SceneLightState(color, powerOnBehavior, deviceInfo | |
| Light(id, | |
| Capabilities(dimmable, customState | |
| PowerOnBehavior(option | |
| hueplay, huebloom, hueiris, huelightstrip, huego, plug, bollard, wallspot, groundspot, flexiblelamp, wallshade, walllantern | |
| [ea:44:13:bd:db:59] Service [b8843add-0000-4aa1-8794-c3f462030bda] Unknown, ble_firmware_update? | |
| [ea:44:13:bd:db:59] Characteristic [b8843add-0004-4aa1-8794-c3f462030bda] |
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
| diff -r /home/maxamillion/workspace/qt5_compare/qt-everywhere-src-5.12.2/qtbase/src/android/jar/src/org/qtproject/qt5/android/QtNative.java ./qtbase/src/android/jar/src/org/qtproject/qt5/android/QtNative.java | |
| 491a492,495 | |
| > float tiltRot = event.getAxisValue(MotionEvent.AXIS_TILT); | |
| > float orientation = event.getAxisValue(MotionEvent.AXIS_ORIENTATION); | |
| > float tiltX = (float) Math.toDegrees(-Math.sin(orientation) * tiltRot); | |
| > float tiltY = (float) Math.toDegrees(Math.cos(orientation) * tiltRot); | |
| 493c497 | |
| < event.getButtonState(), event.getX(), event.getY(), event.getPressure()); | |
| --- | |
| > event.getButtonState(), event.getX(), event.getY(), event.getPressure(), tiltX, tiltY, (float)Math.toDegrees(orientation)); |