Skip to content

Instantly share code, notes, and snippets.

View MehdiKhoshnevisz's full-sized avatar
🪖

Mehdi Khoshnevis MehdiKhoshnevisz

🪖
View GitHub Profile
@MehdiKhoshnevisz
MehdiKhoshnevisz / vModelBinding.js
Created September 3, 2022 08:16
This is a vue mixin that is used to reduce boilerplate.
/*
This mixin is used to reduce boilerplate
Vue v-model is actual shortcut for v-bind="value" and v-on:input
Add this mixin in your component and add <v-model='model'> on your input component
*/
export default {
props: {
value: [String, Object, Boolean, Array, Number],
},
@MehdiKhoshnevisz
MehdiKhoshnevisz / install_grpc.md
Created December 21, 2022 21:53
Install gRPC++ on Ubuntu20.04

Solved step

# install dependencies,it's easy here
sudo apt install -y cmake
# install basic tools
sudo apt install -y build-essential autoconf libtool pkg-config

# clone from github and install it,I installed v1.34.1 here
git clone --recurse-submodules -b v1.34.1 https://github.com/grpc/grpc
cd grpc
{
"bio": {
"firstName": "John",
"lastName": "Doe",
"jobTitle": "Senior Software Engineer",
"about": "Lorem ipsum dolor sit amet consectetur adipisicing elit. Neque voluptate repellat ipsam repudiandae explicabo ratione aliquid, quo maxime ab unde distinctio nihil quod iure at ad, tempora odit mollitia. Amet repellat ipsam repudiandae explicabo ratione aliquid, quo maxime ab unde distinctio nihil quod iure at ad, tempora odit mollitia. Amet.",
"avatar": "https://visittomalta.com/wp-content/uploads/2020/06/avatar-4.jpg"
},
"contact": {