Skip to content

Instantly share code, notes, and snippets.

View luna-duclos's full-sized avatar

Luna Duclos luna-duclos

  • Atmoz
  • Stockholm, Sweden
View GitHub Profile
func Register(proto Interface) {
// Type detection
refType := reflect.TypeOf(proto)
if refType.Kind() == reflect.Ptr {
refType = refType.Elem()
}
// Setup js.M object
m := js.M{}
m["is"] = proto.TagName()
<!DOCTYPE html>
<html>
<head>
<script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
<link rel="import" href="name-tag.html">
<script src="gopherjs_polymer_playground.js"></script>
</head>
<body>
<name-tag></name-tag>
</body>
'use strict';
// Include Gulp & tools we'll use
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var del = require('del');
var exec = require('child_process').exec;
var merge = require('merge-stream');
var path = require('path');

Keybase proof

I hereby claim:

  • I am PSG-Luna on github.
  • I am luna (https://keybase.io/luna) on keybase.
  • I have a public key whose fingerprint is 4AF4 D216 B8CF E444 5FD5 2E29 3366 E3D1 7FEA A218

To claim this, I am signing this object:

@luna-duclos
luna-duclos / k8s_storage.go
Last active August 22, 2016 05:31
Kubernetes secret based storage for caddy. This was an early draft, repo can be found at: https://github.com/PalmStoneGames/caddy-kubernetes-storage
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
package caddy_k8s_storage
import (
"encoding/base64"
"fmt"
"io/ioutil"
#!/usr/bin/env bash
# Resolve the base directory, source vars.sh to setup the environment, then reset the BASEDIR as it'll overwrite it
BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
mkdir -p $BASEDIR/build
source $BASEDIR/../../vars.sh
BASEDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Run the actual useful build related commands
set -x

Keybase proof

I hereby claim:

  • I am luna-duclos on github.
  • I am luna (https://keybase.io/luna) on keybase.
  • I have a public key whose fingerprint is 4AF4 D216 B8CF E444 5FD5 2E29 3366 E3D1 7FEA A218

To claim this, I am signing this object: