dotnet new sln
dotnet new sln --name MyForms.ContentHUB
dotnet new classlib -n PROJECT_NAME -o PROJECT_OUTPUT_DIRECTORY
dotnet new classlib -n my-forms.management.repositories -o ./my-forms.management.repositories
| openssl req -x509 -newkey rsa:4096 -keyout private-key.pem -out cert.pem -sha256 -days 365 | |
| openssl rsa -in private-key.pem > private-rsa-key.pem |
| # See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/javascript-node/.devcontainer/base.Dockerfile | |
| # [Choice] Node.js version: 16, 14, 12 | |
| ARG VARIANT="16-buster" | |
| FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT} | |
| # [Optional] Uncomment this section to install additional OS packages. | |
| # RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \ | |
| # && apt-get -y install --no-install-recommends <your-package-list-here> |
| function getDiff(baseTranslation, targetTranslation) { | |
| var result = {}; | |
| Object.keys(baseTranslation).forEach((key) => { | |
| var obj = targetTranslation[key]; | |
| if (!obj || (typeof(obj) === 'string' && JSON.stringify(obj) === JSON.stringify(baseTranslation[key]))) { | |
| result[key] = baseTranslation[key]; | |
| } else if (typeof(obj) === 'object') { | |
| const o = getDiff(baseTranslation[key], obj); | |
| if (Object.keys(o).length > 0) { | |
| result[key] = o; |
| private Setting GetSetting<T>(Expression<Func<T>> expr) | |
| { | |
| var me = expr.Body as MemberExpression; | |
| if (me == null) | |
| throw new ArgumentException("Invalid expression. It should be MemberExpression"); | |
| var func = expr.Compile(); //This converts our expression back to a Func | |
| var value = func(); //Run the func to get the setting value | |
| return new Setting(me.Member.Name,value); | |
| } |
| UIColor(red: 0xFB / 0xFF, | |
| green: 0x8C / 0xFF, | |
| blue: 0x00 / 0xFF, | |
| alpha: 1) // #FB8C00 |
| // | |
| // RoundedCornerView.swift | |
| // RoundedCornerShadowViewTest | |
| // | |
| // Created by Greg Lecki on 15/03/2019. | |
| // Copyright © 2019 Greg Lecki. All rights reserved. | |
| // | |
| import UIKit |