@@ -46,6 +46,13 @@ var headers map[string]int = map[string]int{
46
46
"Notes" : 23 ,
47
47
}
48
48
49
+ func trimTwo (val [][]string ) [][]string {
50
+ var jwt [][]string //semantics and usage changesd
51
+ for _ , vala := range val {
52
+ jwt = append (jwt , vala [2 :])
53
+ }
54
+ return jwt
55
+ }
49
56
func createNewElem (val []string ) data.Schema {
50
57
//lld reference
51
58
//tcp packet stream
@@ -311,7 +318,7 @@ func generateMedians(tcp [][]string) [][24]string {
311
318
func main () {
312
319
//lld re
313
320
graph := chart.
314
- BarChart {
321
+ BarChart {
315
322
Title : "Autonomous Amps" ,
316
323
Background : chart.Style {
317
324
Padding : chart.Box {
@@ -445,9 +452,23 @@ func main() {
445
452
image .File = "graphs/" + s + ".png"
446
453
image .Refresh ()
447
454
})
455
+
456
+ easterEgg := apptcpjwt .NewWindow ("ITS A SECRET TO EVERYBODY" )
457
+ easterEgg .Resize (fyne .NewSize (513 , 293 ))
458
+ imagetwo := canvas .NewImageFromFile ("0image.png" )
459
+ imagetwo .FillMode = canvas .ImageFillContain
460
+ easterEgg .SetContent (imagetwo )
461
+ easterEgg .SetCloseIntercept (func () {
462
+ easterEgg .Hide ()
463
+ })
464
+ button := widget .NewButton ("" , func () {
465
+ easterEgg .Show ()
466
+ })
448
467
vspli := container .NewVSplit (imageSelect , image )
449
468
vspli .SetOffset (0 )
450
- teamCharts .SetContent (vspli )
469
+ vsplitwo := container .NewVSplit (vspli , button )
470
+ vsplitwo .SetOffset (1 )
471
+ teamCharts .SetContent (vsplitwo )
451
472
452
473
matchLookup := apptcpjwt .NewWindow ("Match Lookup" )
453
474
//lld
@@ -484,7 +505,7 @@ func main() {
484
505
},
485
506
) //realoads when rendering
486
507
487
- sorted := widget .NewSelect ([]string {"AutoAmps" , "AutoSpeaker" , "AutoLeave" , "AutoMiddle" , "TeleopAmps" , "TeleopSpeaker" , "Penalties" , "TechPenalties" }, func (s string ) {
508
+ avgssorted := widget .NewSelect ([]string {"AutoAmps" , "AutoSpeaker" , "AutoLeave" , "AutoMiddle" , "TeleopAmps" , "TeleopSpeaker" , "Penalties" , "TechPenalties" }, func (s string ) {
488
509
index := headers [s ]
489
510
sort .Slice (x , func (illvm , jllvm int ) bool {
490
511
if x [illvm ][1 ] == "TeamName" || x [jllvm ][1 ] == "TeamName" {
@@ -500,12 +521,49 @@ func main() {
500
521
return false
501
522
}
502
523
val1 , _ := strconv .ParseFloat (medians [igcc ][index ], 64 )
503
- val2 , _ := strconv .ParseFloat (medians [igcc ][index ], 64 )
524
+ val2 , _ := strconv .ParseFloat (medians [jgcc ][index ], 64 )
525
+ fmt .Println (val2 , " " , val1 )
504
526
return val1 > val2
527
+
505
528
})
529
+ //change valuie at mem addr
506
530
507
531
averageTable .Refresh ()
532
+
533
+ })
534
+
535
+ messorted := widget .NewSelect ([]string {"AutoAmps" , "AutoSpeaker" , "AutoLeave" , "AutoMiddle" , "TeleopAmps" , "TeleopSpeaker" , "Penalties" , "TechPenalties" }, func (s string ) {
536
+ index := headers [s ]
537
+ sort .Slice (medians , func (igcc , jgcc int ) bool {
538
+ if medians [igcc ][1 ] == "TeamName" || medians [jgcc ][1 ] == "TeamName" {
539
+ return false
540
+ }
541
+ val1 , _ := strconv .ParseFloat (medians [igcc ][index ], 64 )
542
+ val2 , _ := strconv .ParseFloat (medians [jgcc ][index ], 64 )
543
+ fmt .Println (val2 , " " , val1 )
544
+ return val1 > val2
545
+
546
+ })
547
+ //change valuie at mem addr
508
548
medianTable .Refresh ()
549
+
550
+ })
551
+
552
+ averageWindow := apptcpjwt .NewWindow ("Averages" )
553
+ medianWindow := apptcpjwt .NewWindow ("Medians" )
554
+ averageWindow .Resize (fyne .NewSize (1200 , 600 ))
555
+ medianWindow .Resize (fyne .NewSize (1200 , 600 ))
556
+ averageVSplit := container .NewVSplit (avgssorted , averageTable )
557
+ averageVSplit .SetOffset (0 )
558
+ medianVSplit := container .NewVSplit (messorted , medianTable )
559
+ medianVSplit .SetOffset (0 )
560
+ averageWindow .SetContent (averageVSplit )
561
+ medianWindow .SetContent (medianVSplit )
562
+ averageWindow .SetCloseIntercept (func () {
563
+ averageWindow .Hide ()
564
+ })
565
+ medianWindow .SetCloseIntercept (func () {
566
+ medianWindow .Hide ()
509
567
})
510
568
511
569
current .Resize (fyne .NewSize (1200 , 700 ))
@@ -591,7 +649,7 @@ func main() {
591
649
values = append (values , chart.Value {Value : float64 (val [0 ]), Label : fmt .Sprintf ("Match %v" , val [1 ])})
592
650
}
593
651
graph := chart.
594
- BarChart {
652
+ BarChart {
595
653
Title : k ,
596
654
Background : chart.Style {
597
655
Padding : chart.Box {
@@ -612,8 +670,8 @@ func main() {
612
670
613
671
//llreference
614
672
615
- currentAverages = [3 ][]string {{"ID" , "TeamName" , "TeamNumber" , "MatchesPlayed " , "AutoAmps" , "AutoSpeaker" , "AutoLeave" , "AutoMiddle" , "TeleopAmps" , "TeleopSpeaker" , "Chain" , "Harmony" , "Trap" , "Park" , "Ground" , "Feeder" , "Mobility" , "Penalities" , "Tech-Pens" , "Ground-Pick" , "Starting-Pos" , "Defense" , "CenterRing" , "Notes" }, avg , media }
616
- matchDatas [0 ] = []string {"ID" , "TeamName" , "TeamNumber" , "MatchesPlayed " , "AutoAmps" , "AutoSpeaker" , "AutoLeave" , "AutoMiddle" , "TeleopAmps" , "TeleopSpeaker" , "Chain" , "Harmony" , "Trap" , "Park" , "Ground" , "Feeder" , "Mobility" , "Penalities" , "Tech-Pens" , "Ground-Pick" , "Starting-Pos" , "Defense" , "CenterRing" , "Notes" }
673
+ currentAverages = [3 ][]string {{"" , "AutoAmps" , "AutoSpeaker" , "AutoLeave" , "AutoMiddle" , "TeleopAmps" , "TeleopSpeaker" , "Chain" , "Harmony" , "Trap" , "Park" , "Ground" , "Feeder" , "Mobility" , "Penalities" , "Tech-Pens" , "Ground-Pick" , "Starting-Pos" , "Defense" , "CenterRing" , "Notes" }, avg , media }
674
+ matchDatas [0 ] = []string {"" , "AutoAmps" , "AutoSpeaker" , "AutoLeave" , "AutoMiddle" , "TeleopAmps" , "TeleopSpeaker" , "Chain" , "Harmony" , "Trap" , "Park" , "Ground" , "Feeder" , "Mobility" , "Penalities" , "Tech-Pens" , "Ground-Pick" , "Starting-Pos" , "Defense" , "CenterRing" , "Notes" }
617
675
for k , v := range currentAverages {
618
676
fmt .Println (k , v )
619
677
}
@@ -710,15 +768,19 @@ func main() {
710
768
llvm .SetColumnWidth (i , 100 )
711
769
}
712
770
// ast exp := widget.New
713
- cont := container .NewVSplit ( container . NewHSplit ( averageTable , medianTable ), container . NewVBox (widget .NewButtonWithIcon ("Refresh" , theme .ViewRefreshIcon (), func () {
771
+ cont := container .NewVBox (widget .NewButtonWithIcon ("Refresh" , theme .ViewRefreshIcon (), func () {
714
772
tcp , allData = populate (db , allData , tcp , []string {"ID" , "TeamName" , "TeamNumber" , "MatchesPlayed" , "AutoAmps" , "AutoSpeaker" , "AutoLeave" , "AutoMiddle" , "TeleopAmps" , "TeleopSpeaker" , "Chain" , "Harmony" , "Trap" , "Park" , "Ground" , "Feeder" , "Mobility" , "Penalities" , "Tech-Pens" , "Ground-Pick" , "Starting-Pos" , "Defense" , "CenterRing" , "Notes" })
715
773
llvm .Refresh ()
716
774
x = generateAverages (tcp )
717
775
medians = generateMedians (tcp )
718
776
medians = generateMedians (tcp )
719
777
}), widget .NewButtonWithIcon ("Display Raw" , theme .GridIcon (), func () {
720
778
settings .Show ()
721
- }), sorted ,
779
+ }), widget .NewButtonWithIcon ("Display Averages" , theme .RadioButtonIcon (), func () {
780
+ averageWindow .Show ()
781
+ }), widget .NewButtonWithIcon ("Display Medians" , theme .RadioButtonIcon (), func () {
782
+ medianWindow .Show ()
783
+ }),
722
784
widget .NewButtonWithIcon ("Match Lookup" , theme .SearchIcon (), func () {
723
785
matchLookup .Show ()
724
786
}), widget .NewButtonWithIcon ("Team Lookup" , theme .SearchIcon (), func () {
@@ -821,9 +883,8 @@ func main() {
821
883
fmt .Println (err )
822
884
}, current )
823
885
jwtauth .Show ()
824
- })))
825
- cont .SetOffset (1 ) //clamps
826
- mainContainer := cont
886
+ }))
887
+ //clamps
827
888
828
889
settings .SetContent (llvm )
829
890
//comemt node
@@ -865,7 +926,7 @@ func main() {
865
926
// Notes: "",
866
927
//})
867
928
868
- current .SetContent (mainContainer )
929
+ current .SetContent (cont )
869
930
current .ShowAndRun () //defer?
870
931
//llvm go sadck jwt auth
871
932
//lld linker go sdk
0 commit comments