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
| # >>> MY_CUSTOM_ZSH >>> | |
| # Enable dynamic prompt substitution | |
| setopt PROMPT_SUBST | |
| # Track elapsed time | |
| preexec() { | |
| timer=$(date +%s%3N) | |
| } | |
| precmd() { | |
| if [ -n "$timer" ]; then |
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 cv2 | |
| import numpy as np | |
| # Load the image | |
| img = cv2.imread('miku.png') | |
| h, w = img.shape[:2] | |
| # Initiate SIFT detector | |
| sift = cv2.SIFT_create() |
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
| - role: system | |
| content: | | |
| You are creating a logically-consistent series of questions about different domains, based on provided information. Given some information about something specific (it could be anything, from a README to a book excerpt to sales copy) you will create suitable questions based on the text, and *only* based on the text. You are focusing on understanding, application, analysis, and synthesis of ideas (cognitive levels). The questions will test comprehension of real information that would be worthy to teach in order for people to understand more about the specific material. The questions you create will lean towards longer, more difficult questions that require some thought to solve — but can still be solved given the paragraphs provided. please avoid using *pronouns* and be *explicit* as possible When generating the Question and Answer. Essentially: the questions will test comprehension of real information that would be worthy to teach. After the question, you will also write its an |
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
| # clone boxel | |
| git clone https://github.com/cardstack/boxel.git | |
| cd boxel | |
| # install lib | |
| pnpm install | |
| # build ui - somehow need to do this | |
| cd packages/boxel-ui | |
| pnpm build |
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
| Here's the text you requested in a code block: | |
| txt | |
| Copy code | |
| You are ChatGPT, a large language model trained by OpenAI, based on the GPT-4 architecture. | |
| Knowledge cutoff: 2023-04 | |
| Current date: 2023-11-29 | |
| Image input capabilities: Enabled | |
| # Tools |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 openai | |
| from pdb import set_trace | |
| import time | |
| start = time.monotonic() | |
| openai.api_base = "http://34.16.147.202/v1" | |
| openai.api_key = "test" | |
| # prompt = "Apakah ibu negara malaysia?" # warm up prompt | |
| prompt = "Siapakah perdana menteri malaysia sekarang?" | |
| messages = [ |
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 3.
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
| "ID","time","name","weights alpha","weights beta","model A","model B","model C","alpha","beta","mode","use MBW","plus lora","custum name","save setting","use ID" | |
| 1,2023.03.11 21.06.40,"cosmix_10 x (1-alpha) + Basil_mix_fixed x alpha (0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5)","0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5","0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2",69407300d9,0ff127093f,,0.25,0.25,Weight sum:A*(1-alpha)+B*alpha,True,,,"['image', 'PNG info']", | |
| 2,2023.03.11 21.07.20,"cosmix_10 x (1-alpha) + Basil_mix_fixed x alpha (0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5)","0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5","0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.2,0.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
| // Create a function to check for the live preview | |
| function checkLivePreview() { | |
| console.log("123") | |
| var script = document.createElement('script');script.src = "https://code.jquery.com/jquery-3.4.1.min.js";document.getElementsByTagName('head')[0].appendChild(script); | |
| // const parentElement = document.querySelector('gradio-app'); | |
| // const shadowRoot = parentElement.shadowRoot; | |
| const livePreview = document.querySelector('.livePreview'); | |
| // const livePreview = $('.livePreview'); | |
| if (livePreview) { | |
| // Initialize variables to hold highest resolution and corresponding image node |
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
| mappings = { | |
| 'a':'a', | |
| 'i':'i', | |
| 'u':'u', | |
| 'e':'e', | |
| 'o':'o', | |
| 'ka':'ka', | |
| 'ki':'ki', | |
| 'ku':'ku', |
NewerOlder