Skip to content

Instantly share code, notes, and snippets.

View vitorizkiimanda's full-sized avatar
🎯
Focusing

Vito Rizki Imanda vitorizkiimanda

🎯
Focusing
View GitHub Profile
#include <bits/stdc++.h>
using namespace std;
int main() {
string input;
vector<char> result;
getline(cin,input);
if(input.length()==1){
#include <bits/stdc++.h>
using namespace std;
int main() {
string input1,input2;
vector<char> result;
cin>>input1>>input2;
#include <bits/stdc++.h>
using namespace std;
int main() {
int n,result=0;
string temp, quest;
vector<string> names;
cout << "How many names?"<<endl;
#include <bits/stdc++.h>
using namespace std;
int main() {
string input ;
int time[10000][10000], result=0;
int i=0,j=0;
while(getline(cin, input)){
#include <bits/stdc++.h>
using namespace std;
int main() {
string input1, input2;
float result=0;
getline(cin, input1);
getline(cin, input2);
#include <bits/stdc++.h>
using namespace std;
struct person {
string name;
int orig;
int dest;
};
bool acompare(person lhs, person rhs) { return lhs.orig < rhs.orig; }
@vitorizkiimanda
vitorizkiimanda / x11_forwarding_macos_docker.md
Created July 13, 2022 16:17 — forked from sorny/x11_forwarding_macos_docker.md
X11 forwarding with macOS and Docker

X11 forwarding on macOS and docker

A quick guide on how to setup X11 forwarding on macOS when using docker containers requiring a DISPLAY.

This guide was tested on:

  • macOS Catalina 10.15.4
  • docker desktop 2.2.0.5 (43884) - stable release
  • XQuartz 2.7.11 (xorg-server 1.18.4)

Step-By-Step Guide