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
class Solution { | |
int N, K; | |
public: | |
int dfs(int index, vector<int> &add, int k, vector<bool> &visited) { | |
if(index == N && k == K) { | |
for(auto &a : add) { | |
cout << a << " "; | |
} | |
cout << endl; | |
return 1; |
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
cat 50.log |grep "app_main.js:105" |awk -F ' ' '{print $5}' > plot1.csv | |
plot "plot1.csv" title "test" linetype 5 lc 3 w lines |
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
// inspired by https://algorithms.tutorialhorizon.com/disjoint-set-union-find-algorithm-union-by-rank-and-path-compression/ | |
class UnionFind { | |
private: | |
vector<int> parent; | |
vector<int> rank; //Union by rank | |
public: | |
int count; | |
UnionFind(int n) { |
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
pi@raspberrypi:~ $ ./start_grandma.sh | |
BLE: Starting BLE Receiver | |
BLE: [(1, 'Flags', '06'), (255, 'Manufacturer', '4c001005421cbc3ace')] | |
BLE: [(1, 'Flags', '1a'), (10, 'Tx Power', '0c'), (255, 'Manufacturer', '4c001006121afbd8fecb')] | |
BLE: [(3, 'Complete 16b Services', '0000fd6f-0000-1000-8000-00805f9b34fb'), (22, '16b Service Data', '6ffdbd6bb95c9b1b9c32469ee2cbd40c7f8cd197b517')] | |
BLE: [(1, 'Flags', '1a'), (10, 'Tx Power', '07'), (255, 'Manufacturer', '4c0010062d1ee2177aaf')] | |
BLE: [(1, 'Flags', '1a'), (10, 'Tx Power', '0c'), (255, 'Manufacturer', '4c001006001dc971d628')] | |
BLE: [(1, 'Flags', '1a'), (10, 'Tx Power', '06'), (255, 'Manufacturer', '4c0010072b1f264d31ea08')] | |
BLE: [(1, 'Flags', '06'), (255, 'Manufacturer', '4c001005441cf39728')] | |
BLE: [(1, 'Flags', '1a'), (3, 'Complete 16b Services', '0000fd6f-0000-1000-8000-00805f9b34fb'), (22, '16b Service Data', '6ffd34287308f8148f4c6b75fc4738e4c25733c848ca')] |
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
apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: dnsutils | |
namespace: default | |
spec: | |
containers: | |
- name: dnsutils | |
image: gcr.io/kubernetes-e2e-test-images/dnsutils:1.3 | |
command: |
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
apiVersion: kubelet.config.k8s.io/v1beta1 | |
kind: KubeletConfiguration | |
cgroupDriver: systemd | |
--- | |
apiVersion: kubeadm.k8s.io/v1beta2 | |
kind: ClusterConfiguration | |
networking: | |
dnsDomain: k8s.bdw.shiyang.wang | |
serviceSubnet: 100.95.0.0/16 | |
podSubnet: 100.96.0.0/16 |
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
shiywang@ubuntu-1:~$ sudo systemctl status kubelet | |
● kubelet.service - kubelet: The Kubernetes Node Agent | |
Loaded: loaded (/lib/systemd/system/kubelet.service; enabled; vendor preset: enabled) | |
Drop-In: /etc/systemd/system/kubelet.service.d | |
└─10-kubeadm.conf | |
Active: active (running) since Thu 2021-04-01 01:37:08 UTC; 3min 8s ago | |
Docs: https://kubernetes.io/docs/home/ | |
Main PID: 9209 (kubelet) | |
Tasks: 15 (limit: 2280) | |
Memory: 33.8M |
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
shiywang@pve1:~$ sudo fdisk -l | |
Disk /dev/sda: 465.8 GiB, 500107862016 bytes, 976773168 sectors | |
Disk model: CT500MX500SSD1 | |
Units: sectors of 1 * 512 = 512 bytes | |
Sector size (logical/physical): 512 bytes / 4096 bytes | |
I/O size (minimum/optimal): 4096 bytes / 4096 bytes | |
Disklabel type: gpt | |
Disk identifier: A2B13CFB-F962-4D9B-AC6E-4CF82D7B2017 | |
Device Start End Sectors Size Type |
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
population,profit | |
6.1101,17.592 | |
5.5277,9.1302 | |
8.5186,13.662 | |
7.0032,11.854 | |
5.8598,6.8233 | |
8.3829,11.886 | |
7.4764,4.3483 | |
8.5781,12 | |
6.4862,6.5987 |
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
[dev@33036d511566 elliott]$ cd /workspaces/elliott ; env /usr/bin/python3 /home/dev/.vscode-server/extensions/ms-python.python-2020.7.94776/pythonFiles/lib/python/debugpy/launcher 32839 -- /workspaces/elliott/elliott -g openshift-4.5 find-builds -k image --allow-attached --payload | |
2020-07-27 10:54:44,615 INFO Data clone directory already exists, checking commit sha | |
2020-07-27 10:54:47,380 INFO https://github.com/openshift/ocp-build-data.git is already cloned and latest | |
2020-07-27 10:54:47,938 INFO Using branch from group.yml: rhaos-4.5-rhel-7 | |
Generating list of images: Hold on a moment, fetching Brew builds for 160 components with tags rhaos-4.5-rhel-7-candidate, rhaos-4.5-rhel-8-candidate... | |
[************************************************************************************************************************************************************************************************************************] | |
Fetching builds from Errata: Hold on a moment, fetching buildinfos from Errata Tool... | |
[************* |
NewerOlder