Posts

创意诗

How To Reject a Confession of Love Euphemistically

How to Solve Gamma Function

100 Things You Can Do To Improve Your English

Canvas Clock
螃蟹在剥我的壳，笔记本在写我。
漫天的我落在枫叶上雪花上。
而你在想我。
Read more
Version 1 Thank you so much for your interest in my boyfriend intern 2018 position. Unfortunately, I have decided not to move forward with you as a candidate at this time. I received an unprecedented amount of confessions, and we decide to continue the process with other candidates with a stronger match. This is never an easy decision. I really do appreciate your interest and hope that you’ll keep me in mind for the future. I will keep your love letter in file, and, however, look forward to reaching out to you with right positions. In the meantime, we...
Read more
I. Theoretical Analysis Gamma Function is defined in the following, Using integration by parts, one sees that: From the above calculation，and note that where . If is a positive integer, one can obtain: Appendix: Integral calculus（） \int_{\infty}^{+\infty}\mathrm{e}^{(ax^2+bx)}\mathrm{d}x = \int_{\infty}^{+\infty}\mathrm{e}^{y^2 + (b^2/4a)}\frac{1}{\sqrt{a}}\mathrm{d}y...
Read more
Don’t be afraid to make mistakes. Be confident. People can only correct your mistakes when they hear you make them. Surround yourself in English. Put yourself in an all English speaking environment where you can learn passively. The best way to learn is through speaking. Practise every day. Make yourself a study plan. Decide how much time a week you are going to spend studying and stick to it. Establish a routine. Tell your family and friends about your study plan. Get them to push you to study and also don’t let...
Read more
Build an analog clock using HTML canvas. var canvas = document.getElementById("canvas"); var ctx = canvas.getContext("2d"); var radius = canvas.height / 2; ctx.translate(radius, radius); radius = radius * 0.90 setInterval(drawClock, 1000); function drawClock() { drawFace(ctx, radius); drawNumbers(ctx, radius); drawTime(ctx, radius); } function drawFace(ctx, radius) { var grad; ctx.beginPath(); ctx.arc(0, 0, radius, 0, 2*Math.PI); ctx.fillStyle = 'white'; ctx.fill(); grad = ctx.createRadialGradient(0,0,radius*0.95, 0,0,radius*1.05); grad.addColorStop(0, '#00CC99'); grad.addColorStop(0.5, 'white'); grad.addColorStop(1, '#00CC99'); ctx.strokeStyle = grad; ctx.lineWidth...
Read more