Facemash
Website from 'The Social Network' in comparing farm animals instead of people.
Install / Use
/learn @Vincexodus/FacemashREADME
Facemash
<img src="/images/facemash.gif"/>Emulated the website from The Social Network to compare between two individuals, but with a twist — using actual farm animals instead of human profiles.
Chess Player Ranking Algorithm (Elo Rating)
Given - $Base Rating: 1000$, $K: 32$
Probability of winning for Player A (left), $P_A$
$$P_A = \frac{1}{1 + 10^{(R_B - R_A)/400}}$$
Probability of winning for Player B (right), $P_B$
$$P_B = \frac{1}{1 + 10^{(R_A - R_B)/400}}$$
When Player A wins (left chosen):
$$\text{leftRating} = \text{leftRating} + K \cdot (1 - P_A)$$
$$\text{rightRating} = \text{rightRating} + K \cdot (0 - P_B)$$
When Player B wins (right chosen):
$$\text{leftRating} = \text{leftRating} + K \cdot (0 - P_A)$$
$$\text{rightRating} = \text{rightRating} + K \cdot (1 - P_B)$$
How to Use
- Click on either side to increase image rating.
- Image ranking based on elo rating can be viewed by navigating to
Rankings. - Reopen page/tab to reset all image rating, refresh would not work.
Development
- Clone the repo by running
git clone https://github.com/Vincexodus/Facemash.git. - Install Live Server | VSCode Extension and enable it.
- On the bottom right of VSCode editor, click
Go Live. - The site should be running on localhost.
Contributing
- Fork this repo.
- Create your feature branch (
git checkout -b feature/fooBar). - Commit your changes (
git commit -am 'Add some fooBar'). - Push to the branch (
git push origin feature/fooBar). - Create a new Pull Request.
References
- The Social Network (2010). IMDB. Available at https://www.imdb.com/title/tt1285016
- Elo Rating Algorithm. GeeksforGeeks. Available at https://www.geeksforgeeks.org/elo-rating-algorithm/
Related Skills
node-connect
347.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.7kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
