sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminator
Terminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").
#include <bits/stdc++.h> | |
using namespace std; | |
#define fastio ios::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); | |
template<typename A, typename B> ostream& operator<<(ostream &os, const pair<A, B> &p) { return os << '(' << p.first << ", " << p.second << ')'; } | |
template<typename T_container, typename T = typename enable_if<!is_same<T_container, string>::value, typename T_container::value_type>::type> ostream& operator<<(ostream &os, const T_container &v) { os << '{'; string sep; for (const T &x : v) os << sep << x, sep = ", "; return os << '}'; } | |
void dbg_out() { cerr << endl; } | |
template<typename Head, typename... Tail> void dbg_out(Head H, Tail... T) { cerr << ' ' << H; dbg_out(T...); } |
#!/usr/bin/env sh | |
sudo apt-get update -y && \ | |
sudo apt-get upgrade -y && \ | |
sudo apt-get dist-upgrade -y && \ | |
sudo apt-get install build-essential software-properties-common -y && \ | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \ | |
sudo apt-get update -y && \ | |
sudo apt-get install gcc-9 g++-9 -y && \ | |
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 60 --slave /usr/bin/g++ g++ /usr/bin/g++-9 && \ |
@Retention(RetentionPolicy.RUNTIME) | |
@Target(ElementType.METHOD) | |
public @interface Key { | |
String key(); | |
} | |
public interface Pojo { | |
@Key(key = "a") | |
String getKey(); | |
} |
copyq paste | |
copyq clipboard | |
copyq clipboard > tmp | |
pwd | copyq copy - | |
pwd | copyq add - | |
sudo lsof -n -i :27017 | grep LISTEN | |
scp -r specs/* jenkins-master:/home/ec2-user/BTFYT-1688/ | |
getBranchName() { | |
git branch | grep \* | cut -d ' ' -f2 | |
} |
public class Solution { | |
public int search(int[] nums, int target) { | |
int left = 0, right = nums.length - 1; | |
while (left <= right) { | |
int mid = left + (right - left) / 2; | |
if (nums[mid] == target) { | |
return mid; | |
} | |
if (nums[left] <= nums[mid]) { |
class Solution { | |
private List<String> result = new ArrayList<>(); | |
private List<ArrayList<Integer>> last ; | |
private String s; | |
private void dfs(int endIndex, String part) { | |
if (endIndex <= 0) { | |
result.add(part); | |
return; | |
} | |
String nextPart; |
SearchBar | |
AdBlock | |
Vimium | |
Quick Tabs | |
Tampermonkey | |
Flycut | |
Spectacle |
public class Solution { | |
public boolean isMatch(String s, String p) { | |
boolean[][] dp = new boolean[s.length() + 1][p.length() + 1]; | |
dp[0][0] = true; | |
for (int j = 1; j < p.length(); j++) { | |
if (p.charAt(j) != '*') { | |
continue; | |
} | |
dp[0][j + 1] = dp[0][j - 1]; | |
} |