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() { | |
for(int i = 1; i <= 5; i++) { | |
print('hello $i'); | |
} | |
print('finish loop'); | |
// i i < 5 i++ | |
// 0 0 < 5 Hello 0 |
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 'dart:io'; | |
void main() { | |
performTasks(); | |
} | |
void performTasks() { | |
task1(); | |
task2(); | |
task3(); |
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 * as Location from 'expo-location'; | |
const tenMetersWithDegrees = 0.0001; | |
const getLocation = (increment) => { | |
return { | |
timestamp: 1000000, | |
coords: { | |
speed: 0, | |
heading: 0, |
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
{ | |
"workbench.colorTheme": "Ayu Mirage", | |
"workbench.iconTheme": "material-icon-theme", | |
"editor.fontSize": 19, | |
"files.autoSave": "onFocusChange", | |
"editor.formatOnSave": true, | |
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe", | |
"debug.console.fontSize": 18, | |
"markdown.preview.fontSize": 18, | |
"terminal.integrated.fontSize": 18, |
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
// Relational Operators | |
// == equal | |
// != not equal | |
// > greater than | |
// >= greater than or equal to | |
// < less than | |
// <= less than or equal to | |
// Logical Operators | |
// && AND |
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() { | |
List<String> myList = [ | |
'Angela', | |
'James', | |
'Katie', | |
'Jack', | |
]; | |
} |
NewerOlder