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
from dataclasses import dataclass | |
from dataclasses_json import dataclass_json | |
from twisted.web.resource import Resource | |
from twisted.web.server import Request | |
from synapse.module_api import ModuleApi | |
from synapse.module_api.errors import ConfigError | |
@dataclass_json | |
@dataclass |
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
#!/bin/bash | |
# Debug | |
set -o xtrace | |
GUEST_IP=192.168.122.221 | |
HOST_IP=192.168.122.1 | |
# Wipe the current usbfluxd, usbmuxd, and socat: | |
sudo killall usbfluxd |
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
Iterable<int> range(int start, [int stop, int increment]) sync* { | |
if (increment == null) { | |
increment = 1; | |
} | |
if (stop == null) { | |
stop = start; | |
start = 0; | |
} |
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
diff --git a/packages/flutter_tools/lib/src/artifacts.dart b/packages/flutter_tools/lib/src/artifacts.dart | |
index 9544a18f7..d72e28bd4 100644 | |
--- a/packages/flutter_tools/lib/src/artifacts.dart | |
+++ b/packages/flutter_tools/lib/src/artifacts.dart | |
@@ -2,6 +2,8 @@ | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
+import 'dart:io'; | |
+ |
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
#!/bin/bash | |
project_location=$(pwd) | |
pushd "$(dirname "$0")" # It expects to be placed in flutter-desktop-embedding/example/linux | |
mkdir $project_location/.vscode | |
\cp launch.json $project_location/.vscode/launch.json -f # From https://github.com/google/flutter-desktop-embedding/blob/master/Debugging.md , backslash was added because my distro aliases cp to cp -i | |
ln -T -s -f $project_location ../flutter_app | |
pkill flutter | |
make && \ | |
out/flutter_embedder_example & | |
popd |