Skip to content

Instantly share code, notes, and snippets.

@notgiorgi
notgiorgi / 01-update-docs.md
Created June 15, 2025 08:32 — forked from badlogic/01-update-docs.md
Yakety Documentation (Ordered) - LLM-optimized docs with concrete file references

Update Documentation

You will generate LLM-optimized documentation with concrete file references and flexible formatting.

Your Task

Create documentation that allows humans and LLMs to:

  • Understand project purpose - what the project does and why
  • Get architecture overview - how the system is organized
  • Build on all platforms - build instructions with file references
import React from 'react'
export function useEffectDebugger(effect, dependencies) {
useLogChanges(dependencies)
React.useEffect(effect, dependencies)
}
export function useCallbackDebugger(callback, dependencies) {
useLogChanges(dependencies)
return React.useCallback(callback, dependencies)
@notgiorgi
notgiorgi / index.html
Created August 4, 2017 13:59
Pure JS image zoom
<figure
id="figure"
>
<img
id="img"
src=""
/>
</figure>
Magnification level: <input id="input" type="number" value="200" />

ჯანსაღი ქომუნითის წესები:

  • სანამ კითხვას დასვამთ, ცოტა ხანი (15 წუთი მაინც) ეცადეთ მოძებნოთ პასუხი თქვენივე ძალებით.
    • არ იქნება სამართლიანი, რომ ვიღაცას დაეზაროს და მის მაგივრად სხვამ ხარჯოს დრო/ენერგია, ეს თქვენც არ გესიამოვნებათ. მოძებნისთვის შეგილიათ გამოიყენოთ სხვადასხვა ონლაინ საძიებო სისტემები როგორიცაა მაგალითად გუგლი.
  • კითხვა გასაგებად ჩამოაყალბეთ, ჩანდეს რომ თქვენ უკვე ეცადეთ თქვენით გარკვევა და დაიცავით პირველი წესი. ახლა მართლა გჭირდებათ ქომუნითსგან დახმარების მიღება და თქვენ ამას იმსახურებთ!
    • კოდის გაზიარებისთვის გამოიყენეთ ისეთი პლატფორმები როგორებიცაა Gist, codesandbox, jsfiddle, codepen და მისთანები.
    • არ გააზიაროთ კოდის სკრინშოტი, რადგან რთულია ასეთ ფორმატში კოდის წაკითხვა და გარჩევა, მითუმეტეს თუ მთელი ეკრანის სქრინშოტია
    • ეცადეთ მაგალითი გაამარტივოთ და მთელი აპლიცაკიის კოდის მაგივრად, კოდის ის ნაწილი გააშეაროთ, რომელიც კერძოდ ამ პრობლემასთან არის დაკავშირებული
  • წერეთ ქართულად ი
import React, { Component, PropTypes } from 'react'
import { Table, Menu, Icon, Segment, Input } from 'semantic-ui-react'
class TableElement extends React.Component {
constructor(props) {
super(props);
this.data = props.data
this.renderRow = props.renderBodyRow || this.defaultRenderBodyRow
this.headerRow = props.headers || Object.keys(this.data.pop());
this.currentIndex = 0
const { DataTypes } = require('sequelize')
module.exports = {
schema: {
id: {
type: DataTypes.INTEGER,
primaryKey: true,
allowNull: false,
autoIncrement: true,
},
@notgiorgi
notgiorgi / Modad.re
Last active December 17, 2018 20:12
module type Monad = {
type m(_);
let flatMap: m('a) => ('a => m('b)) => m('b);
};
module ListMonad: Monad {
type t('a) = list('a)
let rec flatMap = (ma, f) => switch (ma) {
| [] => []
@notgiorgi
notgiorgi / DataTable.ts
Created April 16, 2017 13:18 — forked from cschmidli/DataTable.ts
Semantic UI Data Table Component
import * as React from 'react';
import * as hash from 'object-hash';
import {
TableProps,
Table,
TableBody,
TableCell,
TableFooter,
TableHeaderCell,
function withLazyLoading(
getComponent,
Spinner = null,
onError = noop,
) {
return class LazyLoadingWrapper extends React.Component {
state = {
Component: null,
}
trait Generator[T] {
self =>
def generate: T
def map[U](fn: T => U): Generator[U] = new Generator[U]{
def generate = fn(self.generate)
}
def flatMap[U](fn: T => Generator[U]): Generator[U] = fn(self.generate)