Skip to content

Instantly share code, notes, and snippets.

@it-one-mm
it-one-mm / loop.dart
Last active January 13, 2021 09:12
Dart Sample
void main() {
for(int i = 1; i <= 5; i++) {
print('hello $i');
}
print('finish loop');
// i i < 5 i++
// 0 0 < 5 Hello 0
@it-one-mm
it-one-mm / scratch.dart
Created May 30, 2020 06:53
Starting Code for Futures/Async/Await Demo
import 'dart:io';
void main() {
performTasks();
}
void performTasks() {
task1();
task2();
task3();
@it-one-mm
it-one-mm / _mockLocation.js
Last active May 21, 2020 16:03
Fake Locations To Test for Expo Client App
import * as Location from 'expo-location';
const tenMetersWithDegrees = 0.0001;
const getLocation = (increment) => {
return {
timestamp: 1000000,
coords: {
speed: 0,
heading: 0,
@it-one-mm
it-one-mm / settings.json
Created May 1, 2020 12:46
VSCode Settings
{
"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,
// Relational Operators
// == equal
// != not equal
// > greater than
// >= greater than or equal to
// < less than
// <= less than or equal to
// Logical Operators
// && AND
@it-one-mm
it-one-mm / list.dart
Last active September 5, 2020 11:31
void main() {
List<String> myList = [
'Angela',
'James',
'Katie',
'Jack',
];
}