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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>My App</title> | |
<script> | |
(async function () { | |
const faroLoaded = () => { | |
const faro = window.GrafanaFaroWebSdk.faro; | |
const { trace, context } = faro.api.getOTEL(); | |
const input = { |
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
const { protocol, app, BrowserWindow } = require("electron"); | |
const { readFileSync, statSync } = require("fs"); | |
const mime = require("mime-types"); | |
const createWindow = async () => { | |
const win = new BrowserWindow({ | |
width: 1920, | |
height: 1080, | |
webPreferences: { | |
webviewTag: 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
class MyTrace { | |
private spanMap = new Map<string, Span>(); | |
private readonly tracerName = 'my_tracer'; | |
constructor(private otel: OTELApi) {} | |
createSingleRunSpan(spanName: string) { | |
const span = this.otel.trace.getTracer(this.tracerName).startSpan(spanName); | |
const end = () => span.end(); | |
return { span, end }; |
A complete list of RxJS 5 operators with easy to understand explanations and runnable examples.
- Demo: https://github.com/wellwind/8ComicDownloaderElectron
- Reference: https://electron.atom.io/docs/tutorial/quick-start/
ng new electron-demo
cd electron-demo
- 調整
.angular-cli.json
中的assets"assets": [ { "glob": "main.js",
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
{"lastUpload":"2017-04-27T01:02:40.563Z","extensionVersion":"v2.6.2"} |
ng new nativescript-with-ng-cli
cd nativescript-with-ng-cli
- rm -rf src
tns create src --ng
- .gitignore
# NativeScript
src/node_modules
src/platforms
NewerOlder