Skip to content

Instantly share code, notes, and snippets.

korya korya

  • KW, ON
Block or report user

Report or block korya

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@korya
korya / git-submodule-remove.sh
Created Dec 10, 2018
Git submodule operations: merge into subdir, remove
View git-submodule-remove.sh
#!/usr/bin/env bash
# The scripts receives a name of a git submodule and removes it from the current
# repository.
# The script is derived from git-submodule-rewrite.sh.
function usage() {
echo "Usage: $0 <submodule-name>"
echo ""
echo "Remove <submodule-name> from a repo."
View gist:55077c63e5f4a999e25b97523a63546c
Google Manager Behaviours:
1. Is a good coach.
2. Empowers team and does not micromanage.
3. Creates an inclusive team environment, showing concern for success and well-being.
4. Is productive and results-oriented.
5. Is a good communicator - listens and shares information.
6. Supports career development and discusses performance.
7. Has a clear vision/strategy for the team.
8. Has key technical skills to help advise the team.
9. Collaborates across Google.
@korya
korya / quora.md
Created Feb 27, 2018
Control Theory
View quora.md

Q: What course do you take to learn control theory?

A:

First of all you need to know differential equations. From that you can move to Laplace Transform and Z transform. That is the math you need for basic control theory.

Regarding the courses during my BSc and my MSc I have attended multiple courses:

  • Systems theory :useful to understand the basics of how a dynamical system works
  • Automatic control: basics of control theory (loop-shaping, disturbances rejection, sensors, PID, nyquist, root locus, and many other things)
  • Digital control: how to deal with discrete systems or continuous systems being sampled
  • Discrete event systems : how to model the dynamics of a discrete event systems (such as a manufacturing line)
@korya
korya / Professional Consultants.md
Created Aug 15, 2017
A joke about professional consultants
View Professional Consultants.md

A shepherd is looking after his herd when suddenly a young man in a sports car stops by. The young man asks the shepherd, “If I can guess how many sheep you have, can I keep one of them?” The shepherd agrees. The young man starts running calculations using the latest and greatest technology. “You have 280 sheep,” he says.

The shepherd sighs and tells the young man, “If I guess what your profession is, can I get my sheep back?” The young man agrees. “You are a consultant,” he says. Surprised, the young man asks, “How did you know!” “Well, you are charging me a steep price, you are telling me something I already know, and obviously you know nothing about my business because you are taking away my dog!”

@korya
korya / Software Architecture Articles.md
Last active Mar 17, 2017
Software Architecture Articles
View Software Architecture Articles.md
@korya
korya / Mercator Projection.js
Created Mar 8, 2017
Mercator Projection for Google Maps JS SDK
View Mercator Projection.js
// Base tile size used in Google Javascript SDK
const GOOGLE_BASE_TILE_SIZE = 256;
// MercatorProjection implements the Projection interface defined in Google Maps
// Javascript SDK.
//
// Google Maps Javascript SDK docs:
// https://developers.google.com/maps/documentation/javascript/maptypes#WorldCoordinates
//
// For more details about the convertions see
@korya
korya / service-registry-example.go
Last active Dec 15, 2016
An example demonstrating basic service registry implemented in Go
View service-registry-example.go
// Go play example: https://play.golang.org/p/5eoIRYy5Bn
package main
import (
"fmt"
"reflect"
)
type Policy interface {
IsAllowed() bool
View ddd-in-golang.markdown

This is my response to an email asking about Domain-Driven Design in golang project.

Thank you for getting in touch. Below you will find my thoughts on how golang works with DDD, changing it. This is merely a perception of how things worked out for us in a single project.

That project has a relatively well-known domain. My colleagues on this project are very knowledgeable, thoughtful and invested in quality design. The story spelled out below is a result of countless hours spent discussing and refining the approach.

Conclusions could be very different, if there was a different project, team or a story-teller.

Short story

@korya
korya / cmds.sh
Created Oct 19, 2016
S3: read latest version of removed object
View cmds.sh
getLatestVersion() {
local path="$1"
aws s3api list-object-versions --output json --bucket iguides.plntr.ca --prefix "$path" | jq '.Versions[0].VersionId' -r
}
filename=[remove-file-name]
path="ig8OKNNO6IIPDD1/gallery/${filename}"
versionId="$(getLatestVersion "$path")"
echo "filename: $filename"
You can’t perform that action at this time.