Skip to content

Instantly share code, notes, and snippets.

View EmmanuelDemey's full-sized avatar

Emmanuel DEMEY EmmanuelDemey

View GitHub Profile

🎉 Elastic Weekly #2 🎉

Elasticsearch

This Week in Elasticsearch and Apache Lucene - 2020-01-10

Index and Snapshot Lifecycle Management, CONTAINS support for BKD-backed geoshapes is merged, The mappings editor, Cleaning up snapshot repositories, Mandatory soft-deletes in 8.0, Lucene 8.4, Speed up merging doc-values term dictionaries

https://www.elastic.co/blog/this-week-in-elasticsearch-and-apache-lucene-2020-01-10

export default () => console.log('From Github Gist');
{
"sessions": {
"2": {
"description": "",
"speakers": [
"1","3"
],
"tags": [
"Découverte"
],
<div>
<% for (var css in htmlWebpackPlugin.files.css) { %>
<link href="<%= htmlWebpackPlugin.files.css[css] %>" rel="stylesheet" />
<% } %>
<style>
body {
padding-top: 70px;
}
.hero-spacer {
interface Rule {
isValid(): boolean
apply(): void
}
function runRule(rule: Rule) {
}
runRule(<Rule> {
import { Test, TestingModule } from '@nestjs/testing';
import { GithubService } from '../github/github.service';
import { GitlabService } from '../gitlab/gitlab.service';
import { AppController } from '../app.controller';
import { Webhook } from '../webhook/webhook';
import { HttpModule, HttpService } from '@nestjs/common';
import { RulesModule } from '../rules/rules.module';
import { WebhookRunnable } from './webhook.runnable';
import { CommentIssueRunnable } from './commentIssue.runnable';
import { GitTypeEnum } from '../webhook/utils.enum';
import { Injectable, HttpService } from '@nestjs/common';
import { Rule } from './rule.class';
import { getRules } from './utils';
import { Runnable } from '../runnables/runnable';
import { Webhook } from '../webhook/webhook';
import { RuleResult } from './ruleResult';
import { readFileSync } from 'fs';
import { safeLoad } from 'js-yaml';
import { CommitMessageRule } from './commitMessage.rule';
import { BranchNameRule } from './branchName.rule';
// const webpack = require('webpack');
// const pluginsWebpack =
// process.env.NODE_ENV === 'production'
// ? [new webpack.NormalModuleReplacementPlugin(/aria\.js/, './aria.1.js')]
// : [];
module.exports = {
baseUrl: process.env.NODE_ENV === 'production' ? '' : '/',
import { Module, HttpModule, Provider, HttpService } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { TestInterceptor } from './test.interceptor';
import { MyRules } from './rules';
import { Rule } from './rules/MyRules';
const RulesValues = Object.values(require('./rules/index.ts')).map(
rule => rule as Rule,
);