Skip to content

Instantly share code, notes, and snippets.

View sahilrajput03's full-sized avatar
Eating, Sleeping, Coding, Repeat.

Sahil Rajput sahilrajput03

Eating, Sleeping, Coding, Repeat.
View GitHub Profile
sahilrajput03 /
Created March 15, 2024 20:12 — forked from bast/
Jekyll installation on Arch Linux.
sudo pacman -S ruby ruby-rdoc gcc make
gem update --user-install
gem install jekyll --user-install
# finally add $HOME/.gem/ruby/2.7.0/bin to your PATH variable

import 'package:flutter/material.dart';

void main() { runApp(const MyApp()); }

class MyApp extends StatelessWidget { const MyApp({super.key});

// This widget is the root of your application.






// post hooks for inserMany<MovieDocument[]>('insertMany', async function (docs, next) {
console.log('docs POST =', docs);
if (Array.isArray(docs) && docs.length) {
const correctData = => {
console.log('singelDoc post before added =', JSON.stringify(singleDoc));
// If id AND name are present, then we can use them to generate the sort_name
if ( > 0 && {
"subscriber": {
"email_address": "",
"payer_id": "VZXRX2AG4RY6G",
"name": {
"given_name": "BarBuyer",
"surname": "Jones"
"shipping_address": {
"name": {

Upgradable contracts - UUPS (better than Transparent Proxy)

Source: Official Openzeppelin youtube channel

All resources related to Upgradability from Openzeppelin: Click here

Depending on where we put the upgradeTo() function we decide b/w two types of upgradable smart contracts.