Skip to content

Instantly share code, notes, and snippets.

View pulyaevskiy's full-sized avatar
😷

Anatoly Pulyaevskiy pulyaevskiy

😷
  • San Francisco Bay Area
View GitHub Profile
@cjsaylor
cjsaylor / sample_class.php
Created November 22, 2012 14:36
Convenient PHPUnit mocking of Singleton Classes
<?php
class Sample {
public __construct() {
}
public function sayHello($name) {
return Someclass::getInstance()->hello($name);
}
@magnetikonline
magnetikonline / README.md
Last active July 7, 2024 05:27
Setting Nginx FastCGI response buffer sizes.
@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;
@collinjackson
collinjackson / nested_navigator.dart
Created November 28, 2017 20:07
Nested navigator example
import 'package:flutter/material.dart';
void main() {
runApp(new MaterialApp(
home: new Container(
color: Colors.white,
child: new MyAppHome(),
),
));
}