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> | |
| using namespace std; | |
| int main(){ | |
| int decN, binN=0, i=1; | |
| cin >> decN; | |
| while(decN != 0){ | |
| binN += (decN % 2) * i; | |
| decN /= 2; | |
| i *= 10; |
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> | |
| using namespace std; | |
| int main() | |
| { | |
| long long int k, n; | |
| while(cin >> k && k != 0){ | |
| for(int i = 9; i >= 0; i--){ | |
| if((10*k-i)%9 == 0){ //先判斷是否整除 而非先直接除再判斷是否為整數 | |
| n = (10*k-i)/9.0; |
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> | |
| using namespace std; | |
| int three_n(int); | |
| int main() | |
| { | |
| int a, b; | |
| while(cin >> a >> b) | |
| { | |
| int temp, aa, bb; |
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: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: my-app | |
| spec: | |
| selector: | |
| matchLabels: | |
| app: my-app | |
| template: | |
| metadata: |
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
| { | |
| "auths": { | |
| "registry.gitlab.com": { | |
| "auth": "base64 encode `username:password`" | |
| } | |
| }, | |
| "credsStore": "desktop" | |
| } |
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: Secret | |
| metadata: | |
| name: regcred | |
| type: kubernetes.io/dockerconfigjson | |
| data: | |
| .dockerconfigjson: <config.json in Base64 encoding> |
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
| --- | |
| // config.json | |
| { | |
| "auths": { | |
| "registry.gitlab.com": { | |
| "auth": "YWRtaW46c2VjcmV0VG9rZW4K" | |
| } | |
| } | |
| } | |
| --- |
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
| #!/bin/bash | |
| YELLOW='\033[1;33m' | |
| NC='\033[0m' | |
| BAZEL=0.27.0 | |
| set -e | |
| cd ~ | |
| sudo apt update -y |
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 <stdio.h> | |
| #include <msp430.h> | |
| void ClearFRAM(); | |
| void GetLastProcessingCoordinate(); | |
| void MultiplyMatrix(); | |
| void WriteData(unsigned long, unsigned long, unsigned long); | |
| void WriteLog(unsigned long, unsigned long); | |
| unsigned long *log_write_ptr; |