Skip to content

Instantly share code, notes, and snippets.

View wellwind's full-sized avatar

Mike Huang wellwind

View GitHub Profile
@wellwind
wellwind / index.html
Last active March 2, 2024 12:23
FaroWebSDK from CDN
<!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 = {
@wellwind
wellwind / main.js
Created December 3, 2023 13:54
Electron override headers
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,
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 };
@wellwind
wellwind / README.md
Last active January 21, 2024 03:26
Angular + VSCode 常用熱鍵
  • 下載 PDF 檔

  • 全部儲存:

    • [Win] ctrl + k, s
    • [Mac] cmd + option + s
  • 關閉檔案

@wellwind
wellwind / vue.md
Created February 20, 2019 14:43 — forked from oomusou/vue.md

Functional Vue Architecture

Sam Xiao, Feb.18, 2019

Web 所面臨的挑戰

後端 MVC

約在 2015 年,主流的 Web 開發架構仍以後端 MVC 為主:

@wellwind
wellwind / Angular 6 開發環境說明.md
Last active March 10, 2022 05:34 — forked from doggy8088/Angular 17 Dev Setup.md
Angular 6 開發環境說明

Angular 6 開發環境說明

為了能讓大家能夠順利的建立起 Angular 6 開發環境,以下是需要安裝的相關軟體與安裝步驟與說明。

[ 作業系統 ]

  • Windows 7 以上版本 (更新到最新 Service Pack 版本)
  • Mac OS X 10.6 以上版本

[ 套件管理器 ( Mac OS X Only ) ]

@wellwind
wellwind / rxjs_operators_by_example.md
Created October 12, 2017 14:38 — forked from btroncone/rxjs_operators_by_example.md
RxJS 5 Operators By Example
@wellwind
wellwind / README.md
Last active May 10, 2017 14:39
線上Angular讀書會 - Electron & NativeScript開發經驗分享 - Electron篇
@wellwind
wellwind / cloudSettings
Last active April 27, 2017 01:03
Visual Studio Code Sync Settings Gist
{"lastUpload":"2017-04-27T01:02:40.563Z","extensionVersion":"v2.6.2"}
  1. ng new nativescript-with-ng-cli
  2. cd nativescript-with-ng-cli
  3. rm -rf src
  4. tns create src --ng
  5. .gitignore
# NativeScript
src/node_modules
src/platforms