This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import argparse | |
import json | |
import re | |
import shutil | |
import zipfile | |
from pathlib import Path | |
import requests |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"name":"Transform Chain","description":"Transform Your Business with Smart Dialogues.","data":{"nodes":[{"width":384,"height":539,"id":"CustomComponent-C8eNm","type":"genericNode","position":{"x":361.2179541318329,"y":14.576073295690833},"data":{"type":"CustomComponent","node":{"template":{"code":{"dynamic":true,"required":true,"placeholder":"","show":true,"multiline":true,"value":"from langflow import CustomComponent\nfrom langflow.field_typing import Chain\nfrom langchain.chains import TransformChain\n\nclass ChainTransformer(CustomComponent):\n display_name = \"Transform Chain\"\n description = \"Converts a python function into a chain.\"\n\n # Modify this as you like, use any argument created in 'build' via 'self'\n def perform_action(self, chat_input):\n result = (chat_input + \" \" + self.foo + \" 👋🌍\").upper()\n return {self.output_key: result}\n\n # Parameters here are turned into class attributes accessible in 'perform_action'\n def build(self, foo: str = \"World\", i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"name":"Beautiful Soup","description":"Extracts relevant links from a website.","data":{"nodes":[{"width":384,"height":375,"id":"PromptTemplate-lOPq4","type":"genericNode","position":{"x":1550.5915123461584,"y":563.636573923162},"data":{"type":"PromptTemplate","node":{"template":{"output_parser":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"output_parser","advanced":false,"dynamic":false,"info":"","type":"BaseOutputParser","list":false},"input_variables":{"required":true,"placeholder":"","show":false,"multiline":false,"password":false,"name":"input_variables","advanced":false,"dynamic":false,"info":"","type":"str","list":true,"value":["links"]},"partial_variables":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"partial_variables","advanced":false,"dynamic":false,"info":"","type":"code","list":false},"template":{"required":true,"placeholder":"","show":true,"multiline":true,"password":false,"name":"template","advanced":fals |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"description":"Web scraper that loads multiple web pages and store results in JSON files.","name":"Batch WebLoader","data":{"nodes":[{"width":384,"height":445,"id":"PromptTemplate-q1G6I","type":"genericNode","position":{"x":1953.2253047109466,"y":185.7369933007888},"data":{"type":"PromptTemplate","node":{"template":{"output_parser":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"output_parser","advanced":false,"dynamic":true,"info":"","type":"BaseOutputParser","list":false},"input_variables":{"required":true,"placeholder":"","show":false,"multiline":false,"password":false,"name":"input_variables","advanced":false,"dynamic":true,"info":"","type":"str","list":true,"value":["webpage","instructions"]},"partial_variables":{"required":false,"placeholder":"","show":false,"multiline":false,"password":false,"name":"partial_variables","advanced":false,"dynamic":true,"info":"","type":"code","list":false},"template":{"required":true,"placeholder":"","show":true,"multiline":true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* USERS | |
* Note: This table contains user data. Users should only be able to view and update their own data. | |
* Some data is synced back and forth to `auth.users` as described below. | |
* | |
* `full_name`: synced in both directions | |
* `email`: synced from user metadata to profile only | |
* `avatar_url`: synced from user metadata to profile only | |
* `terms_accepted_at`: synced from profile to user metadata only | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useEffect } from 'react'; | |
import styled from 'styled-components/native'; | |
import Animated, { | |
cancelAnimation, | |
Easing, | |
useAnimatedStyle, | |
useSharedValue, | |
withRepeat, | |
withTiming, | |
} from 'react-native-reanimated'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createStore } from 'zustand' | |
import { persist, StorageValue } from 'zustand/middleware' | |
const store = createStore( | |
persist( | |
() => ( {} ), | |
{ | |
name: 'store-state', | |
storage: { | |
async getItem ( name: string ): StorageValue<unknown> { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"Range of numbers": { | |
"scope": "javascriptreact,typescriptreact", | |
"prefix": "range", | |
"body": [ | |
"{[...Array($1).keys()].map((i) => (", | |
" <$2 key={i}>", | |
" $3", | |
" </$2>", | |
"))}", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as d3 from "d3"; | |
import { | |
eachMonthOfInterval, | |
endOfMonth, | |
format, | |
isSameMonth, | |
parseISO, | |
startOfMonth, | |
} from "date-fns"; | |
import useMeasure from "react-use-measure"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { isTest } from "@/lib/constants"; | |
import { Dialog } from "@headlessui/react"; | |
import { motion } from "framer-motion"; | |
const TRANSITIONS = { | |
DURATION: !isTest ? 0.5 : 0, | |
EASE: [0.32, 0.72, 0, 1], | |
}; | |
function Modal({ onClose = () => {}, initialFocusRef, children }) { |
NewerOlder