Skip to content

Instantly share code, notes, and snippets.

View tylerchr's full-sized avatar

Tyler Christensen tylerchr

View GitHub Profile
@tylerchr
tylerchr / Dockerfile
Created July 21, 2018 01:37
Compiling V8 for alpine (link against musl)
#
# Building V8 for alpine is a real pain. We have to compile from source, because it has to be
# linked against musl, and we also have to recompile some of the build tools as the official
# build workflow tends to assume glibc by including vendored tools that link against it.
#
# The general strategy is this:
#
# 1. Build GN for alpine (this is a build dependency)
# 2. Use depot_tools to fetch the V8 source and dependencies (needs glibc)
# 3. Build V8 for alpine
@tylerchr
tylerchr / Span.php
Created December 18, 2017 17:25
Stack management example using opentracing-php API
<?php
namespace Tracing;
final class Span implements OTSpan
{
private $span;
function __construct($operationName, $tags = null)
{

Keybase proof

I hereby claim:

  • I am tylerchr on github.
  • I am tylerchr (https://keybase.io/tylerchr) on keybase.
  • I have a public key whose fingerprint is FB82 8C64 0D46 49FC F169 2738 ABE5 025B B868 9C0A

To claim this, I am signing this object:

var paren = function(n)
{
var arr = [],
decodeParens = function(code, len)
{
for (var i=0; i<len; ++i)
var open = (((code & (0x1 << i)) >> i) ? '(' : ')') + (open || '');
return open;
};