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 https from 'https'; | |
| import { NodeHttpHandler } from '@aws-sdk/node-http-handler'; | |
| import { promises as fs } from 'fs'; | |
| import path from 'path'; | |
| import { S3Client, GetObjectCommand, ListObjectsV2Command } from '@aws-sdk/client-s3'; | |
| // Create an HTTPS agent with keep-alive enabled | |
| const keepAliveAgent = new https.Agent({ | |
| keepAlive: true, | |
| maxSockets: 50, // Maximum number of sockets to allow per host |
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 { component$, useVisibleTask$ } from "@builder.io/qwik"; | |
| import { useLocation } from "@builder.io/qwik-city"; | |
| // import the file we created | |
| import { usePatternParamExtractor } from '~/hooks/pattern-param-extractor' | |
| export default component$(() => { | |
| const loc = useLocation(); |
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
| // Run on https://www.linkedin.com/mynetwork/invite-connect/connections/ | |
| while(true) { | |
| document.querySelector('.mn-connection-card__dropdown-trigger').click() | |
| await new Promise(resolve => setTimeout(resolve, 500)) | |
| document.querySelector(".artdeco-dropdown__content-inner button").click() | |
| await new Promise(resolve => setTimeout(resolve, 500)) | |
| document.querySelector("[data-test-dialog-primary-btn]").click() | |
| await new Promise(resolve => setTimeout(resolve, 500)) | |
| } |
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
| var arrTimes = []; | |
| var i = 0; // start | |
| var timesToTest = 5; | |
| var tThreshold = 150; //ms | |
| var testImage = "http://www.google.com/images/phd/px.gif"; // small image in your server | |
| var dummyImage = new Image(); | |
| var isConnectedFast = false; | |
| testLatency(function(avg){ | |
| isConnectedFast = (avg <= tThreshold); |
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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "qwik Chrome", | |
| "type": "chrome", | |
| "request": "launch", | |
| "url": "http://localhost:5173", | |
| "webRoot": "${workspaceFolder}", | |
| "pathMapping": { |
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 { z } from "zod"; | |
| import { zodToTs, printNode } from "zod-to-ts"; | |
| // Replace with your `openai` thing | |
| import { openai } from "../openai.server"; | |
| import endent from "endent"; | |
| function createJSONCompletion<T extends z.ZodType>({ | |
| prompt, | |
| schema_name, |
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
| # STEP 1: Load | |
| # Load documents using LangChain's DocumentLoaders | |
| # This is from https://langchain.readthedocs.io/en/latest/modules/document_loaders/examples/csv.html | |
| from langchain.document_loaders.csv_loader import CSVLoader | |
| loader = CSVLoader(file_path='./example_data/mlb_teams_2012.csv') | |
| data = loader.load() |
This file has been truncated, but you can view the full file.
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 url(https://fonts.googleapis.com/css?family=Roboto:100,200,300,400,400i,500,600,700,800,900); | |
| @import url(https://fonts.googleapis.com/css?family=Roboto:400,500,600,700); | |
| @charset "UTF-8";/* You can add global styles to this file, and also import other style files *//*! | |
| * NOTICE: (c) 2019 ConsumerInfo.com, Inc, an Experian company. | |
| * All Rights Reserved. | |
| * The material contained herein is protected by copyright and trade secret law. | |
| * Unauthorized use, copying, or dissemination is strictly prohibited. | |
| * All material contained herein is subject to Experian's confidential information policies. | |
| * ----------------------------------------------------------------------------------------- */.ng1x .archive__page .archive__datatable-row .archive-ui-grid-cell--left .media-body p sup,.ng1x sup{top:-.8em}.ng1x .ecs-darkweb-free-scan *,.ng1x .ecs-darkweb-free-scan :after,.ng1x .ecs-darkweb-free-scan :before,.ng1x hr{box-sizing:content-box}.ng1x hr,.ng1x img{border:0}.ng1x{/*! normalize.css v3.0.0 | MIT Lice |
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
| { | |
| "environment": "staging" | |
| } |
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
| /* | |
| Makes your remote containers low level API accessible via: | |
| import accessFederatedContainer from "access-federated-containers"; | |
| accessFederatedContainer("app2") | |
| */ | |
| /** @typedef {import("webpack").Compiler} Compiler */ | |
| /** @typedef {import("webpack").Compilation} Compilation */ |