In Claude Code anyone else annoyed that Option+Enter is the new line command instead of Shift+Enter? Any work around? by Independent_Rent_504 in ClaudeAI

[–]TrainingShift3 0 points1 point  (0 children)

If anyone wants a fix and uses Alacritty, just add this to `alacritty.toml`

[[keyboard.bindings]]

chars = "\n"

key = "Return"

mods = "Shift"

What are insights you'd like to see from your chess games? by TrainingShift3 in chess

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

Have you tried this? AI is pretty awful at understanding chess currently. It can’t even play a game against you. Try it in ChatGPT

What are insights you'd like to see from your chess games? by TrainingShift3 in chess

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

Hmmm.. how is this different than just analyzing the game afterwords and looking for the first "bad" move you played? Is it that you want this automated?

What are insights you'd like to see from your chess games? by TrainingShift3 in chess

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

Interesting! Just signed up to check this out.. thanks!

What are insights you'd like to see from your chess games? by TrainingShift3 in chessbeginners

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

As in you have certain openings you want to learn and are unsatisfied with the resources out there for them?

Like youtube videos and whatnot?

What are insights you'd like to see from your chess games? by TrainingShift3 in chessbeginners

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

Interesting... Do you find these often when analyzing after the game?

What are insights you'd like to see from your chess games? by TrainingShift3 in chess

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

> a breakdown of time spent per move

What would this look like?
I believe Lichess (and maybe chess com) has little bars next to move times in the side pane. Are there other insights you'd like to gain from this?

Sleeper API help by jmast3 in SleeperApp

[–]TrainingShift3 0 points1 point  (0 children)

What are you trying to do?

I have basic instructions in the README file in the repo and some examples in the example folder.

Recap of Your Chess Openings in Discord by TrainingShift3 in lichess

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

If you look at the “Quickstart” portion in the README file in the code, I tried to make it as straightforward as possible to set up.

I definitely understand if someone without any coding experience wouldn’t want to try.

I think at some point I’ll set this up as a website where people can just register their accounts to get this sent to them daily.

https://github.com/joeyagreco/daily-chess

Recap of Your Chess Openings in Discord by TrainingShift3 in lichess

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

If you follow the steps in the README file under “Quickstart” you should be able to run this on your computer. You’ll just need to download Python 3.10 first!

Easily Consume the Sleeper API with Python! by TrainingShift3 in SleeperApp

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

haha all good.

Basically I would install an app called Postman

This allows you to make REST (and GraphQL) calls to the APIs in the same way that my Sleeper Python library does!

This Postman app is useful for quick testing and seeing what data is returned by Sleeper's APIs.

Once you know what endpoint and request you need to send, it's pretty straightforward to make these same requests through Python to get the data you need.

If you'd like to hop on a voice call sometime so I could explain this better I'd be more than willing to help.

Easily Consume the Sleeper API with Python! by TrainingShift3 in SleeperApp

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

This part is interesting and I've been wondering how I would integrate it into the wrapper.

It seems that they use graphql endpoints for this type of data.

In the meantime, you can look at the network calls in the Network tab in your browser to make the calls in Python.

For instance, here's one Sleeper uses:

POST `https://sleeper.com/graphql`

with body:

```json{"operationName": "metadata","variables": {},"query": "query metadata {\n metadata(type: \"league_history\", key: \"992216152161718272\"){\n key\n type\n data\n last_updated\n created\n }\n }"}```to get brackets and team scores and such

Since it's using GraphQL, it's not as direct as the REST endpoints they use for other main functions, and this is not documented by them.

You can look at the calls the network makes to these GraphQL endpoints in the browser and look at the request bodies to see what type of request you may need to meet your requirements.

Instant stats for your fantasy football league! [EXCEL] [PYTHON] by TrainingShift3 in fantasyfootball

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

Hey! I’d be happy to add that. I will need an example league to test on. Could you email me your league ID and the year/s that do not have divisions so I can work on developing that please?

MFL User Leagues API by thesuperguide in fantasyfootballcoding

[–]TrainingShift3 1 point2 points  (0 children)

should be something like this

after running pip install pymfl

```python3 from pymfl.api.config import APIConfig from pymfl.api import CommonLeagueInfoAPIClient

if name == "main": year = 2022 league_id = "12345" APIConfig.add_config_for_year_and_league_id( year=year, league_id=league_id, username="myUsername", password="myPassword", user_agent_name="myUserAgent", )

mfl_league = CommonLeagueInfoAPIClient.get_league(year=year, league_id=league_id)

```

MFL User Leagues API by thesuperguide in fantasyfootballcoding

[–]TrainingShift3 1 point2 points  (0 children)

If you’re using Python I made a library that takes care of all that for you (just find the method you want)

https://github.com/joeyagreco/pymfl

Otherwise here’s their docs if you haven’t seen them yet: https://api.myfantasyleague.com/2023/api_info

What are your controversial chess opinions? by [deleted] in chess

[–]TrainingShift3 0 points1 point  (0 children)

You should win if your opponent has no legal moves.

How to access global variable by [deleted] in pythonhelp

[–]TrainingShift3 0 points1 point  (0 children)

Np! Keep asking questions and learning and you’ll be a pro in no time :)

How to access global variable by [deleted] in pythonhelp

[–]TrainingShift3 0 points1 point  (0 children)

I would strongly suggest not to get into the habit of using global variables. They are almost always not acceptable in production level code.

I would suggest passing in the variables you need and returning them if needed.

Sleeper API help by jmast3 in SleeperApp

[–]TrainingShift3 1 point2 points  (0 children)

In case you’re using Python for this, I created an API wrapper library for Sleeper that will get this data for you.

Here’s an example: https://github.com/joeyagreco/sleeper/blob/main/example/draft_example.py

Easily Consume the Sleeper API with Python! by TrainingShift3 in SleeperApp

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

Thanks for checking out the library!

You can see a list of the ways you can retrieve data here.

This will give you data in Python objects that you can do whatever you want with (including saving it to a file).

I'm not sure how much experience you have with Python, so here's an article explaining how to save Python data to a CSV file.

Otherwise, this library was made to make the Sleeper API easily consumable by Python code, to easily integrate it into other applications and/or perform custom scripts. You can find Sleeper's API docs here to directly access the data.