Skip to content

Instantly share code, notes, and snippets.

Patrick guybrush

Block or report user

Report or block guybrush

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
View index.html
<!DOCTYPE html>
<meta name="viewport" content="width=device-width,initial-scale=1">
<div id="chart"></div>
<button id="addSeries">add series</button>
<button id="rmSeries">remove series</button>
View Dockerfile
FROM ubuntu:16.04 as builder
RUN set -ex && \
apt-get update && \
apt-get --no-install-recommends --yes install \
ca-certificates \
cmake \
g++ \
make \
pkg-config \
guybrush / face-cam.html
Last active Jun 28, 2018
face-detection cam-example
View face-cam.html
<!DOCTYPE html>
<meta charset="utf-8">
#container {position:relative;}
#overlay {position:absolute; top:0; left:0;}
View gist:bb012ce3f7f4ae4090a3243bad455065
pub fn pack_to(&mut self, chunk: &Chunk, buf: &mut Vec<u8>) {
let pow2_16 = 2u32.pow(16);
let mut last_v: u8 =[0];
let mut i = 1;
let mut r = 1;
let mut v: u8 = 0;
let mut i_8 = 0;
let mut i_16 = 0;
let mut i_32 = 0;
let mut i_16 = 0;

Keybase proof

I hereby claim:

  • I am guybrush on github.
  • I am guybrush ( on keybase.
  • I have a public key ASDJmQzO9FVoTT8IWHdW1S5j54KHaNhUR5Tt3zDM5bSn7Ao

To claim this, I am signing this object:

guybrush / index.js
Last active May 14, 2016
requirebin sketch
View index.js
const mat4 = require('gl-mat4')
const bunny = require('bunny')
const fit = require('canvas-fit')
const normals = require('angle-normals')
const canvas = document.body.appendChild(document.createElement('canvas'))
const regl = require('regl')(canvas)
const camera = require('canvas-orbit-camera')(canvas)
window.addEventListener('resize', fit(canvas), false)
guybrush / index.js
Created Apr 19, 2016
requirebin sketch
View index.js
// This example is a simple demonstration of how to use regl.
// The default method exposed by the module wraps a canvas element
var regl = require('regl')()
// This clears the color buffer to black and the depth buffer to 1
color: [0, 0, 0, 1],
depth: 1
echo "
this script
1) creates a configmap: test-configmap-configmap
2) creates a pod: test-configmap-busybox which mounts the configmap as volume
3) checks the modification-time of the file inside the volume -> m1
4) changes the data of test-configmap-configmap and waits until the content
of the file changes
View index.html
<button id="btn-enable">enable</button>
<button id="btn-disable">disable</button>
<iframe id="iframe" sandbox style="height:80%; width:100%;"></iframe>
var src = ''
var iframe = document.getElementById('iframe')
View nginx-rc.yaml
apiVersion: v1
kind: ReplicationController
name: nginx
namespace: default
name: nginx
replicas: 1
You can’t perform that action at this time.