docker exec -it postgres psql -U user -d accounts
CREATE TABLE IF NOT EXISTS public.balances ( id SERIAL PRIMARY KEY, name character varying, balance integer NOT NULL, updated_at timestamp DEFAULT now()
const SECRET_KEY = ENTER YOUR SECRET KEY HERE; | |
const MAX_TOKENS = 200; | |
// For more cool AI snippets and demos, follow me on Twitter: https://twitter.com/_abi_ | |
/** | |
* Completes your prompt with GPT-3 | |
* | |
* @param {string} prompt Prompt | |
* @param {number} temperature (Optional) Temperature. 1 is super creative while 0 is very exact and precise. Defaults to 0.4. |
version: "3.8" | |
services: | |
postgres: | |
image: postgres | |
container_name: postgres | |
restart: always | |
ports: | |
- "54320:5432" | |
environment: | |
POSTGRES_USER: user |
version: '3.5' | |
services: | |
postgres: | |
container_name: postgres_container | |
image: postgres | |
environment: | |
POSTGRES_USER: ${POSTGRES_USER:-postgres} | |
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-changeme} | |
PGDATA: /var/lib/pgdata |
<?xml version="1.0" encoding="UTF-8"?> | |
<project xmlns="http://maven.apache.org/POM/4.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>org.example</groupId> | |
<artifactId>Protocol_buffer</artifactId> | |
<version>1.0-SNAPSHOT</version> | |
<packaging>jar</packaging> |
package main | |
import ( | |
"context" | |
"fmt" | |
"github.com/jinagamvasubabu/ltreevisualizer" | |
) | |
func main() { | |
l := ltreevisualizer.Visualizer{ |
-- Enable Ltree | |
create extension if not exists ltree; | |
create table apps_taxonomy ( | |
id integer, | |
name varchar(50), | |
path ltree | |
); | |
create index tree_path_idx on apps_taxonomy using gist (path); |
package hdrhistogram_test | |
import ( | |
"fmt" | |
"github.com/HdrHistogram/hdrhistogram-go" | |
"os" | |
) | |
func ExampleHistogram_ValueAtPercentiles() { | |
histogram := hdrhistogram.New(1, 30000000, 3) |
package main | |
import ( | |
"fmt" | |
"reflect" | |
"unsafe" | |
) | |
func main() { | |
arr := [5]int{1,2,3,4,5} |
package main | |
import ( | |
"fmt" | |
"reflect" | |
"unsafe" | |
) | |
func main() { | |
a := []int{1, 2, 3, 4, 5} |