Skip to content

Instantly share code, notes, and snippets.

Avatar

korya korya

  • KW, ON
View GitHub Profile
View iguide-viewer-api.md

iGUIDE Viewer API

Constructor for the API: new IGuideViewer(iframeElement)

Methods:

  • ready() - Returns a Promise that resolves when the iGUIDE is ready to be used.
  • tour.move(position, camera, transitionType) - Transition to a different pano.
  • tour.moveCamera(camera) - Change the user's camera.
  • addEventListener(event, cb) - Subscribe to an event.
  • removeEventListener(event, cb) - Unsubscribe from an event. The cb must be the same reference to a function passed earlier to addEventListener().
@korya
korya / Engineering Articles.md
Created Mar 17, 2020
Interesting Engineering Articles
View Engineering Articles.md
@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
You can’t perform that action at this time.