Skip to content

Instantly share code, notes, and snippets.

@Zegis
Zegis / openai_call.json
Created January 5, 2024 18:58 — forked from iceener/openai_call.json
OpenAI Function Calling (parameters)
{
"model": "gpt-3.5-turbo-0613",
"function_call": {
"name": "query_enrichment"
},
"messages": [
{
"role": "user",
"content": "Write a newsletter."
}
using System;
using System.Collections.Generic;
using System.Linq;
namespace DelegateTest
{
class Pet
{
public string Name { get; set; }
public int Age { get; set; }
<target name="download-jchart">
<mkdir dir="lib"/>
<get
src="https://repo1.maven.org/maven2/org/jfree/jfreechart/1.0.19/jfreechart-1.0.19.jar"
dest="lib/" usetimestamp="true"
/>
<get
src="https://repo1.maven.org/maven2/org/jfree/jcommon/1.0.23/jcommon-1.0.23.jar"
dest="lib/" usetimestamp="true"
/>
@Zegis
Zegis / BubbleSort.cpp
Last active January 2, 2016 17:19
Void* arithmetics example
#include<iostream>
#include<cstring>
using namespace std;
int sortAscending(const void* A, const void* B);
int sourtDouble(const void* A, const void* B);
void bubbleSort(void * base, size_t num, size_t size, int (*compare)(const void*, const void*));
int main(int argc, char* argv[])