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
ARG GOLANG=1.13.8-buster | |
FROM golang:${GOLANG} as builder | |
RUN apt-get update && apt-get install -qy build-essential software-properties-common gcc make sudo | |
ENV CGO_ENABLED=1 GOOS=linux GOARCH=arm64 | |
RUN go get -u -v google.golang.org/grpc && \ | |
git clone --depth 1 --branch v20.07.2 https://www.github.com/dgraph-io/dgraph/ && \ | |
cd dgraph && \ | |
make dgraph |
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
#!/bin/bash | |
bash <(curl https://get.docker.com) | |
cat <<EOF | sudo tee /etc/docker/daemon.json | |
{ | |
"exec-opts": ["native.cgroupdriver=systemd"], | |
"log-driver": "json-file", | |
"log-opts": { | |
"max-size": "100m" | |
}, | |
"storage-driver": "overlay2" |
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
/bootstrap/compiled.php | |
/vendor | |
/app/config | |
/conf | |
/app/storage | |
composer.phar | |
composer.lock | |
.DS_Store |
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
CREATE TABLE customer40 ( cust_id int AUTO_INCREMENT PRIMARY KEY,cust_name varchar(100)) | |
CREATE TABLE item40 ( item_id int AUTO_INCREMENT PRIMARY KEY,item_name varchar(200),price int NOT NULL) | |
CREATE TABLE sale40 ( bill_no int AUTO_INCREMENT PRIMARY KEY,bill_date date NOT NULL,cust_id int NOT NULL,qty_sold int NOT NULL) | |
INSERT INTO customer40 VALUES ('11','Sameer') | |
INSERT INTO item40 VALUES ('101','Bat','100') | |
INSERT INTO sale40 VALUES ('9001','2012-12-15','7','120','12') | |
INSERT INTO customer40 VALUES ('12','Raghuveer') | |
INSERT INTO item40 VALUES ('102','Keyboard','250') | |
INSERT INTO sale40 VALUES ('9002','2012-3-6','3','115','3') | |
INSERT INTO customer40 VALUES ('13','Ashok') |
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
int main() | |
{ | |
char m[100],g[20],t[100],z[100]; | |
int i,start=0,end,fl,gl,j,rl,a,b,k; | |
printf("Enter the string of bits"); | |
scanf("%s",&m); | |
printf("Enter the generator"); | |
scanf("%s",&g); | |
fl=strlen(m); | |
gl=strlen(g); |
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
ALTER TABLE student40 ADD class varchar(20); | |
UPDATE student40 SET class ='M.Tech CSE'; | |
CREATE TABLE lab40(mach_no int primary key,lab_no int,descript varchar(100)); | |
CREATE TABLE allotment40(stud_no int ,mach_no int,dayofweek varchar(20)); | |
INSERT INTO class40 VALUES ('M.Tech CSE','PG Course'); | |
INSERT INTO class40 VALUES ('CSIT',' CSE + IT'); | |
INSERT INTO class40 VALUES ('MECH','Mechanical'); | |
INSERT INTO class40 VALUES ('CSE','Computer Science'); | |
INSERT INTO class40 VALUES ('ECE','Electronics And Communications'); | |
INSERT INTO class40 VALUES ('EEE','Electronics And Electrical'); |
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
INSERT INTO student40 VALUES (1,'Ramu'); | |
INSERT INTO student40 VALUES (2,'Raja'); | |
INSERT INTO student40 VALUES (3,'Vignesh'); | |
INSERT INTO student40 VALUES (4,'Sairam'); | |
INSERT INTO student40 VALUES (5,'Kishore'); | |
INSERT INTO student40 VALUES (6,'Mohan'); | |
INSERT INTO student40 VALUES (7,'Naveen'); | |
INSERT INTO student40 VALUES (8,'Yashwanth'); | |
INSERT INTO student40 VALUES (9,'Pavan'); | |
INSERT INTO student40 VALUES (10,'Chandu'); |
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<stdio.h> | |
void printMaxActivities(int s[], int f[], int n) | |
{ | |
int i, j; | |
printf ("Following activities are selected \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
#include<stdio.h> | |
void printMaxActivities(int s[], int f[], int n) | |
{ | |
int i, j; | |
printf ("Following activities are selected \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
#include <stdio.h> | |
#include <stdlib.h> | |
// This constant can be avoided by explicitly calculating height of Huffman Tree | |
#define MAX_TREE_HT 100 | |
// A Huffman tree node | |
struct MinHeapNode | |
{ | |
char data; // One of the input characters |
NewerOlder