View examples.md

config.yml:

storageClusters:
  clusterA:
    dataStorage:
      - address: localhost:6379
    metaDataStorage:
      address: localhost:6379
  clusterB:
View client.go
package main
import (
"log"
"os"
"strings"
"golang.org/x/net/proxy"
)
View max_difference.js
var _ = require("lodash");
var assert = require('assert');
// maxDifferenceOriginal computes the max difference z = x - y,
// where x.index > z.index, and `!EwA(w != z ^ w > z)`
// input: {a: 'input array containing all numbers'}
function maxDifferenceOriginal(a) {
// can only work with arrays
if(!_.isArray(a)) {
return -1;
View keybase.md

Keybase proof

I hereby claim:

  • I am glendc on github.
  • I am glendc (https://keybase.io/glendc) on keybase.
  • I have a public key whose fingerprint is 7AE8 A55A 268C D623 FA29 DA67 DC93 FACE B4A2 D50D

To claim this, I am signing this object:

View exploor-resizer.sh
#!/bin/bash
if [ "$#" -lt 1 ]; then
TARGET_DIR="."
else
TARGET_DIR="$1"
fi
if [ "$#" -lt 2 ]; then
ROOT_DIR="$HOME/exploor/images"
View get-quine-relay.sh
curl -o quine.f90 https://gist.githubusercontent.com/GlenDC/11dadd47137b2c1a5587/raw/ && \
alias _fortran='(gfortran -o quine quine.f90 && ./quine)' && \
alias _fotopy='(_fortran > quine.py && rm -f quine)' && \
alias _pytofo='(python quine.py > quine.f90)' && \
_fotopy && _pytofo && _fotopy && _pytofo && _fortran
View get-quine.sh
curl -o quine.py 'https://gist.githubusercontent.com/GlenDC/5ec5528c7fcac5468715/raw/' \
&& python quine.py | python | python
View quine.f90
PROGRAM QUINE
IMPLICIT NONE
WRITE(*, '(A)') '#!/usr/bin/python'
WRITE(*, '(A)') ''
WRITE(*, '(A)') 'sq = chr(39) ; dq = chr(34)'
WRITE(*, '(A)') 'ind = lambda str: '' '' + str'
WRITE(*, '(A)') 'sqe = lambda str: sq + str + sq'
WRITE(*, '(A)') 'dqe = lambda str: dq + str + dq'
WRITE(*, '(A)') ''
View quine.f90
PROGRAM QUINE
CHARACTER(LEN=*), PARAMETER :: Quote = Char(39)
CHARACTER(LEN=86), DIMENSION(11) :: Source
INTEGER :: i ; CHARACTER(LEN=2) :: Line
Source( 1) = 'PROGRAM QUINE'
Source( 2) = ' CHARACTER(LEN=*), PARAMETER :: Quote = Char(39)'
Source( 3) = ' CHARACTER(LEN=86), DIMENSION(11) :: Source'
Source( 4) = ' INTEGER :: i ; CHARACTER(LEN=2) :: Line'
Source( 5) = ' DO i=1, 4 ; WRITE(*,*) TRIM(Source(i)) ; END DO'
Source( 6) = ' DO i=1, 11'
View quine.py
#!/usr/bin/python
quote = chr(34)
source = [
"#!/usr/bin/python",
"",
"quote = chr(34)",
"source = [",
" ]",
"",