Skip to content

Instantly share code, notes, and snippets.

View nicksinch's full-sized avatar

Nick Kirov nicksinch

View GitHub Profile
pragma solidity ^0.8.0;
import "./2_Owner.sol";
contract Library is Owner { // Owner contract provided by Remix IDE by default
event bookAdded(uint id, uint count);
event borrowedBook(uint id);
@nicksinch
nicksinch / README.md
Created May 4, 2020 16:49
Network Programming Homework #1.

За да стартираме проекта, трябва да имаме dnspython модул инсталиран, за целта пишем в конзолата : pip install dnspython

Проекта работи като приема произволен брой аргументи ( IP адреси , >= 1 ),

Примерно извикване на скрипта:

python .\blacklist-check.py 77.85.140.106 75.86.141.126

Примерен изход :

#include "Logo.h"
#include <string>
#include <iostream>
Logo::Logo(unsigned n):num(n),numDashes(n),numStars(n)
{
char dash = '-';
char star = '*';
unsigned totalLines = num + 1; //Total lines of the logo are always n + 1
/*
We see that every line of the first part of the logo
#include <iostream>
using namespace std;
void InsertionSort(unsigned* arr, int n)
{
int i, j,key;
for (i = 1; i < n; i++)
{
j = i - 1;
key = arr[i];
while (j >= 0 && key > arr[j])
#include <iostream>
using namespace std;
void InsertionSort(unsigned* arr, int n)
{
int i, j, key;
for (i = 1; i < n; i++)
{
j = i - 1;
key = arr[i];
while (j >= 0 && key > arr[j])