Skip to content

Instantly share code, notes, and snippets.

View ilyar's full-sized avatar
🖖
this is the way

ilyar

🖖
this is the way
View GitHub Profile
@ilyar
ilyar / gist:a187eeec53d04d89eeb9e4cf184eae51
Created September 29, 2017 13:15 — forked from shsteimer/gist:7257245
Tip to delete tags by pattern
#delete all the remote tags with the pattern your looking for, ie. DEV-
git tag | grep <pattern> | xargs -n 1 -i% git push origin :refs/tags/%
#delete all your local tags
git tag | xargs -n 1 -i% git tag -d %
#fetch the remote tags which still remain
git fetch
@ilyar
ilyar / smart_question.md
Last active March 2, 2025 19:43
SMART — an algorithm for formulating a question

by Bruno Murai

SMART — an algorithm for formulating a question

SMART / SMARTER — is a mnemonic abbreviation used in management and project management to define goals and set tasks. The first known use of the term is mentioned in the work of Paul J. Meyer in 1965 and later in November 1981 in the work Management Review by George T. Doran

This approach can be used to formulate questions, resulting in the following components:

  • Specific — My task... (explains what exactly needs to be achieved)
  • Measurable — It should result in... (explains the expected outcome)

Process in trello

1. Доска

На доске есть карточки у них есть тип, статус и приоритет и колонки для ролей

устанавливается ярлыками т.к. по ним можно фильтровать карточки и отчеты по залогированносу времени

Type

@ilyar
ilyar / .gitattributes
Last active March 25, 2021 18:35
How to explain the file `.gitattributes`?
# Customizing Git - Git Attributes https://git-scm.com/book/en/v2/Customizing-Git-Git-Attributes
# gitattributes - Defining attributes per path https://git-scm.com/docs/gitattributes
# pattern attr1 attr2 ...
# Each line in gitattributes file is of format
* text=auto
# Handle line endings automatically for files detected as text and leave all files detected as binary untouched
# Overwrites the local `core.autocrlf` settings, which ensures uniform behavior
@ilyar
ilyar / JavaScript-notes.md
Last active January 1, 2019 13:26
JavaScript notes

JavaScript notes

Listen for all events

/**
 * @param {Object} obj
 * @param {Array} typeEvents
 */
function addLogEvent(obj, typeEvents) {
FROM golang:1.12
RUN apt-get update && \
apt-get install -y libc6-dev libglu1-mesa-dev libgl1-mesa-dev libxrandr-dev libxcursor-dev libxinerama-dev libxi-dev libasound2-dev
RUN go get github.com/hajimehoshi/ebiten/...
RUN go version ;\
go env ;\
cd $(go env GOPATH)/src/github.com/hajimehoshi/ebiten ;\
go build -ldflags '-linkmode external -extldflags -static' -tags=example ./examples/life
package main
import (
"runtime"
"github.com/go-gl/glfw/v3.3/glfw"
)
func init() {
// This is needed to arrange that main() runs on main thread.
// See documentation for functions that are only allowed to be called from the main thread.
@ilyar
ilyar / protocol_buffers_install.sh
Created January 31, 2020 15:52
Protocol Buffers Install
#!/bin/bash
TEMP_DIR=/tmp
VERSION=`curl --silent "https://api.github.com/repos/protocolbuffers/protobuf/releases/latest" | grep -Po '"tag_name": "v\K.*?(?=")'`
[[ -z VERSION ]] && echo "Could not get version from github"
mkdir $TEMP_DIR/protoc_inst
@ilyar
ilyar / F1.ipynb
Last active April 13, 2020 19:19
Confusion matrix, Accuracy, Precision, Recall and F1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/usr/bin/env bash
set -o errexit
lowercase() {
echo "$1" | tr '[:upper:]' '[:lower:]'
}
warning() {
printf "[WARNING] %s\n" "$1"