This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://joonro.github.io/blog/posts/powershell-customizations.html | |
Import-Module PSReadLine | |
# Oh-My-Posh https://github.com/pecigonzalo/Oh-My-Posh | |
Import-Module "Oh-My-Posh" -DisableNameChecking -NoClobber | |
Set-PSReadLineOption -HistoryNoDuplicates | |
Set-PSReadLineOption -HistorySearchCursorMovesToEnd | |
Set-PSReadLineOption -HistorySaveStyle SaveIncrementally | |
Set-PSReadLineOption -MaximumHistoryCount 4000 | |
# history substring search |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include <queue> | |
#include <unordered_map> | |
using namespace std; | |
// A Tree node | |
struct Node | |
{ | |
char ch; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
栈和局部变量操作 | |
将常量压入栈的指令 | |
aconst_null 将null对象引用压入栈 | |
iconst_m1 将int类型常量-1压入栈 | |
iconst_0 将int类型常量0压入栈 | |
iconst_1 将int类型常量1压入栈 | |
iconst_2 将int类型常量2压入栈 | |
iconst_3 将int类型常量3压入栈 | |
iconst_4 将int类型常量4压入栈 | |
iconst_5 将int类型常量5压入栈 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://askubuntu.com/questions/970988/two-finger-scrolling-not-working-for-ubuntu-17-10 | |
sudo modprobe -r psmouse | |
sudo modprobe psmouse |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.LinkedHashMap; | |
import java.util.Map; | |
public class LRUCache<K, V> extends LinkedHashMap<K, V> { | |
private int cacheSize; | |
public LRUCache(int cacheSize) { | |
super((int) Math.ceil(cacheSize / 0.75) + 1, 0.75f, true); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <cstdio> | |
#include <cstring> | |
#include <iostream> | |
#include <stdexcept> | |
using namespace std; | |
class Fraction { | |
int numerator; | |
int denominator; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shuf -i 1-100 | paste -sd "," - |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
emojify -l | shuf -n 1 | cut -d ' ' -f 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm -rf ~/.cache/ibus/libpinyin | |
ibus restart |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jt -t grade3 -fs 115 -tfs 11 -nfs 115 -cellw 88% -T -f ubuntu -ofs 115 |
NewerOlder