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
asyncapi: 2.4.0 | |
info: | |
title: Eck service | |
version: 1.0.0 | |
description: Eck service events | |
channels: | |
domain-users.account.custom-fields.updated: | |
subscribe: | |
tags: | |
- name: eck-service |
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
{ | |
"openapi": "3.0.0", "paths": { | |
"\/reindex": { | |
"post": { | |
"parameters": [], | |
"summary": "Reindex portal.", | |
"responses": {"200": []}, | |
"tags": [{"name": "portal-index", "description": "| "}] | |
} | |
}, |
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
{ | |
"paths": { | |
"/commit": { | |
"post": { | |
"requestBody": { | |
"content": { | |
"application/json": { | |
"schema": { | |
"type": "object", | |
"properties": { |
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
swagger: "2.0" | |
info: | |
description: "" | |
version: "1.0.0" | |
title: "Policy API" | |
host: "api.go1.co" | |
basePath: "/policy" | |
tags: | |
- name: "Policy Item" | |
description: "Policy API" |
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
#### Why we should move to Kafka | |
* Stream data from many of data source (mysql, oracle) - Connector | |
* Many of big company being use it. (Better for developer career) | |
* Support streaming that enables transform data, or process data with pipeline | |
* Very simple just has `Topic` | |
* Messages are stored that enables debugging or simple event sourcing | |
* A new approach to deal with big data when company growing with more data | |
* MapReduce | |
* DataPipeline |
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
program ageofuser(input,output); | |
var | |
i:integer; | |
n:integer; | |
begin | |
writeln('Please type n'); | |
readln(n); | |
i := 1; | |
while i < n do |
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
service: "sadiavasio" | |
provider: "aws" | |
functions: | |
sadiavas: | |
handler: "index.graphql" | |
include: | |
- blog/ | |
events: | |
- http: | |
path: "blog/graphql" |
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
<?php | |
/** | |
* Get entities references of EntityDrupalWrapper | |
* | |
* For example: we have entity A with ref to B (on field_ref_b) and on entity B we have other ref to C (on field_ref_c) | |
* | |
* - Let get all entities B that entity A1 referenced | |
* get_entities_references($w_a, 'field_ref_b'); | |
* - Let get all entities C that entity A1 referenced |
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 (isset($page['widgets'])) { | |
$items = array(); | |
// Get blocks in widgets region. | |
foreach ($page['widgets'] as $context_block) { | |
if (isset($context_block['#block']) && $block = $context_block['#block']) { | |
$block_html_id = drupal_html_id('lms-block-' . $block->module . '-' . $block->delta); | |
$block_html_id = substr($block_html_id, 4); | |
$items[] = l($block->subject, '', array('fragment' => $block_html_id, 'external' => TRUE)); | |
} | |
} |
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
$view = new view(); | |
$view->name = 'tutor_profile'; | |
$view->description = ''; | |
$view->tag = 'default'; | |
$view->base_table = 'users'; | |
$view->human_name = 'Tutor profile'; | |
$view->core = 7; | |
$view->api_version = '3.0'; | |
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */ |
NewerOlder