- Activate
Developer optionsin phone - Activate
USB debugginginsideDeveloper options - Connect phone by USB to PC and allow that PC can debugging
- Download
Android SDK - Go to
platform-toolsinside ofAndroid SDKdownloaded - Execute
adb devicesand ensure that mobile appear in the list - Execute
adb shell - Execute
settings get secure sysui_qs_tilesand copy the output (will be reference to the content copied asYOUROLDLIST)
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
| def solve(table, step, limit): | |
| if step == limit + 1: | |
| return [table] | |
| else: | |
| return [ | |
| item | |
| for new_table in step_matrix(table, step) | |
| for item in solve(new_table, step + 1, limit) | |
| ] |
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
| def generate(n_rows, n_cols, ratio, diff): | |
| hidato_solved = generate_hidato_solved(n_rows, n_cols, ratio) | |
| max_elem = n_rows * n_cols - count_obstacles(hidato_solved) | |
| cells_for_remove = random_shuffle(filter(lambda cell: get_cell_value(cell) > 1 and get_cell_value(cell) < max_elem, get_cells(hidato_solved))) | |
| cant_empty = floor(len(cells_for_remove) * diff) | |
| template = remove_cells(hidato_solved, n_rows, n_cols, cells_for_remove, cant_empty) | |
| return template | |
| def generate_hidato_solved(n_rows, n_cols, ratio): |
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
| sudo rm /etc/resolv.conf | |
| sudo bash -c 'echo "nameserver 8.8.8.8" > /etc/resolv.conf' | |
| sudo bash -c 'echo "[network]" > /etc/wsl.conf' | |
| sudo bash -c 'echo "generateResolvConf = false" >> /etc/wsl.conf' | |
| sudo chattr +i /etc/resolv.conf |
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
| void main() { | |
| final p1 = Point(0, 0); | |
| final p2 = Point(-5, -10); | |
| final p3 = Point(-10, -5); | |
| final p4 = Point(15, -5); | |
| final r1 = Line(p1, p2); | |
| final r2 = Line(p3, p4); | |
| final pi = intersection(r1, r2); | |
| print("${pi.x}, ${pi.y}"); | |
| } |
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
| void main() { | |
| final p1 = Point(0, 0); | |
| final p2 = Point(-5, -10); | |
| final p3 = Point(-10, -5); | |
| final p4 = Point(15, -5); | |
| final r1 = Line(p1, p2); | |
| final r2 = Line(p3, p4); | |
| final pi = intersection(r1, r2); | |
| print("${pi.x}, ${pi.y}"); | |
| } |
OlderNewer