Skip to content

Instantly share code, notes, and snippets.

View nugmanoff's full-sized avatar
:octocat:

Aidar Nugmanoff nugmanoff

:octocat:
View GitHub Profile
@nugmanoff
nugmanoff / find-mentors.feature.ts
Created March 31, 2022 17:11
Grammyjs Stepping Issue
import { Composer } from "grammy";
import { Router } from "@grammyjs/router";
import { isPrivate } from "grammy-guard";
import { Context } from "@bot/types";
import { selectSpecializationKeyboard } from "@bot/keyboards";
import tryToFindMentors from "@bot/helpers/try-to-find-mentors";
import paginate from "@bot/helpers/pagination";
import { Menu } from "@grammyjs/menu";
import { logger } from "@bot/logger";
@nugmanoff
nugmanoff / Kassymkhan.swift
Created August 28, 2020 04:39
Decoding query documents
Firestore.firestore().collection("Portfolio").getDocuments() { query, error in
if let documents = query.documents {
let portfolios: [HistoryCompany] = documents.map { document in
return try! FirestoreDecoder().decode(HistoryCompany.self, from: document.data()
}
} else {
print("Document does not exist")
}
}
@nugmanoff
nugmanoff / apnr.py
Created April 17, 2019 11:46
RJ - APNR
# main opencv dependency
import cv2
# numpy is a library for large, multi-dimensional arrays and matrices
# along with a large collection of high-level math functions
import numpy as np
# this library provides a way of using operating system dependent functionality
# in this case it is reading/writing files
import os
@nugmanoff
nugmanoff / App.js
Created February 24, 2019 12:18
Video player with rate changer + multipart post request
import React, { Component } from "react";
import { Platform, StyleSheet, Text, View, Slider } from "react-native";
import Video from "react-native-video";
export default class App extends Component {
state = {
rate: 1,
fps: 24
};
@nugmanoff
nugmanoff / clean_execs.sh
Last active October 26, 2018 11:08
Script for cleaning up directory from executables generated by gcc & jvm compilers
#!/bin/bash
find <working directory> -type f \( -name "*.class" -o ! -name "*.*" \) -exec rm {} +
## or
find <working directory> -type f \( -name "*.class" -o ! -name "*.*" \) -exec rm {} +