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
# Modified from https://github.com/thngkaiyuan/simple-dns-proxy | |
from dnslib import * | |
from dnslib import server | |
# Customize the port and address of your local server to suit your needs (e.g. localhost -> 0.0.0.0) | |
local_addr = '192.168.1.xxx' | |
local_port = 8889 # 53 | |
# Customize the address and port of the external DNS server | |
external_dns_server_addr = '192.168.1.53' |
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
/** | |
* Another file [-; | |
*/ |
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
/** | |
* Gist for answering this SO question: | |
* https://stackoverflow.com/questions/54154230/how-do-i-create-a-copy-of-listt-in-dart-when-t-is-object-see-below-code | |
*/ | |
void main() { | |
List<Status> statuses = <Status>[ | |
Status(name: 'Confirmed', isCheck: true), | |
Status(name: 'Cancelled', isCheck: true), | |
]; |
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 'package:flutter/material.dart'; | |
import 'dart:convert'; | |
void main() => runApp(MyApp()); | |
const image64 = | |
"iVBORw0KGgoAAAANSUhEUgAABNcAAAQ4CAIAAAClm60kAABC0HpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarZ1r1uQ2jm3/axQ9BJEURXI4fEhr9Qzu8O/ejMi002W7Xm2XKzO/jFBIJHBwDgggjuf//e97/M///E/IpcTjyqXe7b5P/rna1WLnN/X8/PP5NZzX/v/9zyr7T/75l58fqX7/IvKjxK/p8xf38/k1dH6ef3tDub4/H7/+/Cjz85tYvxf6/gUX3v8kP9nff19XvxdK8fPz8P3z0b7v69fvHuf7X5zfy34v/sc/X4XFWJnrpXjEJ4V08v/VT0ncQWqp7187f47R31V+f33/P/352h0/f/uHxVvvz0f8Ze3O/n1F+nUpjvP+vuD+wxp9fx7yH37+44Ku0O/vKPz4bfz1L+qdvsv7j2v3vqu+7/N5un7drNR9fB/qxxLu3/HCwVJ+VuPm38J/md+X/W/j38ojTnZssZuDf+cRWois9huusEIPb3j2rzNMbvGKTyz8GuOMaf+sphJbnHszLv8Nbyxsz8Ig2ZvJriV+HH/eS9if2/bnzVD55BV4ZQxcLLibf/z3+LMf/if//rzQ+7q2IbiYbH34bHDUprkNd87/51VsSHi/a5r3+u5/j5/b+ts/bmxiB/Ne5soD9nN8LjFy+M220t7nxOvyeR0/fLms7wVYIj47czMhsQPnHVIOdzhLjCUE1rGyP507j+mKgx0IOccVjpe9Selmc2r0s3lPCfu1McfPj4EWNiKnOxW2Bgdis64rYz/lqthQzylfR875ziXX3HK/033d+b7vcotRvaRylVzuUkotrfSa6lVzvWuptbbaW2wJCMvtbuVotbXWOx/auXTn3Z1X9D7iSOMaedyjjDra6BPzmd |
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
const image64 = | |
"iVBORw0KGgoAAAANSUhEUgAABNcAAAQ4CAIAAAClm60kAABC0HpUWHRSYXcgcHJvZmlsZSB0eXBlIGV4aWYAAHjarZ1r1uQ2jm3/axQ9BJEURXI4fEhr9Qzu8O/ejMi002W7Xm2XKzO/jFBIJHBwDgggjuf//e97/M///E/IpcTjyqXe7b5P/rna1WLnN/X8/PP5NZzX/v/9zyr7T/75l58fqX7/IvKjxK/p8xf38/k1dH6ef3tDub4/H7/+/Cjz85tYvxf6/gUX3v8kP9nff19XvxdK8fPz8P3z0b7v69fvHuf7X5zfy34v/sc/X4XFWJnrpXjEJ4V08v/VT0ncQWqp7187f47R31V+f33/P/352h0/f/uHxVvvz0f8Ze3O/n1F+nUpjvP+vuD+wxp9fx7yH37+44Ku0O/vKPz4bfz1L+qdvsv7j2v3vqu+7/N5un7drNR9fB/qxxLu3/HCwVJ+VuPm38J/md+X/W/j38ojTnZssZuDf+cRWois9huusEIPb3j2rzNMbvGKTyz8GuOMaf+sphJbnHszLv8Nbyxsz8Ig2ZvJriV+HH/eS9if2/bnzVD55BV4ZQxcLLibf/z3+LMf/if//rzQ+7q2IbiYbH34bHDUprkNd87/51VsSHi/a5r3+u5/j5/b+ts/bmxiB/Ne5soD9nN8LjFy+M220t7nxOvyeR0/fLms7wVYIj47czMhsQPnHVIOdzhLjCUE1rGyP507j+mKgx0IOccVjpe9Selmc2r0s3lPCfu1McfPj4EWNiKnOxW2Bgdis64rYz/lqthQzylfR875ziXX3HK/033d+b7vcotRvaRylVzuUkotrfSa6lVzvWuptbbaW2wJCMvtbuVotbXWOx/auXTn3Z1X9D7iSOMaedyjjDra6BPzmdfM855l1tlmX3Glhfuve5Vj1dVWf8KDKT3Xk5/7KU992tNfbO1N7/Xm937LW9/29p+79t3VX3ct/GHn/n7XwnfX3LFrv678tmv |
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
void main() { | |
const Phone_Number = '00000'; | |
const uri = 'sms:$Phone_Number?body=hello%20there'; | |
print(uri); | |
var uri2 = 'sms:$Phone_Number?body=hello%20there'; | |
print(uri2); | |
} |