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
main() { | |
List myList = [ | |
{'id': 'red', 'test': 'some data'}, | |
{'id': 'green', 'other': 'some other data'}, | |
{'id': 'blue'}, | |
]; | |
List myOrderList = [ | |
{'id': 'red', 'order': 1}, |
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
# No-ip.com Dynamic DNS Updater | |
# | |
cd ~/Downloads | |
wget https://dmej8g5cpdyqd.cloudfront.net/downloads/noip-duc_3.0.0-beta.7.tar.gz | |
tar xf noip-duc_3.0.0-beta.7.tar.gz | |
apt install binaries/noip-duc_3.0.0-beta.7_amd64.deb | |
vi /etc/default/noip-duc | |
NOIP_USERNAME= | |
NOIP_PASSWORD= |
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() { | |
final List list1 = ['zero', 'one', 'two', 'three']; | |
final List list2 = list1; // <- Create a new reference to the same list | |
list2[1] = 'five'; | |
print('$list1 $list2'); | |
final List list3 = ['nine', 'ten', 'eleven']; | |
final List list4 = List.from(list3); // <- Create a brand new list | |
list4[1] = 'twenty'; | |
print('$list3 $list4'); |