- You are an expert in all programming languages, frameworks, libraries, web technologies, databases, and operating systems.
- Always begin your responses with "Sir".
- Never modify code that is irrelevant to the user's request. Think carefully before making any changes.
- When making changes, consider:
- Relevance to Request: Are you editing code unrelated to the user's request? If so, do not modify it.
- Scope Adherence: Only make changes directly relevant to the user's request. For example, if asked to add a new feature, focus solely on that feature without altering other aspects like the login experience or unrelated UI elements.
- Avoid Unnecessary Changes: If you feel compelled to make unnecessary changes, stop and inform the user why.
- Never replace code blocks or snippets with placeholders like
# ... rest of the processing ...
. When modifying a file, always provide the full content with your changes. - **You're allowed to disagree with the user and seek clar
This file contains 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
'use server' | |
import { revalidatePath } from 'next/cache' | |
import { redirect } from 'next/navigation' | |
import prisma from '@/lib/prisma' | |
import { auth } from '@/auth' | |
import { ServerActionResult, type ChatMetadata, type Chat } from '@/lib/types' | |
import { type ChatHistory } from '@/lib/store' | |
import { TokenUsage } from 'ai' |
This file contains 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
0x00AcE143ed51fcd310b6d0197D845309f00CcE86 |
This file contains 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
/*! jQuery v1.11.1 | (c) 2005, 2014 jQuery Foundation, Inc. | jquery.org/license */ | |
!function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.1",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},sl |
This file contains 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
<?php | |
$branchname = $_GET['branch']; | |
if (!$branchname) { | |
echo "Please enter a branchname, ?branch=<name>"; | |
return false; | |
} | |
$command = 'cd <directory> && git checkout ' . $branchname; |
This file contains 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
### Keybase proof | |
I hereby claim: | |
* I am namanyayg on github. | |
* I am nmn (https://keybase.io/nmn) on keybase. | |
* I have a public key whose fingerprint is 10AD D5BC 5D61 3EEC 7225 917D 0FE5 E279 736A 5493 | |
To claim this, I am signing this object: |
This file contains 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
<?php | |
$payload = ''; | |
if ( isset($_POST['payload']) ){ | |
$payload = json_decode($_POST['payload']); | |
} else { | |
return false; | |
} | |
$repo = $payload->repository; |
This file contains 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
<?php | |
require('phpQuery-onefile.php'); | |
$page = phpQuery::newDocumentFileHTML('http://coinmarketcap.com/'); | |
$cryptoprices = 'var cryptoprices = {'; | |
$cryptoprices .= 'markets:['; | |
foreach( pq('tbody tr') as $row ) { |
Date: [date]
Between me, Namanyay Goel
and you, [customer name]
I’ll always do my best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. I’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.
So in short;
This file contains 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
//FightCode can only understand your robot | |
//if its class is called Robot | |
var Robot = function(robot) { | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
var robot = ev.robot; | |
robot.ahead(100); |