Skip to content

Instantly share code, notes, and snippets.

Avatar

Don Olmstead donny-dont

  • Sony Interactive Entertainment
  • San Francisco, CA
  • Twitter @don_olmstead
View GitHub Profile
@donny-dont
donny-dont / 0001_Outside_Local_Volume
Created Apr 3, 2019
Building vcpkg in docker container
View 0001_Outside_Local_Volume
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 Oct 18, 2016
Drone Agent Rancher
View 0_docker-compose.yml
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 Apr 14, 2016 — forked from bradrydzewski/build_latest.go
Drone nightly build
View .drone.yml
# 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 Mar 30, 2016
Padding as a Dart RPC service
View api.dart
library string_pad.api;
import 'dart:async';
import 'dart:io';
import 'package:rpc/rpc.dart';
class PaddingResponse {
String result;
}
View lib_interop.dart
@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 Nov 16, 2012
Drag and drop issue
View gist:4089826
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 Sep 30, 2012
Proposed checked/unchecked for RadioButton, CheckBox
View gist:3808109
// 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;
View trace-drt-mock.txt
[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 Dec 13, 2011
An aligned allocator for placing SIMD types in std::vector
View aligned_allocator.cpp
#ifdef _WIN32
#include <malloc.h>
#endif
#include <cstdint>
#include <vector>
#include <iostream>
/**
* Allocator for aligned data.
View hash.cpp
#include <cstdint>
#include <cstdio>
#define INLINE __forceinline
template <typename HashFunction>
class StringHash
{
public:
template <std::size_t N>