Skip to content

Instantly share code, notes, and snippets.


David Bernard davidB

Block or report user

Report or block davidB

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
davidB / Cargo.toml
Last active Dec 25, 2019
GKE access failed via reqwest
View Cargo.toml
name = "test_gke_cert"
version = "0.1.0"
authors = ["David Bernard"]
edition = "2018"
# See more keys and their definitions at
openssl = { version = "^0.10", features = ["vendored"] }
davidB / copyDeps.gradle
Last active Mar 19, 2018
a set of gradle snippet that are used via "apply from: 'http://....' "
View copyDeps.gradle
task copyDeps {
description 'copy runtime + testRuntime dependencies into lib/ dir to allow other tools (jme3-SDK, eclipse apt-processor) to use libs'
copy {
from configurations.runtime
into 'lib/main'
copy {
from (configurations.testRuntime - configurations.runtime)
into 'lib/test'

Keybase proof

I hereby claim:

  • I am davidb on github.
  • I am davidb31 ( on keybase.
  • I have a public key ASB5uSzY-x3rC_KOnyXDW4EkA6xVeqsD3ZV0d26k-jBkMAo

To claim this, I am signing this object:

View SecretSantaTest.dart
import 'package:propcheck/propcheck.dart';
import 'package:enumerators/combinators.dart' as c;
import 'package:enumerators/enumerators.dart' as e;
import 'package:unittest/unittest.dart';
//import 'package:unittest/compact_vm_config.dart';
import 'package:unittest/vm_config.dart';
class Name {
String first;
String last;
View build.log
warning: [options] bootstrap class path not set in conjunction with -source 1.6
/Users/davidb/work/oss/jmonkeyengine/jme3-examples/src/main/java/jme3test/app/ error: package does not exist ce =
/Users/davidb/work/oss/jmonkeyengine/jme3-examples/src/main/java/jme3test/app/ error: package does not exist;
/Users/davidb/work/oss/jmonkeyengine/jme3-examples/src/main/java/jme3test/app/ error: package does not exist[] c =
View dartemis_game_loop.dart
class Game {
var _world;
var _renderSystem;
var _gameLoop;
// create instance
var container = query("#game");
_world = new World();
davidB / AsyncSimpleLinkedList.dart
Last active Dec 14, 2015
SimpleLinkedList for dart, success on single-thread but Failed when used with Future, requestAnimationFrame, httpRequest.onLoadEnd,...
View AsyncSimpleLinkedList.dart
import 'dart:async';
class SimpleLinkedEntry {
SimpleLinkedEntry _next = null;
var _obj;
class AsyncSimpleLinkedList<E> {
Future<SimpleLinkedEntry> _head = new Future.immediate(null);
davidB /
Last active Oct 13, 2015
test uri of gist for run_on_jvm
public class HelloWorld {
public static void main(String args[]) {
String arg0 = args.length > 0 ? args[0] : "";
System.out.println("Hello World ! " + arg0);
#!/usr/bin/env python
#require PyGithub (pip install PyGithub)
import sys
import urllib2
import os
import os.path
from pipes import quote
You can’t perform that action at this time.