Skip to content

Instantly share code, notes, and snippets.

View amorist's full-sized avatar
🔞
Focusing

Amor amorist

🔞
Focusing
View GitHub Profile
Understand the Task: Grasp the main objective, goals, requirements, constraints, and expected output.
- Minimal Changes: If an existing prompt is provided, improve it only if it's simple. For complex prompts, enhance clarity and add missing elements without altering the original structure.
- Reasoning Before Conclusions: Encourage reasoning steps before any conclusions are reached. ATTENTION! If the user provides examples where the reasoning happens afterward, REVERSE the order! NEVER START EXAMPLES WITH CONCLUSIONS!
- Reasoning Order: Call out reasoning portions of the prompt and conclusion parts (specific fields by name). For each, determine the ORDER in which this is done, and whether it needs to be reversed.
- Conclusion, classifications, or results should ALWAYS appear last.
- Examples: Include high-quality examples if helpful, using placeholders [in brackets] for complex elements.
- What kinds of examples may need to be included, how many, and whether they are complex enough to benefit from p
@hanxiao
hanxiao / testRegex.js
Last active May 13, 2025 09:48
Regex for chunking by using all semantic cues
// Updated: Aug. 20, 2024
// Run: node testRegex.js whatever.txt
// Live demo: https://jina.ai/tokenizer
// LICENSE: Apache-2.0 (https://www.apache.org/licenses/LICENSE-2.0)
// COPYRIGHT: Jina AI
const fs = require('fs');
const util = require('util');
// Define variables for magic numbers
const MAX_HEADING_LENGTH = 7;
@JimLiu
JimLiu / Subtitle.srt
Last active July 23, 2023 03:01
The Amazing AI Super Tutor for Students and Teachers | Sal Khan | TED
1
00:00:04,543 --> 00:00:08,421
所以任何在过去几个月一直关注的人
So anyone who's been paying attention for the last few months
2
00:00:08,462 --> 00:00:10,547
都会看到这样的标题,
has been seeing headlines like this,
@itxsoumya
itxsoumya / goSubFinder.go
Created February 5, 2021 11:34
find out subdomain using golang :)
package main
import (
"bufio"
"errors"
"flag"
"fmt"
"os"
"github.com/miekg/dns"
import MaxPlus
import os
import os.path
import pymxs
rt = pymxs.runtime
def convertAllToMeshes(n, indent=''):
objName = n.GetActualINode().Name
if "Line" in objName:
@zthxxx
zthxxx / Activate Office 2019 for macOS VoL.md
Last active May 16, 2025 21:12
crack activate Office on mac with license file
@jimfoltz
jimfoltz / a2s.cpp
Last active July 4, 2022 07:51
convert mesh files to .skp using assimp library
#include <SketchUpAPI/SketchUp.h>
#include <iostream>
#include <assimp/Importer.hpp>
#include <assimp/scene.h>
#include <assimp/postprocess.h>
#include <assimp/DefaultLogger.hpp>
#include "output_sketchup_error.h"
@awesomebytes
awesomebytes / alienware15r3_install_ubuntu14.04.05.md
Created December 8, 2016 09:37
Install Ubuntu 14.04 on Alienware 15 R3 instructions

How to install Ubuntu 14.04.05 on Alienware 15 R3

Tiny guide to install Ubuntu 14.04.05 on a brand new Alienware 15 R3.

Let windows 10 install

Just next, next, next filling up your data.

You should get a BIOS update alert from the Alienware Update widget. If not, right click on the Down arrow icon in the bottom right extra icons ^ thing and right click, then click Check for Updates.

@Bhavdip
Bhavdip / sketch-never-ending.md
Created October 6, 2016 15:53
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

#!/bin/bash
EXPLODED=/Users/develar/Documents/onshape-desktop-shell/dist/mac/Onshape.app
VOLNAME=Onshape
BG_PIC=/Users/develar/Documents/onshape-desktop-shell/build/background.png
rm -rf ${EXPLODED}/../test
mkdir -p ${EXPLODED}/../test/.background
cd ${EXPLODED}/../test