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 / 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
{
@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 / 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 / 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)
{
"asd": "123" }
@igorlukanin
igorlukanin / quizzes.md
Last active November 7, 2017 08:28
SKB Kontur @ HighLoad++
@RestController
class GreetingController {
val counter = AtomicLong()
@GetMapping("/greeting")
fun greeting(@RequestParam(value = "name", defaultValue = "World") name: String) =
Greeting(counter.incrementAndGet(), "Hello, $name")
}
var streamReader = new StreamReader("c:\\file.txt");
try
{
Console.Write(streamReader.ReadToEnd());
}
finally
{
if (streamReader != null)
streamReader.Dispose();
}
@igorlukanin
igorlukanin / Dasha.md
Last active June 15, 2017 04:24
🚀