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
sahilrajput03 / output.bash
Created October 15, 2024 20:54
failed to install `evals`
apple@apples-MacBook-Pro evals % pip install evals
Defaulting to user installation because normal site-packages is not writeable
Collecting evals
Using cached evals-3.0.1.post1-py3-none-any.whl.metadata (7.9 kB)
Collecting aiolimiter (from evals)
Using cached aiolimiter-1.1.0-py3-none-any.whl.metadata (4.5 kB)
Collecting anthropic (from evals)
Using cached anthropic-0.36.1-py3-none-any.whl.metadata (21 kB)
Collecting backoff (from evals)
Using cached backoff-2.2.1-py3-none-any.whl.metadata (14 kB)
@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.

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": "[email protected]",
"payer_id": "VZXRX2AG4RY6G",
"name": {
"given_name": "BarBuyer",
"surname": "Jones"
},
"shipping_address": {
"name": {