This file contains hidden or 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
| flowchart LR | |
| %% --- SAPIENT Nodes & Middleware --- | |
| subgraph "k8s cluster" | |
| MW["Middleware Service<br>(stores and fetches data in DB)"] | |
| DB["SQL Database<br>(Registration/Status/Detection/Alert/Task/CRIT)"] | |
| subgraph "Pub/Sub (API)" | |
| ADAPT["Report Ingest Service"] | |
| end |
This file contains hidden or 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
| package main | |
| import "fmt" | |
| type Node struct { | |
| Value any | |
| Next *Node | |
| Prev *Node | |
| } |
This file contains hidden or 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
| { | |
| "id": "d835f5d5-b3ec-47db-a4b9-0a7db4ac0a2c", | |
| "view_id": "c7880063-110c-45cd-8247-d131fc62c01a", | |
| "collection_id": "f5c6819a-5d75-40a9-ac0b-ca2a3196a7b4", | |
| "workspace_id": "4413dd90-1b8a-4e21-8a75-5b23f72a91f9", | |
| "record_type": "person", | |
| "state": "draft", | |
| "conflict_strategy": "update", | |
| "analysis": null, | |
| "column_mapping": [ |
This file contains hidden or 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
| /* | |
| * libdatachannel example web server | |
| * Copyright (C) 2020 Lara Mackey | |
| * Copyright (C) 2020 Paul-Louis Ageneau | |
| * | |
| * This program is free software; you can redistribute it and/or | |
| * modify it under the terms of the GNU General Public License | |
| * as published by the Free Software Foundation; either version 2 | |
| * of the License, or (at your option) any later version. | |
| * |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "github.com/mike1808/h264decoder/decoder" | |
| "gocv.io/x/gocv" | |
| // "os" | |
| "net" | |
| ) |
This file contains hidden or 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
| import React, { useContext, useEffect } from 'react'; | |
| import { bindActionCreators, compose } from 'redux'; | |
| import { connect } from 'react-redux'; | |
| import { withRouter } from 'react-router-dom'; | |
| import { isEqual, get, sortBy, forEach } from 'lodash'; | |
| import moment from 'moment'; | |
| import { NavConfigContext } from 'components/Nav/Nav'; | |
| import Linkify from 'linkifyjs/react'; | |
| import { | |
| Button, |
This file contains hidden or 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
| function display (seconds) { | |
| const format = val => `0${Math.floor(val)}`.slice(-2) | |
| const hours = seconds / 3600 | |
| const minutes = (seconds % 3600) / 60 | |
| return [hours, minutes, seconds % 60].map(format).join(':') | |
| } | |
| // The magic | |
| display([...document.querySelectorAll('.lesson-time')]. |
This file contains hidden or 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
| #################### | |
| # MyService | |
| #################### | |
| data "aws_ecs_task_definition" "myservice" { | |
| task_definition = "myservice-${var.environment}" | |
| } | |
| resource "aws_ecs_service" "myservice" { | |
| name = "myservice" | |
| cluster = "${var.name}-${var.environment}" |
This file contains hidden or 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
| SELECT b1.* | |
| FROM Bugs AS b1 | |
| JOIN (SELECT CEIL(RAND() * (SELECT MAX(bug_id) FROM Bugs)) AS rand_id) AS b2 | |
| ON (b1.bug_id = b2.rand_id); |
This file contains hidden or 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
| import 'package:flutter/material.dart'; | |
| import 'package:english_words/english_words.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Startup Name Generator', |
NewerOlder