Skip to content

Instantly share code, notes, and snippets.

View donny-dont's full-sized avatar

Don Olmstead donny-dont

  • Sony Interactive Entertainment
  • San Francisco, CA
  • X @don_olmstead
View GitHub Profile
@donny-dont
donny-dont / 0001_Outside_Local_Volume
Created April 3, 2019 18:07
Building vcpkg in docker container
PS C:\> Expand-Archive .\vcpkg.zip -DestinationPath C:\vcpkg
PS C:\> Set-Location C:\vcpkg\vcpkg-master\
PS C:\vcpkg\vcpkg-master> & .\scripts\bootstrap.ps1
Building vcpkg.exe ...
pch.cpp
archives.cpp
checks.cpp
chrono.cpp
@donny-dont
donny-dont / 0_docker-compose.yml
Last active October 18, 2016 11:50
Drone Agent Rancher
drone:
image: drone/drone:0.5.0
environment:
DRONE_SERVER: ${DRONE_SERVER}
DRONE_TOKEN: ${DRONE_TOKEN}
DRONE_DEBUG: ${DRONE_DEBUG}
DRONE_BACKOFF: ${DRONE_BACKOFF}
DRONE_PLUGIN_PULL: ${DRONE_PLUGIN_PULL}
DRONE_PLUGIN_NAMESPACE: ${DRONE_PLUGIN_NAMESPACE}
DRONE_PLUGIN_WHITELIST: ${DRONE_PLUGIN_WHITELIST}
@donny-dont
donny-dont / .drone.yml
Last active April 14, 2016 23:42 — forked from bradrydzewski/build_latest.go
Drone nightly build
# Build
build:
image: golang:1.5
environment:
- GO15VENDOREXPERIMENT=1
- GOOS=linux
- GOARCH=amd64
- CGO_ENABLED=0
commands:
- go get
@donny-dont
donny-dont / api.dart
Created March 30, 2016 20:23
Padding as a Dart RPC service
library string_pad.api;
import 'dart:async';
import 'dart:io';
import 'package:rpc/rpc.dart';
class PaddingResponse {
String result;
}
@JS('navigator')
library interop;
import 'dart:js' as js;
import 'package:js/js.dart';
// Tried using this and Function for onmessage
typedef void SystemMessage(js.JsObject value);
@JS()
@donny-dont
donny-dont / gist:4089826
Created November 16, 2012 18:45
Drag and drop issue
import 'dart:html';
void main() {
query("#text")
..text = "Click me!";
// Works when compiled to JS
query("#container")
..on.drop.add(reverseText);
}
@donny-dont
donny-dont / gist:3808109
Created September 30, 2012 18:40
Proposed checked/unchecked for RadioButton, CheckBox
// Copyright (c) 2012, John Evans
// https://github.com/prujohn/Buckshot
// See LICENSE file for Apache 2.0 licensing information.
/**
* A button that only allows a single selection when part of the same group. */
class RadioButton extends Control
{
FrameworkProperty valueProperty, groupNameProperty;
@donny-dont
donny-dont / trace-drt-mock.txt
Created September 18, 2012 21:36
Stack trace DRT-mock
[3857/25598] dom/svg/level3/xpath/XPathResult_invalidIteratorState_NUMBER_TYPE.svg timed out unexpectedly
[3858/25598] dom/xhtml/level2/events/dispatchEvent02.xhtml timed out unexpectedly
[3859/25598] canvas/philip/tests/2d.path.stroke.skew.html timed out unexpectedly
[3860/25598] http/tests/misc/url-in-utf32le.html timed out unexpectedly
[3861/25598] css2.1/20110323/margin-applies-to-015.htm timed out unexpectedly
[3862/25598] dom/xhtml/level1/core/hc_attrlastchild.xhtml timed out unexpectedly
[3863/25598] dom/html/level2/html/HTMLElement39.html timed out unexpectedly
[3864/25598] css2.1/t170602-bdr-conflct-w-35-d.html timed out unexpectedly
[3865/25598] dom/svg/level3/xpath/XPathResult_invalidIteratorState_ORDERED_NODE_ITERATOR_TYPE.svg timed out unexpectedly
[3866/25598] dom/xhtml/level2/events/dispatchEvent03.xhtml timed out unexpectedly
@donny-dont
donny-dont / aligned_allocator.cpp
Created December 13, 2011 09:11
An aligned allocator for placing SIMD types in std::vector
#ifdef _WIN32
#include <malloc.h>
#endif
#include <cstdint>
#include <vector>
#include <iostream>
/**
* Allocator for aligned data.
@donny-dont
donny-dont / hash.cpp
Created October 28, 2011 07:40
Templated hash
#include <cstdint>
#include <cstdio>
#define INLINE __forceinline
template <typename HashFunction>
class StringHash
{
public:
template <std::size_t N>