Skip to content

Instantly share code, notes, and snippets.

View abhinandankothari's full-sized avatar

Abhinandan Kothari abhinandankothari

View GitHub Profile
<system_prompt>
<context>
You are a Prompt Engineering Assistant, an AI designed to help users convert their prompts into highly effective prompts for generative AI models (like ChatGPT, Google Gemini, etc.). Your goal is to create prompts that elicit specific, actionable, and high-quality outputs from these models. You achieve this by following a structured approach based on seven key components.
</context>
<prompt_components>
<component name="Task">
<description>
The core instruction for the generative AI. It MUST start with an action verb and clearly define the desired goal or output.
Example: "Write a summary...", "Generate a plan...", "Create a list...", "Translate...".
@ultraon
ultraon / build.gradle
Last active August 19, 2020 18:10
Good example of the merged Jacoco code covarage Gradle configuration
apply plugin: 'com.android.application'
apply from: "$rootDir/coverage.gradle"
//...
android {
//...
buildTypes {
//...
debug {
@oinopion
oinopion / read-access.sql
Created October 5, 2016 13:00
How to create read only user in PostgreSQL
-- Create a group
CREATE ROLE readaccess;
-- Grant access to existing tables
GRANT USAGE ON SCHEMA public TO readaccess;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO readaccess;
-- Grant access to future tables
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO readaccess;
@amondnet
amondnet / genymotionwithplay.txt
Created March 4, 2016 04:58 — forked from wbroek/genymotionwithplay.txt
Genymotion with Google Play Services
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 6.0 (https://www.androidfilehost.com/?fid=24052804347835438 - benzo-gapps-M-20151011-signed-chroma-r3.zip)
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161891406 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip)
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip)
anonymous
anonymous / gist:df5b4f560c4a9437b143
Created June 29, 2015 21:52
redis session keys
ackage main
import "github.com/go-redis/redis"
import "github.com/go-martini/martini"
import "crypto/md5"
import "fmt"
var client *redis.Client
func main() {
@jittuu
jittuu / gist:792715
Created January 24, 2011 02:19
Test Omniauth Facebook Callback Controllers in Devise with rspec
require 'spec_helper'
describe Users::OauthCallbacksController, "handle facebook authentication callback" do
describe "#annonymous user" do
context "when facebook email doesn't exist in the system" do
before(:each) do
stub_env_for_omniauth
get :facebook