Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
vthommeret
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
31.
▲
by
vthommeret
6y ago
I recently switched from Apple Music to Spotify and one feature I was surprised was missing was a notification on song changes. I built an app to add this feature and also the ability to control Spotify via the menubar. One fun emergent beh
32.
▲
by
vthommeret
6y ago
To understand basic notation like summations and matrix multiplications, I created Math to Code which is a quick tutorial to translate math into NumPy code: https://mathtocode.com/ Previous HN discussion / it was on th
33.
▲
by
vthommeret
6y ago
Based on the feedback, Math to Code now includes a Show solution button which lets you toggle a solution on and off if you get stuck!
34.
▲
by
vthommeret
6y ago
Thanks for the feedback! It now autofocuses when not on a mobile breakpoint. I originally had autofocus enabled, but on mobile it would cause the question to scroll off the screen before you had a change to read it which... wasn't idea
35.
▲
by
vthommeret
6y ago
Skulpt does support the Python 3.7.3 grammar [0], but it's a work in progress. I have it enabled here: https://github.com/vthommeret/mathtocode/blob/0d5f780be4f218... Is there something specific that did
36.
▲
by
vthommeret
6y ago
Good idea! I just added it: https://github.com/vthommeret/mathtocode/blob/master/LICENSE
37.
▲
by
vthommeret
6y ago
That's close, but basically you need to take the square of each element first, e.g. `m * * 2` [0]. This keeps the shape of the matrix while `m.prod()` returns a single number (multiplying each element together). So it should look somet
38.
▲
by
vthommeret
6y ago
Hmm interesting, thanks for the report! I'll see if I can set up some kind of client-side error tracker so I can investigate more easily in the future. It's possible that it timed out when computing the result — it evaluates the a
39.
▲
by
vthommeret
6y ago
Agreed. Particularly because NumPy has a mix of functions and methods where you need to balance parentheses. I'd like to more clearly show the answers / I originally didn't show what the test inputs (e.g. if square root is te
40.
▲
by
vthommeret
6y ago
Thanks for the feedback. I think I was being overly clever by trying to make the product example more complicated than just `m.prod()` similar to the `m.sum()` example, but as you mentioned I was fitting two concepts in one question — opera
41.
▲
by
vthommeret
6y ago
Thanks! Skulpt doesn't implement NumPy out of the box, but I'm using a library which is basically a shim / partial implementation of NumPy for Skulpt: https://github.com/ebertmi/skulpt_numpy It's fa
42.
▲
by
vthommeret
6y ago
Got it! I'm working to add a "Show solution" button, but I just published another hint for that question. Specifically, the syntax is the same as for summations "m.sum()" but with "prod" instead. Additiona
43.
▲
by
vthommeret
6y ago
Thanks for the feedback. This is definitely oriented towards beginners but also love some more advanced examples. Math to Code is open source, so if you can express a solution with NumPy you can easily add new questions / I'm happ
44.
▲
by
vthommeret
6y ago
Thanks for the feedback! I plan to add this shortly! Where did you get stuck?
45.
▲
Show HN: Math to Code – Interactive NumPy tutorial for engineers
(mathtocode.com)
137 points
by
vthommeret
6y ago
|
33 comments
46.
▲
by
vthommeret
6y ago
Math to Code is an interactive Python tutorial (all client-side) to teach engineers how to implement math in papers. I was inspired to create it while taking the Fast.ai course and seeing Jeremy Howard share [0] how a "complicated"
47.
▲
by
vthommeret
6y ago
I plan to create a Show HN shortly, but I created an interactive Python tutorial to teach engineers how to read and implement math using the NumPy library, called Math to Code: https://mathtocode.com It takes you from basic func
48.
▲
by
vthommeret
6y ago
I also highly recommend Complete Vocal Technique. It breaks down the voice in a unique way that I think particularly appeals to engineers and teaches you how to re-create any style safely by using correct vocal support, vowel choice, mouth
49.
▲
by
vthommeret
6y ago
I’m also picking up deep learning with a focus on computer vision. Do the first lesson of Fastai’s Practical Deep Learning for Coders — https://course.fast.ai/ It explains that trying to use your own GPU takes a lot of ener