Redirection: stdout
to file
command > file.txt
Redirection: stderr
to file
command 2> file.txt
#!/bin/bash | |
baseurl=https://cdn-api.co-vin.in/api/v2/appointment/sessions/calendarByDistrict | |
did=571 | |
rm -rf .response.ndjson report.html | |
for day in {0..30}; do | |
cdate=$(date -d "+$day day" +%d-%m-%Y) | |
url="$baseurl?district_id=$did&date=$cdate" |
class Node: | |
def __init__(self, value=None, next=None): | |
self.value = value | |
self.next = next | |
#print override | |
def __repr__(self): | |
return str(self.value) | |
class LinkedList: |
# include <stdlib.h> | |
# include <stdio.h> | |
# include <mpi.h> | |
# include <time.h> | |
# define N 23 | |
void to_bin(int val, int bvec[]) | |
{ | |
int i; | |
for (i=0; i<N; i++) |
# Update the system | |
apt-get update | |
# Install software dependencies | |
apt-get install build-essential unzip cmake libgtk2.0-dev python-dev python-numpy python-gtk2 python-matplotlib libavcodec-dev libavformat-dev libswscale-dev libdc1394-22 libjpeg-dev libpng-dev libjasper-dev libtiff-dev libtbb-dev sqlite3 | |
# Install additional Perl packages | |
# Note: if this is your first time using CPAN on your system you may be asked some initial setup questions | |
perl -MCPAN -e 'install DBI' |
#include <stdio.h> | |
#include <string.h> | |
#define SIZE 100001 | |
void seive(int range[], int prime[], int *prime_size) | |
{ | |
long long int i, j; | |
range[0] = range[1] = 1; | |
for(i=2; i<SIZE; ++i) { | |
if(range[i] == 0) { |
#include <iostream> | |
#include <vector> | |
using namespace std; | |
void go(int offset, int k, vector<int> number, vector<int> temp, vector< vector<int> > &all) { | |
if (k == 0) { | |
all.push_back(temp); | |
return; | |
} |
BM8751 3 | |
CH8202 3 | |
CS8001 3 | |
CS8002 3 | |
CS8003 3 | |
CS8004 3 | |
CS8005 3 | |
CS8006 3 | |
CS8007 3 | |
CS8008 3 |