Examples for how to create your own info panel, warning box and other decent looking notification in GitHub markdown.
All the boxes are single/two cell tables or two row tables.
| ❗ You have to read about this |
|---|
| // Prevents additional console window on Windows in release, DO NOT REMOVE!! | |
| #![cfg_attr(not(debug_assertions), windows_subsystem = "windows")] | |
| pub mod sidecar_lifecycle_service; | |
| use std::sync::Mutex; | |
| use tauri_plugin_log::LogTarget; | |
| use tauri::{Manager, State, WindowEvent}; | |
| use sidecar_lifecycle_service::SidecarLifeCycleService; |
| import DB from './DB' | |
| describe('DB', () => { | |
| let db: DB | |
| const data = { name: 'Tom Cook', type: ['person', 'CEO'] } | |
| beforeEach(() => { | |
| db = new DB() | |
| db.addNode('1', { name: 'Apple Computer Company', type: ['company', 'start-up'], founded: 'April 1, 1976' }) |
| function sortObject(object) { | |
| //Thanks > http://whitfin.io/sorting-object-recursively-node-jsjavascript/ | |
| if (!object) { | |
| return object; | |
| } | |
| const isArray = object instanceof Array; | |
| var sortedObj = {}; | |
| if (isArray) { | |
| sortedObj = object.map((item) => sortObject(item)); |
Fauna doesn't yet provide expiration/TTL for ABAC tokens, so we need to implement it ourselves.
3 javascript functions, each of which can be imported into your project or run from the command-line
using node path/to/script.js arg1 arg2 ... argN:
deploy-schema.js: a javascript function for creating supporting collections and indexes in your Fauna database.Fauna doesn't (yet?) provide guaranteed expiration/TTL for ABAC tokens, so we need to implement it ourselves if we care about it.
3 javascript functions, each of which can be imported into your project or run from the command-line
using node path/to/script.js arg1 arg2 ... argN:
deploy-schema.js: a javascript function for creating supporting collections and indexes in your Fauna database.| /** | |
| * server/dataSources/Auth.js | |
| * Auth implementation, it's not really a dataSource so it doesn't need to be here | |
| */ | |
| const { authenticate, createJwt } = require('../lib/passport'); | |
| const { ON_HTTPS } = require('../configs'); | |
| const ONE_MINUTE = 1000 * 60; | |
| const ONE_DAY = ONE_MINUTE * 60 * 24; | |
| const ONE_MONTH = ONE_DAY * 30; |
| # derived from http://wiki.ros.org/ROSberryPi/Installing%20ROS%20Kinetic%20on%20Raspberry%20Pi | |
| sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu stretch main" > /etc/apt/sources.list.d/ros-latest.list' | |
| wget https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -O - | sudo apt-key add - | |
| sudo apt-get update | |
| sudo apt-get upgrade |

InkscapeBatchConvert is an easy to use solution to quickly convert all files of a folder to another type without the need to open Inkscape. The program uses Windows Batch scripting and will only work on Windows.
Tested with Inkscape 1.0.x - 1.3.x ✅ (The last version that supports Inkscape 0.9.x can be found here)
_InkscapeBatchConvert.bat