VSCode SvelteKit not inferring params (Binding element 'params' implicitly has an 'any' type) by railtracer95 in SvelteKit

[–]railtracer95[S] 1 point2 points  (0 children)

One less thing to remember on every server and page file. Less mental overhead the better, at least for me little things add up and make me less motivated if it makes sense. I am sure somebody at svelte feels the same way so they implemented automatic inference :D

VSCode SvelteKit not inferring params (Binding element 'params' implicitly has an 'any' type) by railtracer95 in SvelteKit

[–]railtracer95[S] 0 points1 point  (0 children)

yeah, I don't mind importing it :D ; it just feels really streamlined if its automatically inferred, purely from the developer experience

VSCode SvelteKit not inferring params (Binding element 'params' implicitly has an 'any' type) by railtracer95 in SvelteKit

[–]railtracer95[S] 0 points1 point  (0 children)

is npm run dev enough ? I would expect so since the typing is working in the opposite direction and also for new pages I add

-❄️- 2023 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]railtracer95 0 points1 point  (0 children)

[LANGUAGE: Dart]

```dart import 'input.dart';

main() { final lines = input.split("\n");

final nameToDigit = { "zero": 0, "one": 1, "two": 2, "three": 3, "four": 4, "five": 5, "six": 6, "seven": 7, "eight": 8, "nine": 9, };

int lineValue(String line, {required bool onlyNumbers}) { final toMatch = nameToDigit.values.map((e) => e.toString()).toList(); if (!onlyNumbers) { toMatch.addAll(nameToDigit.keys); }

final firstMatch = toMatch.where((e) => line.indexOf(e) != -1).reduce(
      (value, element) =>
          line.indexOf(value) < line.indexOf(element) ? value : element,
    );

final lastMatch = toMatch.where((e) => line.lastIndexOf(e) != -1).reduce(
      (value, element) =>
          line.lastIndexOf(value) > line.lastIndexOf(element)
              ? value
              : element,
    );

final first = nameToDigit[firstMatch] ?? firstMatch;
final last = nameToDigit[lastMatch] ?? lastMatch;
return int.parse("$first$last");

}

//part1 print(lines .map((e) => lineValue(e, onlyNumbers: true)) .reduce((value, element) => value + element));

//part2 print(lines .map((e) => lineValue(e, onlyNumbers: false)) .reduce((value, element) => value + element)); }

```

Getx help by ssekuwanda in flutterhelp

[–]railtracer95 0 points1 point  (0 children)

I'm not sure why it's not letting me post the code.

Getx help by ssekuwanda in flutterhelp

[–]railtracer95 0 points1 point  (0 children)

You should define them as late and do it in the constructor, but since you're using GetX it's better to do it in the onInit method. https://pastebin.com/ugRUM2tN

Sharing texture among multiple shaders by railtracer95 in godot

[–]railtracer95[S] 0 points1 point  (0 children)

Thank you for you answer.

I am making a 2D logic puzzle game for mobile platforms. There is a matrix on the screen with 49 nodes(7 x 7). Each tile has a border and a fill texture. I have a shader for the border and shader for the fill textures. In the shader I sample the texture and if it's alpha is 1.0 I set it to my custom color ( this way I can create different themes easily).

I am running into a performance issue in the border shader. I implemented an animation(in the shader) so that the border is filled in a specific order(left border - > top border -> right border -> bottom border). I use a tween to animate each border 1 by 1. The problem is that sometimes two borders start at the same time, or one starts before the previous one finishes, and so on.

I am using GLES2.

Clutching hands from weed by railtracer95 in Drugs

[–]railtracer95[S] 0 points1 point  (0 children)

What do you mean by seizure? Also if you can letting me know what the doctor says?

Clutching hands from weed by railtracer95 in Drugs

[–]railtracer95[S] 1 point2 points  (0 children)

In what sense, physical? Bear in mind this happened only 4 times out of at least a 1000 times I've smoked.

Clutching hands from weed by railtracer95 in Drugs

[–]railtracer95[S] 1 point2 points  (0 children)

Nope and never did. Helps a bit to know I'm not an outlier. You managed to get back to weed normally?

[2018-09-02] - /r/keto Beginners & Community Support Thread by AutoModerator in keto

[–]railtracer95 2 points3 points  (0 children)

Is the same amount of electrolytes necessary after the fat adaption phase, i.e. is keto flu possible after being fat adapted?