This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from https://github.com/igraph/python-igraph/blob/master/docker/minimal/Dockerfile | |
FROM python:3.8-alpine AS build | |
RUN apk add --no-cache --update \ | |
make cmake gcc g++ libstdc++ git libxslt-dev libxml2-dev libc-dev \ | |
libffi-dev zlib-dev libxml2 zlib libtool autoconf automake \ | |
flex bison \ | |
&& rm -rf /var/cache/apk/* | |
# this can take a while |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# stage 1: build the binary | |
# we are using alpine Linux with the latest version of golang | |
FROM golang:1.15-alpine as golang | |
# first install some dependencies | |
# (we are using the static versions for each for them as we want these libraries included statically, not dynamically!) | |
# czmq requires libzmq which in turn requires libsodium | |
# on alpine Linux we also need to install some specific tools to build C and C++ programs | |
# libsodium also requires libuuid, which is included in util-linux-dev | |
RUN apk add --no-cache libzmq-static czmq-static czmq-dev libsodium-static build-base util-linux-dev |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If you get tired of typing public class... and then the main method in vim | |
then here is your solution. This also includes a skeleton for class documentation (author and version) that is compliant with Javadoc guidelines. | |
autocmd BufNewFile *.java | |
\ exe "normal O/**\r*\r* @author: \r* @version: \r* \r*/\r\rpublic class " . expand('%:t:r') . "\r public static void main(String[] args){\r\r }\r}\<Esc>1G" | |
Just insert it into your '.vimrc' and that's it! The next time you create a brand new Java file with 'vim *.java' you | |
will see a template. |