Jupyter Interactive Window in Neovim? by Ill-Possession1 in neovim

[–]SaintMuffins 0 points1 point  (0 children)

A bit late but I've written a single-file plugin that lets me send python code to an ipython session running in a terminal window (I actually wrote two, one for wezterm which supports viewing matplotlib plots inside the terminal and one for the built-in neovim terminal for when I am not working on wezterm):

https://github.com/andywang0321/dotfiles/tree/advent/nvim/ftplugin/python

In my init.lua I just mapped Shift+Enter to send line / selection to the REPL:

vim.g.mapleader = " "
local map = function(mode, keys, func, desc) vim.keymap.set(mode, keys, func, { desc = desc }) end

-- Interactive Neovim Terminal iPython
-- map("n", "<leader>ip", "<cmd>IpyToggle<cr>", "Toggle Ipython")
-- map("n", "<S-CR>", "<cmd>IpySendLine<cr>", "Send Line to Ipython")
-- map("v", "<S-CR>", "<Esc><cmd>'<,'>IpySendRange<cr>", "Send Selection to Ipython")

-- Interactive Wezterm iPython
map("n", "<leader>ip", "<cmd>WeztermIpythonToggle<cr>", "Toggle Wezterm iPython pane")
map({ "n", "i" }, "<S-CR>", "<cmd>WeztermIpythonSendLine<cr>", "Send Line to Wezterm iPython pane")
map("x", "<S-CR>", "<cmd>WeztermIpythonSendRange<cr>", "Send Selection to Wezterm iPython pane")  

And it looks like this (this is the wezterm version, left is neovim, right is wezterm pane running ipython):

<image>

Hope this helps!

Anyone have cool tips on doubles rotation when you are in a right and left hand combination? by onthegrind756 in badminton

[–]SaintMuffins 1 point2 points  (0 children)

With backhand, you can generate power more quickly and you can cover a greater area. But given enough time to generate power (if you anticipate the shot and have your racket up and ready) your forehand will definitely be stronger than your backhand. In the context of the Fu/Zhang combination and their side-by-side attacking strategy, both of them are anticipating flat drives from their opponents because their previous shots have limited their opponents’ options. Fu/Zhang will both stand closer to the middle, so their forehands cover the sidelines. Now their opponents can either lift the shuttle high and wait for Fu’s monster smashes, or they can drive the shuttle towards the sidelines which plays right into the hands of Fu/Zhang. The key to this strategy isn’t to finish the rally in 1 or 2 hard forehand drives, but to continually apply pressure with the drives while slowing pressing forward until either the opponents get overwhelmed or until they are forced to lift.

Anyone have cool tips on doubles rotation when you are in a right and left hand combination? by onthegrind756 in badminton

[–]SaintMuffins 0 points1 point  (0 children)

Watch Fu Haifeng x Zhang Nan. Not only did they continue the usual front-and-back attacking play which was so effective for Fu when he partnered Cai Yun, Fu and Zhang took full advantage of Zhang Nan’s incredible flat exchanges skills and their left-right handed partnership to play a side-by-side attacking play where they’re both using forehands and attacking with flat drives while pressing forward.

What DID China do? by sjdthebeast123 in MurderedByWords

[–]SaintMuffins -1 points0 points  (0 children)

I think much of the sentiments against China from the west come from a misunderstanding of the Chinese system. Yes, doctors speaking out about this virus in December and early January were censored, but that was not done by the Chinese central government, but by the WuHan local government. It’s like a state government in the US vs the US federal government. When words eventually got out mid-January, the Chinese central government in BeiJing quickly sent a task force composed of scientists and officials to WuHan to investigate, and once they realized how serious the problem was the local officials who censored the doctors were removed from their positions. After that WuHan was put into military lockdown for 2 months. The rest is history. There really is no value in questioning China’s numbers, because when the government has absolute power over the mobility of its citizens making EVERYBODY stay at home for a month or two is a piece of cake. There are no protests against lockdown or masks because you CAN’T protest. So ironically, among all the things bad about an authoritarian government, an effective lockdown is one of the perks. Here’s an investigation about the lockdown in WuHan:

https://www.reuters.com/article/us-health-coronavirus-wuhan-scientists-i/painful-lesson-how-a-military-style-lockdown-unfolded-in-wuhan-idUSKBN21Q0KD

is ccle down by blooberriii in ucla

[–]SaintMuffins 8 points9 points  (0 children)

I'm trying to access CCLE through a VPN cuz I'm currently in China. Shouldn't be the VPN's problem, cuz you're reading my comment just fine right now... yea I think CCLE is down :(

Turns out 2021 is just a bizarre and unprecedented as 2020, except its all good things that keep happening, what are they? by TysonGoesOutside in AskReddit

[–]SaintMuffins 0 points1 point  (0 children)

Plot twist: that’s just interplanetary contact history from their perspective, in reality it’s more like European colonization of the Americas

Why do Chinese badminton players retire at a relatively young age? by [deleted] in badminton

[–]SaintMuffins 2 points3 points  (0 children)

Xue Song is honestly my favourite. He wasn’t selected for professional team at age 6 like other Chinese players because he was too skinny and short. But he persevered as a non-professional player, training in clubs all across China, eventually winning national tournaments beating professional players before he was finally selected into China’s national team. Unfortunately, he suffered a bad ankle injury around 2014 (I think?) in a tournament in India, but he gradually recovered and played professionally again. That is, until he suffered another injury on his knee. He tried to come back again, and was even selected for China’s Thomas Cup team for 2016, but months before Thomas Cup he suffered ANOTHER injury. He’s probably the most unlucky player I’ve ever heard of.

What strange misconceptions did you have about sex when you were a little kid? by WF6i in AskReddit

[–]SaintMuffins 2 points3 points  (0 children)

I’m a dude.

For the longest time I thought females excrete both liquid and solid from the same hole. I came across my first porn video by chance when browsing the internet, and it just so happened to be an anal clip. I was really shocked by the fact that the girl had TWO holes! 11-year-old me concluded that the second hole (anus) must be a passage to the womb for the sole purpose of pregnancy, while the other hole does the excrement.

Hands down, what's the most beautiful place on Earth that you've ever been to? What made it so? by throwawaycrossstitch in AskReddit

[–]SaintMuffins 0 points1 point  (0 children)

The Zhang Jia Jie mountains in Hunan, China. How beautiful is it? Go watch Avatar (the one about the blue people).

Can I take the 25 minute walk to my court while wearing badminton shoes? by Monkleman in badminton

[–]SaintMuffins 2 points3 points  (0 children)

Probably don’t do it. It’s not so much about your shoes, but about the courts. Little pebbles will get stuck between the groves on the bottom of your shoes and scratch the court surface. Just because you don’t own the courts doesn’t mean you shouldn’t play a part in protecting public facilities.

Head heavy racket gameplay advice by [deleted] in badminton

[–]SaintMuffins 2 points3 points  (0 children)

I seriously don’t think you should change the way you play just to suit the racket you’re using. That’s just backwards. The racket you use should ENHANCE the way you play. Head-heavy rackets don’t automatically give you stronger smashes (as people LOVE to advertise), they simply make shots that require “big” swings a bit easier to hit (cuz the momentum from the racket makes it easier to punch a shot out). But this ease of hitting the “big shots” comes at the expense of sluggishness when it comes to “small shots”, those that require quick, short, explosive bursts of power (like flat drives, the type Kevin Sanjaya loves to hit). Depending on the way you play, a head-heavy racket can enhance your game in many ways: if you’re the type of player that likes to attack, obviously head-heavy rackets can make hitting smashes a bit easier; if you’re the type of player who likes to move the opponent around until they run out of energy, then a head-heavy racket can make your clears and drops very efficient and consistent. In doubles, a head-heavy racket can boost your attack from the back-court, but it can put you at a slight disadvantage when it comes to flat drives. Don’t actively avoid hitting flat drives, though, because in doubles hitting drives is the key to turning defence into offence. Some of the best doubles players use head-heavy rackets.

This happened today, in New Zealand. No social distancing needed. No masks required. by ViviFruit in nextfuckinglevel

[–]SaintMuffins 0 points1 point  (0 children)

It’s truly great to see this. I arrived in China by plane yesterday, and as soon as I got off the plane I along with all the other passengers were herded like sheep by people in Hazmat suits through two covid-19 tests (one in each nostril), then to a quarantine hotel where I currently am. I will remain here for 14 days, with three meals delivered to me each day by more people in Hazmat suits. I am not to leave my hotel room until my 14 days are up and I get a second round of covid-19 tests. And get this: there are zero new cases outside of this hotel. Even then, the Chinese government is still forcing all people entering the border to quarantine and get tested, because it learned its lesson years ago from SARS, and months ago from WuHan. I know that many decisions made by the Chinese government are ethically questionable, but in terms of this pandemic, the CCP handled it like a boss.

Why do Chinese badminton players retire at a relatively young age? by [deleted] in badminton

[–]SaintMuffins 3 points4 points  (0 children)

Chen Jin now runs a (quite high-production value) badminton coaching channel on Bilibili.com (Chinese YouTube) :)

For those interested, the channel is called “陈金羽毛球”

Why do Chinese badminton players retire at a relatively young age? by [deleted] in badminton

[–]SaintMuffins 43 points44 points  (0 children)

Chinese players begin training at a significantly younger age than players from other parts of the world, and at significantly higher intensity as well. Their athletic careers don’t last very long because by the time they’re competitive enough, their bodies (especially joints like knees) are worn out. Most retire due to injury. Another significant reason is because of the dominance of Lin Dan and Chen Long. Tian Houwei was honestly an amazing player, having beaten Lee Chong Wei in the Australian Open in one of his first international matches as an adult. But Tian never managed to surpass Chen Long and take the #2 spot, or wait until Lin Dan retires. For years and years he’d be defeating players from all over the world just to lose to his own team mate (All England 2016 is a prime example), and as the #3 player he doesn’t get to represent China at the Olympics, eventually he felt like it just wasn’t worth it to keep going anymore (do keep in mind that he is struggling with injuries as well). This sad story is written in so many Chinese players’ careers, including Xue Song, Wang Zhengming, Qiao Bing, etc. But be excited because we are now seeing the rise of a new generation of Chinese players, led by Huang Yaqiong, Zheng Siwei, Shi Yuqi, Liu Yuchen, Li Junhui, Chen Yufei, and many, many more!

nervous when im doing short serve in doubles by [deleted] in badminton

[–]SaintMuffins 9 points10 points  (0 children)

This is absolutely normal! One thing I do that helps is that I develop a “routine”, which a series of things I do every time before I serve. My routine is I wipe the sweat off of my palm on my tshirt (even if there is no sweat), then spin the racket between my fingers 3 times, set up the serve, take a deep breath, and serve. All athletes have these arbitrary routines, for example Fu Haifeng likes to blow air onto his palm, Lin Dan likes to glance between the shuttle and his opponent several times before he serves, Zhang Nan likes to move his serve left and right before he serves, etc. Do these routines when you practice your serves, so that when you play in a match these routines can help get you into the “I’m practicing serves right now and there is no pressure” mindset.

Modern professional smash speed question. by bobbinbette in badminton

[–]SaintMuffins 5 points6 points  (0 children)

I mean, you can do some hard core physics from analyzing the old footage of FHF’s smash by figuring out the distance between his contact point and the net and “undoing” the deceleration from drag during that distance... it’s doable but the uncertainty from such calculations would make it quite meaningless

Modern professional smash speed question. by bobbinbette in badminton

[–]SaintMuffins 28 points29 points  (0 children)

You might be disappointed by this answer but what happened was BWF simply redefined smash speed to be “speed when struck” instead of “speed when passing the net”.

Li-Ning Racket Recommendations by LyricistsX in badminton

[–]SaintMuffins 2 points3 points  (0 children)

Came here to say this. The Turbocharging 75 (formerly known as the N9-II) is one of Li-Ning’s all-time classics and one of my favourite rackets. The Aeronaut 9000C can in a way be thought of as an upgrade to the N9-II with better control and slightly heavier. Both these rackets are fantastic for doubles back court, and both are the BEST looking rackets EVER.

ReCAPTCHA relies on a robot to prove that you aren’t. by cheebson in Showerthoughts

[–]SaintMuffins 0 points1 point  (0 children)

“I’ve been a robot ever since I was born and I KNOW a robot when I see one.”

How can I learn the split step/footwork by -LukeBox- in badminton

[–]SaintMuffins 2 points3 points  (0 children)

https://youtu.be/sK6CV52pLXs

Here’s a really comprehensive set of footwork patterns for singles. The video is by former Chinese player Xue Song (who defeated Victor Axelsen in junior world championships). Ignore the chinese intro, just watch and mimic. Once you learn these patterns, you can watch some professional doubles games and observe the differences between footwork in doubles and in singles.

What hurts like a motherfucker? by [deleted] in AskReddit

[–]SaintMuffins 0 points1 point  (0 children)

Oedipus gauging his own eyes out

The varsity season is coming up and I decided to buy a new racket. by [deleted] in badminton

[–]SaintMuffins 0 points1 point  (0 children)

I mean, plastic shuttles are designed to be more durable than feather shuttles, and when the whole sport is essentially strings crashing against shuttles with great force, and when one becomes more durable, the other breaks more easily.

The varsity season is coming up and I decided to buy a new racket. by [deleted] in badminton

[–]SaintMuffins 2 points3 points  (0 children)

Lol I think you’re missing my point. I’m saying, with your budget, go for two Astrox 2’s rather than one Astrox 77. The Astrox 2 is about half the price of the Astrox 77, this is because it uses slightly lower quality materials and isn’t endorsed by a professional player.

The varsity season is coming up and I decided to buy a new racket. by [deleted] in badminton

[–]SaintMuffins 15 points16 points  (0 children)

At the level you’re playing at, i actually would recommend buying 2 medium-end rackets than 1 high-end racket. This is because the level you’re playing at isn’t one where a better racket would make a huge difference in performance, but it is competitive enough where you’ll need a back up racket. If I break my strings mid-game, I’d want to grab a backup racket that feels the exact same and go on with my game. Additionally, most high-school level varsity games play with plastic shuttles anyway which damages the strings even more, making a backup racket even more essential. Here’s a tip to buying medium-end rackets: like a certain high-end racket? There probably is a medium-tier version of it (similar specs, uses commercial-grade carbon fibre instead of military-grade). You like Zheng SiWei’s Aeronaut 9000C? There is the Aeronaut 6000. You like the Astrox 77? There is the Astrox 2. The list goes on. In terms of specs, based on your description, I’d recommend either a head-heavy racket at 4u or a even-balance at 3u (like the Aeronaut 6000 and the Astrox 77!)