Skip to content

Instantly share code, notes, and snippets.

View sahilrajput03's full-sized avatar
💭
I'm happy these days.

Sahil Rajput sahilrajput03

💭
I'm happy these days.
View GitHub Profile
@sahilrajput03
sahilrajput03 / jekyll-installation-arch.sh
Created March 15, 2024 20:12 — forked from bast/jekyll-installation-arch.sh
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.

@sahilrajput03
sahilrajput03 / Rest api's.md
Last active August 20, 2023 19:26
A good list of rest api's.

cool

app.js

image

chat_ctrl.js

image

// post hooks for inserMany
schema.post<MovieDocument[]>('insertMany', async function (docs, next) {
console.log('docs POST =', docs);
if (Array.isArray(docs) && docs.length) {
const correctData = docs.map((singleDoc) => {
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 (singleDoc.id?.length > 0 && singleDoc.name) {
{
"subscriber": {
"email_address": "barbuyer@gmail.com",
"payer_id": "VZXRX2AG4RY6G",
"name": {
"given_name": "BarBuyer",
"surname": "Jones"
},
"shipping_address": {
"name": {