(assuming project is hosted on GitLab)
- Enable shared runners by going to "Settings" > "Runners".
- Add
.gitlab-ci.ymlwith the following content:
image: node:6.9.1
pages:
artifacts:
paths: | # HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles. | |
| # TYPE go_gc_duration_seconds summary | |
| go_gc_duration_seconds{quantile="0"} 0 | |
| go_gc_duration_seconds{quantile="0.25"} 0 | |
| go_gc_duration_seconds{quantile="0.5"} 0 | |
| go_gc_duration_seconds{quantile="0.75"} 0 | |
| go_gc_duration_seconds{quantile="1"} 0 | |
| go_gc_duration_seconds_sum 0 | |
| go_gc_duration_seconds_count 0 | |
| # HELP go_goroutines Number of goroutines that currently exist. |
| package weakmap | |
| import ( | |
| "reflect" | |
| "runtime" | |
| "sync" | |
| ) | |
| type Key = interface {} | |
| type Value = interface {} |
| #include <malloc.h> | |
| #include <string.h> | |
| #include <stdio.h> | |
| #define for_each(i, list) \ | |
| for(i = list; \ | |
| i != NULL; \ | |
| i = i->next) | |
| struct lista { |
| // Usage: | |
| // 1. ./mvnw dependency:tree -Dverbose | kotlinc -script mvn-confict-resolver.kts | |
| // 2. update pom.xml's | |
| // <dependencyManagement><dependencies><!-- INSERT 1. OUTPUT HERE --></dependencies></dependencyManagement> | |
| import java.util.Scanner | |
| val input = Scanner(System.`in`).useDelimiter("\\A").next() | |
| println( | |
| Regex("[(]([\\w.-]+:[\\w.-]+:jar:[\\w.-]+):[^ ]+ - omitted for conflict with ([\\w.-]+)") |
| const amqp = require('amqplib/callback_api') | |
| const assert = require('assert') | |
| amqp.connect((err, con) => { | |
| assert.ifError(err) | |
| console.log('connected') | |
| con.createChannel((err, ch) => { | |
| assert.ifError(err) | |
| ch.prefetch(1, false) | |
| ch.assertQueue('Q', {durable: false, autoDelete: true, maxLength: 1}, (err) => { |
| <!doctype html> | |
| <title></title> | |
| <meta name="description" content=""> | |
| <div id="app"></div> | |
| <script src="https://unpkg.com/vue"></script> | |
| <script src="https://unpkg.com/vue-document"></script> | |
| <script> | |
| Vue.use(VueDocument, { | |
| injector: [VueDocument.titleInjector, VueDocument.metaInjector] | |
| }) |
(assuming project is hosted on GitLab)
.gitlab-ci.yml with the following content:image: node:6.9.1
pages:
artifacts:
paths: | <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" | |
| content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>canvas-text-opentypejs-shim :: fabric</title> | |
| </head> | |
| <body> |
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" | |
| content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0"> | |
| <meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
| <title>canvas-text-opentypejs-shim</title> | |
| </head> | |
| <body> |
| /* | |
| Script to download all google fonts and name them with FVD-based filenames | |
| - e.g. Rock_Salt.n4.ttf, Open_Sans.i7.ttf | |
| */ | |
| var https = require('https'); | |
| var http = require('http'); | |
| var fs = require('fs'); | |
| var async = require('async'); | |
| var key = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; // google fonts api server-only key |