Skip to content

Instantly share code, notes, and snippets.


Gavin Gilmour gaving

Block or report user

Report or block gaving

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 Dockerfile
FROM golang:1.13
WORKDIR /go/src/app
COPY . .
RUN make install
RUN ls
CMD ["/go/src/app/lab"]
View aliases.zsh
# find a file by filename
# fz .json fx
# fz .json "jq -C '.' | less -R"
fz() {
f $1 | fzf --bind "enter:execute(${2:-bat} {})" --preview "bat --color=always {}"
# find a file by content
# az ingest open
az() {
View ok.js
[ { date_of_birth: { order: 'asc' } } ]
#!/usr/bin/env python
# -*- coding: utf-8 -*-
Convenience utility functions for NiPyApi, not really intended for external use
from __future__ import absolute_import, unicode_literals
import logging
import json
import json
import sys
import traceback
import csv
from java.nio.charset import StandardCharsets
from import IOUtils
from import StreamCallback
from org.python.core.util import StringUtil
class PyStreamCallback(StreamCallback):
gaving /
Last active Feb 7, 2018

Could you introduce your app in a few sentences? What does it do, who is it for? Which platforms? Personal app or for company?

Lexi is an open source iOS app for displaying and dictating a random Greek Word of the Day, with history and favourite features.

It was developed as a learning project (primarily) and for my parents who would find a random word of the day interesting in their efforts to learn the

gaving / speak.js
Last active Jan 27, 2018
expo Speech SDK
View speak.js
_speak = (language, text) => {
const { pitch, rate } = this.state;
const start = () => {
this.setState({ inProgress: true });
const complete = () => {
this.state.inProgress && this.setState({ inProgress: false });
curl '' -H 'Pragma: no-cache' -H 'Origin: http://localhost:3000' -H 'Accept-Encoding: gzip, deflate' -H 'Accept-Language: en-US,en;q=0.9' -H 'User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36' -H 'Content-Type: application/json;charset=UTF-8' -H 'Accept: application/json, text/plain, */*' -H 'Cache-Control: no-cache' -H 'Referer: http://localhost:3000/?q=theft' -H 'Connection: keep-alive' --data-binary \@request.json --compressed
View vimium
# Insert your preferred key mappings here.
map h goBack
map l goForward
You can’t perform that action at this time.