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
<template> | |
<v-container fluid> | |
<v-layout column> | |
<v-card> | |
<v-card-text> | |
<v-flex class="mb-4"> | |
<v-avatar size="96" class="mr-4"> | |
<img :src="'/avatars/avatar_' + (form.avatar.toLowerCase()) + '.png'" alt="Avatar"> | |
</v-avatar> | |
<v-btn @click="openAvatarPicker">Change Avatar</v-btn> |
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
<template> | |
<v-dialog :fullscreen="$vuetify.breakpoint.xs" width="500" transition="dialog-bottom-transition" v-model="show"> | |
<v-card> | |
<v-toolbar dark color="primary"> | |
<v-btn icon dark @click="show = false"> | |
<v-icon>close</v-icon> | |
</v-btn> | |
<v-toolbar-title>Select an Avatar</v-toolbar-title> | |
<v-spacer></v-spacer> | |
</v-toolbar> |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
It is an simple implementation of simple client server chat system where once client are connected to server, | |
then they can communicate with each other. | |
The client first needs to connect with the server and can then issue two commands - | |
1. GET - This command fetches the list of client's that are currently connected to server. | |
2. SEND (client number) (message) - SEND followed by client number which can be be used to send the meassage | |
to particular to that particular client number. | |
(please issue the complete send command in one go). | |
To run these program first run ChatServer.c and then run multiple instatnces of ChatServer.c . |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<link href='https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons' rel="stylesheet"> | |
<link href="https://unpkg.com/vuetify/dist/vuetify.min.css" rel="stylesheet"> | |
</head> | |
<style> | |
#app { |
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 <cstdio> | |
#include <iostream> | |
using std::string; | |
static struct IO { | |
char tmp[1 << 10]; | |
// fast input routines | |
char cur; |