Skip to content

Instantly share code, notes, and snippets.

View igorlukanin's full-sized avatar
🚀
All things growth @cube-js

Igor Lukanin igorlukanin

🚀
All things growth @cube-js
View GitHub Profile
@igorlukanin
igorlukanin / app.js
Created December 11, 2017 13:48
JS Collections Access Benchmark
const Benchmark = require('benchmark')
const start = 2
const end = 5
const suite = new Benchmark.Suite
for (var i = start; i <= end; i++) {
const n = Math.pow(10, i)
@igorlukanin
igorlukanin / curriculum.md
Created June 26, 2018 20:15
Product Management 101

Product Management 101

Week 0. Introduction to Course

  • Objectives
  • Content. Lectures, tasks, the final project
  • Prerequisites
  • Task 0. Survey. Online products exposure. Career focus

Week 1. Introduction to Product Management

@igorlukanin
igorlukanin / findEqualSubtrees.kt
Created March 13, 2019 18:22
findEqualSubtrees for fellaru
data class TreeNode(
val value: Char,
val left: TreeNode? = null,
val right: TreeNode? = null
)
val tree = TreeNode(
'a',
TreeNode('b',
TreeNode('c'),
@igorlukanin
igorlukanin / cubejs-graphql.js
Last active January 9, 2021 06:44
Cube.js GraphQL example
// Based on https://github.com/cube-js/cube.js/blob/master/examples/hacktoberfest/dashboard/src/Card/LanguageCard.js
// Cube.js Query
{
measures: [ 'Repos.count' ],
dimensions: [ 'Repos.language' ],
}
// Cube.js GraphQL
{