Skip to content

Instantly share code, notes, and snippets.

View thomdabrowski's full-sized avatar
🦀

Tomek Dabrowski thomdabrowski

🦀
View GitHub Profile
@thomdabrowski
thomdabrowski / cqlsh_intro.cql
Created April 27, 2020 15:55 — forked from jeffreyscarpenter/cqlsh_intro.cql
Introduction to CQL / cqlsh
#
# cqlsh_intro.cql
#
# Copyright (C) 2017 Jeff Carpenter
# Execute the commands in this file for a short guided tour of the CQL Shell (cqlsh)
#
# For more description, see Cassandra, The Definitive Guide 2nd Ed., Chapter 3: Installing
# http://shop.oreilly.com/product/0636920043041.do
#
class BookStore {
private final Map<UUID, Book> inventory;
BookStore() {
this.inventory = new ConcurrentHashMap<>();
}
Optional<Book> getBook(final UUID isbn) {
return Optional.ofNullable(inventory.get(isbn));
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int number1 = rightNumber(scanner);
int number2 = rightNumber(scanner);
System.out.println("Liczby " + number1 + " " + number2);
}
static int rightNumber(Scanner scanner) {
int number;

Keybase proof

I hereby claim:

  • I am thomdabrowski on github.
  • I am thomdabrowski (https://keybase.io/thomdabrowski) on keybase.
  • I have a public key ASDi4b0sRn4_AnViXRzuL5tPnHjMn63_D7Ol9C2K_j0eQgo

To claim this, I am signing this object:

<li><a data-toggle="collapse" href="#quest1" aria-expanded="false" aria-controls="guest1">Jak dodać atrakcję, region lub wydarzenie?</a></li>
<div class="collapse" id="quest1">
Aby dodać atrakcję, region lub wydarzenie użytkownik musi założyć nowe konto na naszej stronie.
Po dodaniu nowej atrakcji musi ona zostać zaakceptowana przez administratora.
</div>
<li><a data-toggle="collapse" href="#quest2" aria-expanded="false" aria-controls="guest2">Jak założyć nowe konto użytkownika?</a></li>
<div class="collapse" id="quest2">
Rejestracja nowego konta możliwa jest po kliknięciu w zakładkę Zarejestruj się. Na stronie rejestracji należy podać prawidłowe dane
#include <errno.h>
#include <stdio.h>
#include <signal.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>