This file contains 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
version: '3.7' | |
services: | |
elasticsearch: | |
image: elasticsearch:7.9.2 | |
ports: | |
- '9200:9200' | |
environment: | |
- discovery.type=single-node | |
ulimits: |
This file contains 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
version: '3.7' | |
services: | |
elasticsearch: | |
image: elasticsearch:7.9.2 | |
ports: | |
- '9200:9200' | |
environment: | |
- discovery.type=single-node | |
ulimits: |
This file contains 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
# Update packages list: | |
sudo apt update | |
# Prerequsites: | |
sudo apt install apt-transport-https ca-certificates curl software-properties-common | |
# Add the GPG key: | |
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
# Now add the docker reop |
This file contains 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
// Time complexity : O(ElogV) | |
#include <bits/stdc++.h> | |
using namespace std; | |
typedef vector<int> vi; | |
typedef pair<int,int> pii; | |
typedef vector< pii > vii; | |
#define INF 0x3f3f3f3f | |
vii *G; // Graph |
This file contains 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 <ctime> | |
#include <cstdio> | |
#include <cstdlib> | |
#define MIN(a, b) (((a) < (b)) ? (a) : (b)) | |
#define INF 1000000 | |
using namespace std; |
This file contains 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
$.each($('.organization-card__container'), function() { | |
console.log($(this).attr('aria-label').substring(17)); | |
$(this).find('.organization-card')[0].click(); | |
console.log($('.organization-card--detail').find('.organization-card__precis').text()); | |
var lis = $('.organization__tag'); olist = []; | |
for (i = 0; i!=lis.length; i++) { olist.push(lis[i].innerHTML); } | |
console.log(olist.join()); | |
console.log('\n') | |
}); |
This file contains 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 sys | |
s = "SELECT * FROM course_strucure WHERE program_id = :program_id AND year_of_joining = :year_of_joining AND sem_code_of_joining = :sem_code_of_joining" | |
s = sys.argv[1] | |
print ( "$sql = \"" + s + "\";" ) | |
s = s.split() | |
s = [x for x in s if x[0]==':'] |