Lady luck is smilin'.
No gun, no cigar. Just a fake cowboy...
For those of you love simplicity and complexity that Chrome provides, and also running a Hackintosh with Nvidia drivers, you might notice it’s super lagging when browsing or even just open your Chrome.
Note: The version I’m running: Chrome 64.0.3282.140, MacOs 10.13.3
I’m not if it’s Nvidia’s fault or Apple’s, but it seems like they have a terrible partnership. So, unless you try to buy a AMD GPU, I suppose you would like to disable you hardware acceleration in Google Chrome. I feel like my Chrome has revived after all the suffer.
Recently, I found Hugo, which is another static site generator, comes with some useful shortcodes that allows you embed html figure, instagram, speakerdeck, youtube, twitter and so on in your post. That’s a great feature for some social guys.
And of course, we can do this in hexo with some plugins.
Thanks god. I don’t even play Instagram, twitter. And my youtube channel is just full with school stuff. What a boring man am I.😂😂😂 So I just put other people’s nice one here as examples.
These days, I was working on a React Native project. In the meanwhile, I found it’s kind of hard to catch up the modern syntax of Javascript, so as for imenu (a built in project structure menu bar in Emacs).
Fortunately, there are so many people love Emacs and contribute to it. Thanks for Chen bin’s great post. I just put down more imenu generic expressions for modern Javascript like React, Vue. This helps me navigate and go through projects.
Using space key as the leader is a very popular way of editing, navigation and commanding. There is never an easy way to get used to new shortcuts, but trust me, you would definitely like it once you use it.
Think about how you invoke commands in VSCode before. When you want to call the command-palette
,
you need to put your left hand’s two fingers on Ctrl + Shift key or Command +
Shift key and press p. And note that it’s a key chord combination when you actually
press these keys.
This looks so stupid when you compare it with just Space Space in Vim’s normal or visual mode. And by saying Space Space, it’s a sticky key bindings which means you just type space key twice in sequence. And you can just set your hands as the default typing position shown in this picture.
This post contains solutions for other game theory problems.
Again, I don’t have much time putting down a lot of details here…
https://leetcode.com/problems/flip-game-ii/description/
class Solution(object): |
This is a post for game theory problems. All solutions are written in Python.
I didn’t have to put a lot of details here. Comment below if you have any issue.
Keep in mind: the current state is generated by its sub states (further states).
Problem: http://www.lintcode.com/en/problem/coins-in-a-line/
This problem start taking coins from the right side.
Solution:
class Solution: |
Note: The solution is translated from the Segmentfault post over here. Thanks for liuqi627.
Over here
Long URL to short URL and reversed.
Q: Explain the differences between TreeMap, HashMap, and LinkedHashMap. Provide an example of when each one would be best.
A: The most important distinction between these classes is the time guarantees and the ordering of the keys.
Some basic knowledge of Java in the book[1]. Well, I pick the title “you don’t know”. Precisely, it’s something I don’t know while you may already knew years ago. But it just sounds so stupid to named after “Java: I don’t know”…
Your interviewer may be equally—or more—impressed if you can derive the answer than if you automatically knew it.
public double computeArea(Circle c) {...} |
Overriding, however, occurs when a method shares the same name and function signature as another method in its super class.