This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"basics": { | |
"name": "Richard Cooper", | |
"label": "Tech Lead, Senior Golang Engineer", | |
"email": "[email protected]", | |
"phone": "+995(591)12-88-96", | |
"summary": "", | |
"location": { | |
"city": "Belgrade", | |
"region": "Serbia" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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{}{...}`) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// link to go playground: https://play.golang.org/p/_XpSn6NoNVY | |
package main | |
import ( | |
"context" | |
"time" | |
) | |
func main() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" ] |