Skip to content

Instantly share code, notes, and snippets.

View jobwat's full-sized avatar

Jo Boiteau jobwat

  • Servian
  • Sydney
View GitHub Profile
@jobwat
jobwat / 0_reuse_code.js
Created January 11, 2016 03:37
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jobwat
jobwat / consul.lua
Last active July 21, 2018 20:47 — forked from gmr/consul.lua
Dynamic Nginx upstream nodes using Consul
module("resty.consul", package.seeall)
_VERSION = '0.1.0'
function service_nodes(service)
local http = require "resty.http"
local json = require "cjson"
local hc = http:new()
local upstream = ""
@jobwat
jobwat / build.gradle
Last active December 13, 2021 07:54 — forked from twocity/build.gradle
custom versionName with versionCode + timestamp, in release apk filename
android {
....
defaultConfig {
...
versionCode 3
versionName versionCode + "-" + getTimestamp()
}
...
...
applicationVariants.all { variant ->