Другие интересные штуки тут: https://t.me/notes_of_programmer
select schemaname,
relname,
quote_ident(schemaname) || '.' || quote_ident(relname) as full_table_name,
n_live_tup,
n_dead_tup,| You are a powerful agentic AI coding assistant, powered by Claude 3.5 Sonnet. You operate exclusively in Cursor, the world's best IDE. | |
| You are pair programming with a USER to solve their coding task. | |
| The task may require creating a new codebase, modifying or debugging an existing codebase, or simply answering a question. | |
| Each time the USER sends a message, we may automatically attach some information about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more. | |
| This information may or may not be relevant to the coding task, it is up for you to decide. | |
| Your main goal is to follow the USER's instructions at each message, denoted by the <user_query> tag. | |
| <communication> | |
| 1. Be conversational but professional. |
Другие интересные штуки тут: https://t.me/notes_of_programmer
select schemaname,
relname,
quote_ident(schemaname) || '.' || quote_ident(relname) as full_table_name,
n_live_tup,
n_dead_tup,This document now exists on the official ASP.NET core docs page.
Node Version Manager (https://github.com/nvm-sh/nvm) works perfectly across native node installations as well as emulated Rosetta installations. The trick I am using here is to install one LTS version of node under Rosetta and another stable version as native binary.
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| home: Scaffold( | |
| body: Center( |
| import io.realm.* | |
| import io.realm.kotlin.where | |
| import kotlinx.coroutines.GlobalScope | |
| import kotlinx.coroutines.launch | |
| import kotlinx.coroutines.suspendCancellableCoroutine | |
| import kotlin.coroutines.resume | |
| import kotlin.coroutines.resumeWithException | |
| private suspend fun <T: RealmObject, S: RealmQuery<T>> findAllAwait(query: S): RealmResults<T> = suspendCancellableCoroutine { continuation -> | |
| val listener = RealmChangeListener<RealmResults<T>> { t -> continuation.resume(t) } |
| import java.io.ByteArrayOutputStream | |
| import java.io.File | |
| import java.nio.charset.StandardCharsets.UTF_8 | |
| import java.util.zip.GZIPInputStream | |
| import java.util.zip.GZIPOutputStream | |
| fun gzip(content: String): ByteArray { | |
| val bos = ByteArrayOutputStream() | |
| GZIPOutputStream(bos).bufferedWriter(UTF_8).use { it.write(content) } | |
| return bos.toByteArray() |
| #!/usr/bin/env ruby | |
| require 'yaml' | |
| TYPE_TO_KSY = { | |
| 'uint8_t' => 'u1', | |
| 'uint16_t' => 'u2', | |
| 'uint32_t' => 'u4', | |
| 'uint64_t' => 'u8', |