Skip to content

Instantly share code, notes, and snippets.

View ykmnkmi's full-sized avatar
🎯
Focusing

Olzhas Suleimen ykmnkmi

🎯
Focusing
  • Kazakhstan, Almaty
  • 02:19 (UTC +05:00)
View GitHub Profile
@chinmaygarde
chinmaygarde / FlutterEmbedderGLFW.cc
Last active November 23, 2023 16:26
Flutter Embedder API Example (GLFW with OpenGL)
#include <assert.h>
#include <chrono>
#include <embedder.h>
#include <glfw3.h>
#include <iostream>
static_assert(FLUTTER_ENGINE_VERSION == 1, "");
static const size_t kInitialWindowWidth = 800;
@kmizu
kmizu / Visitors.scala
Created January 12, 2012 14:22
A Visitor pattern example, which solved "Expression Problem".
trait Visitors {
type V <: Visitor
type E <: Expression
trait Visitor {
def visit(e: Addition): Int
def visit(e: Subtraction): Int
def visit(e: Multiplication): Int
def visit(e: Num): Int
}