Skip to content

Instantly share code, notes, and snippets.

import 'dart:math';
main() {
List<int> list = generateRandomInts(10);
print("The list of numbers is: " + list.toString());
int max = findMax(list);
print("The max among this list is: " + max.toString());
}
List<int> generateRandomInts(int length) {
@veltall
veltall / act-tea-logexcerpt.txt
Created January 15, 2020 05:01
network log events between last damage dealt to Brute Justice till cast of Temporal Stasis
00|2020-01-14T21:01:10.0000000-04:00|12a9||  Brute Justice takes 2586 damage.|ef4807eae2eed0de8b063f097a83f54e
00|2020-01-14T21:01:10.0000000-04:00|0aa9||  Brute Justice takes 8332 damage.|3a1b940d4e764fa67c92d517168a8c89
39|2020-01-14T21:01:10.4610000-04:00|101AF26C|N'yaarles Barkley|103340|103340|3800|10000|0|0|92.0271|90.8064|0|-0.7146065||0dc5dd667153cb62fef3264216881daf
39|2020-01-14T21:01:10.4610000-04:00|101AF26C|N'yaarles Barkley|103340|103340|3800|10000|0|0|92.0271|90.8064|0|-0.7146065||295568e25c557504711d88452995d0be
21|2020-01-14T21:01:10.5510000-04:00|1067A50A|Shotgun Chocolate|4054|Stalwart Soul|E0000000||0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|0|||||||||||148542|148542|2400|10000|0|1000|87.20532|91.63037|0|0.6766396|00005BBE|fd1202d79f11c518e2de0ed6f4947f53
00|2020-01-14T21:01:10.0000000-04:00|102b||Bittersweet M. uses Gauss Round.|a655098ec03be19a967f9f9427ef9013
00|2020-01-14T21:01:10.0000000-04:00|12a9||  Critical! Brute Justice takes 10300 damage.|3ad26d3847244f9254ba07993bd47d83
39|2020-01-14T
myGlobalKeyDelay := 350
summonCD := 30000
charmCD := 4500
movementDur := 5000
roomDistance := 7500
themeparkX := 680
themeparkY := 321
suicideX := 680
suicideY := 340
myGlobalKeyDelay := 350
summonCD := 30000
charmCD := 4500
movementDur := 5000
roomDistance := 7500
themeparkX := 680
themeparkY := 321
suicideX := 680
suicideY := 340
@veltall
veltall / e4s.js
Created September 4, 2019 05:34
cactbot trigger file for e4s
'use strict';
[{
zoneRegex: /^Eden's Gate: Sepulture \(Savage\)$/,
timelineFile: 'e4s.txt',
timelineTriggers: [
{
id: 'E4S Earthen Anguish',
regex: /Earthen Anguish/,
beforeSeconds: 3,
@veltall
veltall / broil.txt
Created July 15, 2018 00:41
FFXIV SCH fairy autoheal
/ac "Broil" <t>
/ac "Broil" <t>
/ac "Broil" <t>
/ac "Broil" <t>
/ac "Broil" <t>
/pac "Embrace" <tt>
/pac "Embrace" <tt>
/pac "Embrace" <tt>
/pac "Embrace" <tt>
/pac "Embrace" <tt>
@veltall
veltall / duskborne.txt
Created July 14, 2018 22:38
FFXIV Duskborne aethersand timetables
TIME || LOCATION || JOB
04 a.m. || Forelands (17,27) || MINER
08 a.m. || Forelands (10,32) || BOTANIST
12 p.m. || Churning (29,19) || MINER
.....................................................................................................
04 p.m. || Churning (32,32) || BOTANIST
08 p.m. || Sea of Cloud (26,35) || BOTANIST
12 a.m. || CWH (10,14) || BOTANIST
/micon "Duskborne Aethersand" item
@veltall
veltall / rps.dart
Created July 1, 2018 12:44
Xenogears RPS badge
import 'dart:math';
main(List<String> args) {
int wins=0, losses=0, streak=0, attempts=0;
while(attempts++ <= 1000000) {
while(streak < 5) {
bool win = playRPS();
if(win) {
streak++;
} else break;
@veltall
veltall / favinheritedwidget.dart
Created April 8, 2018 21:41
How to maintain state for each widget instace
// the InheritedWidget is like a mailman, you
// --- tell them what package to retrieve, and
// --- tell them where from to retrieve it
class FavInheritedWidget extends InheritedWidget {
// the data that the InheritedWidget will maintain and bring to you
// the InheritedWidget will make a reference to the actual data with this variable
final Map<Place, RestaurantType> _favList;
FavInheritedWidget(this._favList, child) : super(child: child);
@veltall
veltall / main.dart
Last active April 5, 2018 05:21
Simple local restaurant query app
import 'dart:async';
import 'package:flutter/material.dart';
import './places.dart';
const lat = 37.7576792;
const long = -122.5078112;
void main() => runApp(new MyApp());
class MyApp extends StatelessWidget {