This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project:
| import numpy as np | |
| import pylab as pl | |
| x = np.random.uniform(1, 100, 1000) | |
| y = np.log(x) + np.random.normal(0, .3, 1000) | |
| pl.scatter(x, y, s=1, label="log(x) with noise") | |
| pl.plot(np.arange(1, 100), np.log(np.arange(1, 100)), c="b", label="log(x) true function") | |
| pl.xlabel("x") | |
| pl.ylabel("f(x) = log(x)") |
| FROM ruby:2.3.1 | |
| RUN apt-get update -qq && apt-get install -y build-essential libpq-dev nodejs | |
| # Configuring main directory | |
| RUN mkdir -p /app_name | |
| WORKDIR /app_name | |
| # Setting env up | |
| ENV RAILS_ENV='production' | |
| ENV RAKE_ENV='production' |
| #!groovy | |
| # Best of Jenkinsfile | |
| # `Jenkinsfile` is a groovy script DSL for defining CI/CD workflows for Jenkins | |
| node { | |
| } |
| #!groovy | |
| import groovy.json.JsonOutput | |
| import groovy.json.JsonSlurper | |
| /* | |
| Please make sure to add the following environment variables: | |
| HEROKU_PREVIEW=<your heroku preview app> | |
| HEROKU_PREPRODUCTION=<your heroku pre-production app> | |
| HEROKU_PRODUCTION=<your heroku production app> |
| import os | |
| import re | |
| import subprocess | |
| import requests | |
| GITLAB_ENDPOINT = os.environ["GITLAB_ENDPOINT"] | |
| GITLAB_TOKEN = os.environ["GITLAB_TOKEN"] |
| Vagrant.configure("2") do |config| | |
| servers=[ | |
| { | |
| :hostname => "database", | |
| :box => "centos/7", | |
| :ip => "192.168.56.101", | |
| :ssh_port => '2210' | |
| }, | |
| { | |
| :hostname => "webserver-1", |
This is inspired by A half-hour to learn Rust and Zig in 30 minutes.
Your first Go program as a classical "Hello World" is pretty simple:
First we create a workspace for our project: