View 1. pattern_SecureDML.cls
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
/** | |
* @author Charles Naccio | |
* @date 5/31/2019 | |
* | |
* @group Security | |
* @group-content ../../ApexDocContent/Security.htm | |
* | |
* @description A unit of work DML interface for executing secure database write operations | |
* based on user level permissions. | |
*/ |
View Regular.csproj
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetFramework>netstandard2.0</TargetFramework> | |
</PropertyGroup> | |
</Project> |
View X.Y.Z.Sources.csproj
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
<Project> | |
<Import Project="Sdk.props" Sdk="Microsoft.NET.Sdk" /> | |
<PropertyGroup> | |
<TargetFramework>netstandard1.0</TargetFramework> | |
<IsPackable>true</IsPackable> | |
<IncludeBuildOutput>false</IncludeBuildOutput> | |
<ContentTargetFolders>contentFiles</ContentTargetFolders> | |
<DisableImplicitFrameworkReferences>true</DisableImplicitFrameworkReferences> |
View Directory.Build.props
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
<Project> | |
<PropertyGroup Condition=" '$(ABC)'=='true' "> | |
<OutputType>Exe</OutputType> | |
</PropertyGroup> | |
</Project> |
View gist:bc402005fd352c8cf446d2ecfe133450
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
C:\0>yarn test | |
yarn test v0.18.1 | |
$ jest --config=exercises/jest.config.json | |
FAIL exercises\01_block-scoping.test.js | |
● can be used in place of `var` | |
ReferenceError: bandName is not defined | |
at Object.<anonymous>.test (exercises\01_block-scoping.test.js:5:10) |
View gist:42a8f62ce28fe83bd770
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
using Microsoft.CodeAnalysis; | |
using Microsoft.CodeAnalysis.CSharp; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
namespace MetaOrleans | |
{ | |
class Program |
View gist:d7585632651b3f3cd232
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
PM> Install-Package microsoft.Extensions.DependencyInjection.Abstractions -pre | |
Attempting to gather dependencies information for package 'microsoft.Extensions.DependencyInjection.Abstractions.1.0.0-rc1-final' with respect to project 'DINugetTest', targeting '.NETFramework,Version=v4.5' | |
Attempting to resolve dependencies for package 'microsoft.Extensions.DependencyInjection.Abstractions.1.0.0-rc1-final' with DependencyBehavior 'Lowest' | |
Resolving actions to install package 'microsoft.Extensions.DependencyInjection.Abstractions.1.0.0-rc1-final' | |
Resolved actions to install package 'microsoft.Extensions.DependencyInjection.Abstractions.1.0.0-rc1-final' | |
Adding package 'System.ComponentModel.4.0.1-beta-23516' to folder 'W:\Workspaces\Dev\DINugetTest\packages' | |
Added package 'System.ComponentModel.4.0.1-beta-23516' to folder 'W:\Workspaces\Dev\DINugetTest\packages' | |
Added package 'System.ComponentModel.4.0.1-beta-23516' to 'packages.config' | |
Successfully installed 'System.ComponentModel 4.0.1-beta-23516' to DINugetTest |
View gist:2fa74ee35db0b52d6a1b
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
I need to construct the following JSON in C#, it will be sent on the wire afterwards: | |
{ | |
"custom_collection": { | |
"title": "IPods", | |
"collects": [ | |
{ | |
"product_id": 921728736 | |
} | |
] |
View cleanData override
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
If you're using Angular 1.2+, jQuery 2.1+, jQuery UI 1.x+ together, you can easily get a weird error like this: | |
TypeError: undefined is not a function | |
at replaceWith (http://myapp.com/app/bower_components/angular/angular.js:7289:26) | |
at applyDirectivesToNode (http://myapp.com/app/bower_components/angular/angular.js:6518:13) | |
at compileNodes (http://myapp.com/app/bower_components/angular/angular.js:6167:15) | |
at compileNodes (http://myapp.com/app/bower_components/angular/angular.js:6179:15) | |
at compile (http://myapp.com/app/bower_components/angular/angular.js:6107:15) | |
at http://myapp.com/app/bower_components/angular/angular.js:1506:11 | |
at Scope.$eval (http://myapp.com/app/bower_components/angular/angular.js:12903:28) |
View Add-New-Config
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
$solution = Get-Item DTE:\Solution | |
$solution.SolutionBuild.SolutionConfigurations.Add("My New Config", "Debug", $True) |
NewerOlder