yi-jiayu / blog Goto Github PK
View Code? Open in Web Editor NEWMy blog
Home Page: https://blog.jiayu.co
My blog
Home Page: https://blog.jiayu.co
The situation Have you ever created a new Git repository for work on a personal machine or vice-versa, and accidentally made your first commit with the global Git email? Something like:
$ git config --global user.email [email protected] $ git init Initialized empty Git repository in /Users/yijiayu/work/project/.
https://blog.jiayu.co/2019/02/conditional-git-configuration/
I recently attended GopherCon Singapore 2019, and one of the talks was about optimising Go code, by Daniel Martí. I managed to find a set of his slides from a previous conference that he gave the same talk at:
Optimizing Go code without a blindfold Daniel Martí at dotGo 2019 https://www.dotconferences.com/2019/03/daniel-marti-optimizing-go-code-without-a-blindfold My main takeaway from his talk the usage of benchstat for computing statistics from multiple runs of go test -bench, which helps to remove noise and identify statistically significant results:
On Reddit or other forums, you'll often come across spoiler tags which may look a bit like this. They're used to discuss spoilers while protecting other readers who do not wish to be spoiled by requiring them to actively interact with the spoiler tag to view its contents.
Lately, I've been playing through some of the older Pokémon games (Pokémon Platinum and Pokémon White), and built a Telegram bot for quickly looking up in-game things like Pokémon weaknesses or ability effects.
Send Rotom Pokédex bot (@rotom_pokedex_bot on Telegram) a Pokémon name or number to get a quick summary about it:
Turtwig, the Tiny Leaf Pokémon
The inline buttons let you navigate to more detailed information:
I recently built Mahjong Party, an online multiplayer Singaporean mahjong game.
Here's a screenshot of a game in progress:
If you're interested, you can head over to https://mahjong.party/ and give the tutorial a try, or jump into a game immediately with some bots!
The rest of this post will just be some thoughts I had while working on this project.
Miscellaneous thoughts This wasn't my first attempt at building a multiplayer game online, I previously tried creating a bughouse xiangqi game, but gave up after running into challenges around UI design and backend state management.
My company is big on agile, so we're often encouraged to work in pairs.
One challenge with pair programming on personal machines is that not everyone might be equally comfortable with the configuration. Ignoring the fact that as a Dvorak keyboard layout user I'm immediately awkward on a teammate's machine, a setting I use on my own machine that my pairs are often not used to is the Hot Corners.
https://blog.jiayu.co/2018/12/quickly-configuring-hot-corners-on-macos/
Recently, I was going through posts and adding appropriate tags, but had some trouble finding the actual file to edit to change a specific post, because the post filenames did not match their titles or URLs.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.