npm i -D electronnpm i -D electron| using System; | |
| using System.Net.Http; | |
| using System.Security.Cryptography.X509Certificates; | |
| using System.Threading.Tasks; | |
| namespace GetExpirationDate { | |
| class Program { | |
| static void Main(string[] args) { | |
| var cert = GetServerCertificateAsync("https://www.google.com/").GetAwaiter().GetResult(); |
| // https://stackoverflow.com/questions/3219758/detect-changes-in-the-dom | |
| var observeDOM = (function() { | |
| var MutationObserver = | |
| window.MutationObserver || window.WebKitMutationObserver; | |
| return function(obj, callback) { | |
| if (!obj || !obj.nodeType === 1) return; // validation | |
| if (MutationObserver) { | |
| // define a new observer |
| import { Component, OnInit } from '@angular/core'; | |
| import { Subject, Observable } from 'rxjs'; | |
| @Component({ | |
| selector: 'app-root', | |
| templateUrl: './app.component.html', | |
| styleUrls: ['./app.component.css'] | |
| }) | |
| export class AppComponent implements OnInit { | |
| title = 'rxtest'; |
| { | |
| "workbench.iconTheme": "material-icon-theme", | |
| "window.zoomLevel": 0, | |
| "editor.fontFamily": "'DejaVu Sans Mono', Consolas, 'Courier New', monospace", | |
| "editor.minimap.enabled": false, | |
| "editor.quickSuggestions": { | |
| "other": true, | |
| "comments": true, | |
| "strings": true | |
| }, |
| class Sample{ | |
| async delete(id: string){ | |
| if((await swal({ | |
| title: '刪除?', | |
| type: 'warning', | |
| showCDancelButton: true | |
| })).value){ | |
| // do delete | |
| } | |
| } |
| USE [xxxx] | |
| DECLARE @DepartmentId uniqueidentifier; | |
| DECLARE @BannerId uniqueidentifier; | |
| DECLARE @FileId uniqueidentifier; | |
| DECLARE @StartTime datetime2(7); | |
| DECLARE @EndTime datetime2(7); | |
| SET @DepartmentId = '009feddb-6558-46f9-9d4b-fd9e120df2d8'; | |
| SET @BannerId = '0aa6eeb6-2fa9-4398-9459-f68db3dd7f60'; | |
| SET @StartTime = '2018/7/25'; |
| { | |
| "version":"1.0", | |
| "name":"Template Name", | |
| "description":"樣板說明", | |
| "author":"作者", | |
| "pages":[ | |
| { | |
| "name":"共用Config", | |
| "path":".*", | |
| "config": [ |
| <div id="canvas"> | |
| <h1 class="title">Light me up!<span class="sub">drag the plug</span></h1> | |
| <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 960 560"> | |
| <defs> | |
| <style> | |
| <![CDATA[ | |
| .cls-1{fill:#0a0a0a;}.cls-2{fill:#fff;}.cls-3{fill:#f8f8f8;}.cls-4{fill:#fefefe;}.cls-5{fill:none;stroke:#000;stroke-miterlimit:10;stroke-width:8px;}.cls-6{fill:#010101;}.cls-7{fill:#030303;} |
| # 引入AspNetCore執行階段最新版 | |
| FROM microsoft/aspnetcore-build:latest | |
| # 輸出端口80 | |
| EXPOSE 80 | |
| # 環境變數 | |
| ENV DLL_FILENAME=YourAppDllFileName | |
| # 目錄 |