Hacker Newsnew | past | comments | ask | show | jobs | submit | motokamaks's commentslogin

Marvin Von Hagen also posted a screengrab video https://www.loom.com/share/ea20b97df37d4370beeec271e6ce1562


I was able to make it generate code to generate MD5 hashes with test cases

The output I got

package main

import ( "crypto/md5" "fmt" "testing" )

func TestCalculateMd5(t testing.T) { tests := []struct { name string s string want string }{ { name: "empty string", s: "", want: "d41d8cd98f00b204e9800998ecf8427e", }, { name: "hello world", s: "hello world", want: "5eb63bbbe01eeed093cb22bb8f5acdc3", }, } for _, tc := range tests { t.Run(tc.name, func(t testing.T) { got := calculateMd5(tc.s) if got != tc.want { t.Errorf("got %q, want %q", got, tc.want) } }) } }

func calculateMd5(s string) string { return fmt.Sprintf("%x", md5.Sum([]byte(s))) }


The Primary polluters are still China and USA. India is a far 3rd and emits 50% less CO2 than the USA. https://www.statista.com/statistics/271748/the-largest-emitt...


https://www.euronews.com/green/2021/06/22/ranked-the-top-10-...

India can be #1 in most plastic dumped into the oceans. We're all #1 in our own special ways :p


I’m not sure what those figures are for. They list India with 126.5 million kg of plastic “dumped”, yet the Phillipines is #1 with nearly 3x that amount of plastic waste going down its rivers into to oceans: 360 million kg (3.6 × 10^5 Metric tonnes) of plastic waste according to https://www.science.org/doi/10.1126/sciadv.aaz5803


In other news, its obvious which region has trash problems


They managed to do it all separately in separate experiments. This is the first time both stability & temperature were achieved simultaneously.


Oh you are right, important detail indeed


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: