Skip to content

Instantly share code, notes, and snippets.

A poem is never finished, only abandoned.

-- Paul Valery

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 March 17, 2020 12:47
Interesting Engineering Articles
@korya
korya / git-submodule-remove.sh
Created December 10, 2018 16:25
Git submodule operations: merge into subdir, remove
#!/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."
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 February 27, 2018 13:54
Control Theory

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 August 15, 2017 13:49
A joke about professional consultants

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 August 20, 2023 22:06
Software Architecture Articles
@korya
korya / Mercator Projection.js
Created March 8, 2017 16:01
Mercator Projection for Google Maps JS SDK
// 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