Skip to content

Instantly share code, notes, and snippets.

View quenbyako's full-sized avatar
🦄
life is magic

Richard Cooper quenbyako

🦄
life is magic
View GitHub Profile
@quenbyako
quenbyako / resume.json
Last active October 2, 2023 17:02
resume.json
{
"basics": {
"name": "Richard Cooper",
"label": "Tech Lead, Senior Golang Engineer",
"email": "rcooper@xelaj.org",
"phone": "+995(591)12-88-96",
"summary": "",
"location": {
"city": "Belgrade",
"region": "Serbia"
@quenbyako
quenbyako / extra.go
Last active September 10, 2021 21:17
Default extra.go template
// go has a lot of copy-paste code. most of the time you can't _just_ alias your code globally. extra.go file
// is standard template of frequently used aliases.
package somepkg
type null = struct{}
// any is just alias to interface{} for better looking code (like `x := []any{1,'2',"three"}` looks better
// than `x := []interface{}{...}`)
@quenbyako
quenbyako / main.go
Created August 26, 2021 11:55
How to make context with two cancel funcs
// link to go playground: https://play.golang.org/p/_XpSn6NoNVY
package main
import (
"context"
"time"
)
func main() {
@quenbyako
quenbyako / main.go
Last active April 1, 2024 13:14
How to get all characters in golang unicode range table
// link to go playground: https://play.golang.org/p/BihbZqsk5Kh
package main
import (
"crypto/rand"
"math/big"
"unicode"
)
This file has been truncated, but you can view the full file.
​{"features":[{"geometry":{"coordinates":[37.78753642,55.79293504],"type":"Point"},"properties":{"DatasetId":60662,"VersionNumber":1,"ReleaseNumber":28,"RowId":null,"Attributes":{"global_id":833043944,"stop_id":3630,"stop_name":"5-я Парковая ул.","StationName":null,"Street":null,"Direction":null,"Pavilion":null,"OperatingOrgName":null}},"type":"Feature"},{"geometry":{"coordinates":[37.79377237,55.7930765],"type":"Point"},"properties":{"DatasetId":60662,"VersionNumber":1,"ReleaseNumber":28,"RowId":null,"Attributes":{"global_id":833043948,"stop_id":3631,"stop_name":"7-я Парковая ул.","StationName":null,"Street":null,"Direction":null,"Pavilion":null,"OperatingOrgName":null}},"type":"Feature"},{"geometry":{"coordinates":[37.79887363,55.79313357],"type":"Point"},"properties":{"DatasetId":60662,"VersionNumber":1,"ReleaseNumber":28,"RowId":null,"Attributes":{"global_id":833043951,"stop_id":3632,"stop_name":"Метро \"Первомайская\"","StationName":null,"Street":null,"Direction":null,"Pavilion":null,"OperatingOrgName":n
import 'package:flutter/material.dart';
import 'package:kong_api/api.dart' as api;
import 'package:flutter_chips_input/flutter_chips_input.dart';
import '../flushbars/flushbars.dart' as flushbars;
class CreateRoutePopup extends StatefulWidget {
final _createRouteKey = GlobalKey<FormState>();
var _newRoute = api.Route();
String serviceId;
@quenbyako
quenbyako / openapi.yml
Created May 16, 2020 00:35
kong openapi
openapi: 3.0.3
# Added by API Auto Mocking Plugin
servers:
- description: локальный хост админки
url: https://localhost:8001/
info:
description: api of kong gateway
version: "2.0.0"
title: kong admin api
paths:
@quenbyako
quenbyako / pseudoinstall.sh
Created April 28, 2020 14:38
pseudoinstall
echo -e "made with love, by"
echo -e "\e[35m _/ _/ _/_/_/_/ _/ _/_/ _/\e[39m"
echo -e "\e[35m _/ _/ _/ _/ _/ _/ _/ \e[39m"
echo -e "\e[35m _/ _/_/_/ _/ _/_/_/_/ _/ \e[39m"
echo -e "\e[35m _/ _/ _/ _/ _/ _/ _/ _/ \e[39m"
echo -e "\e[35m_/ _/ _/_/_/_/ _/_/_/_/ _/ _/ _/_/ \e[39m"
if [ $USER != "root" ]
then
echo -e "\e[31m! Скрипт необходимо запустить от рута!\e[39m Добавь 'sudo' перед 'bash'"
@quenbyako
quenbyako / install.sh
Last active April 27, 2020 23:11
скрипт установки докера и портейнера
#!/bin/bash
echo -e "made with love, by"
echo -e "\e[35m _/ _/ _/_/_/_/ _/ _/_/ _/\e[39m"
echo -e "\e[35m _/ _/ _/ _/ _/ _/ _/ \e[39m"
echo -e "\e[35m _/ _/_/_/ _/ _/_/_/_/ _/ \e[39m"
echo -e "\e[35m _/ _/ _/ _/ _/ _/ _/ _/ \e[39m"
echo -e "\e[35m_/ _/ _/_/_/_/ _/_/_/_/ _/ _/ _/_/ \e[39m"
if [ $USER != "root" ]