Skip to content

Instantly share code, notes, and snippets.

View andyvauliln's full-sized avatar
💭
Looking for Job

Andrei Vaulin andyvauliln

💭
Looking for Job
View GitHub Profile
@andyvauliln
andyvauliln / nexus_prisma_cheatsheet.md
Last active July 23, 2022 19:58 — forked from amit08255/nexus_prisma_cheatsheet.md
Nexus + Prisma CheatSheet

Nexus + Prisma CheatSheet

Creating model in Prisma

First create generator and datasource entry in your .prisma file like below:

generator client {
  provider = "prisma-client-js"
}
@andyvauliln
andyvauliln / mongodb_cheat_sheet.md
Last active July 23, 2022 19:22
Mongo DB Cheat Sheet

MongoDB Cheat Sheet2

Show All Databases

show dbs

Show Current Database

@andyvauliln
andyvauliln / DepositsV1.sol
Created July 20, 2022 11:28 — forked from patitonar/DepositsV1.sol
Deposit example in solidity. Get contract balance, anyone can deposit, anyone can withdraw all the balance
pragma solidity 0.5.11;
contract Deposits {
event Deposited(address indexed payee, uint256 weiAmount);
event Withdrawn(address indexed payee, uint256 weiAmount);
function deposit() public payable {
emit Deposited(msg.sender, msg.value);
}
{
"git.autofetch": true,
"editor.minimap.enabled": false,
"gitlens.advanced.messages": {
"suppressShowKeyBindingsNotice": true
},
"python.jediEnabled": false,
"jupyter.appendResults": true,
"python.formatting.autopep8Args": [],
"python.formatting.autopep8Path": "autopep8",