This file contains hidden or 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
global with sharing class TestController { | |
@RemoteAction | |
global static List<WorkOrder> getWorkOrders(){ | |
return [SELECT Id,WorkOrderNumber FROM WorkOrder]; | |
} | |
} |
This file contains hidden or 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
"scripts": { | |
"ng": "ng", | |
"start": "ng serve", | |
"build": "ng build", | |
"test": "ng test", | |
"lint": "ng lint", | |
"e2e": "ng e2e", | |
"dev": "ng build && gulp rm && gulp build-dev-package && gulp deploy && ng serve", | |
"prod": "ng build --prod && gulp rm && gulp build-package && gulp deploy" | |
}, |
This file contains hidden or 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
from flask import Flask | |
app=Flask(__name__) | |
@app.route("/") | |
def home(): | |
return "Hello, World!" | |
This file contains hidden or 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
-- Create linked server | |
DECLARE @database VARCHAR(200) = DB_NAME(); | |
EXECUTE sp_addlinkedserver @server = 'Logging', | |
@srvproduct = ' ', | |
@provider = 'SQLNCLI', | |
@datasrc = @@SERVERNAME, | |
@catalog = @database |
This file contains hidden or 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
CREATE PROCEDURE sp_log(@errNumber int, | |
@errSeverity int, | |
@errState int, | |
@errProcedure nvarchar(128), | |
@errLine int, | |
@errMessage VARCHAR(4000)) AS | |
BEGIN | |
INSERT INTO ErrorLog SELECT @errNumber,@errSeverity,@errState,@errProcedure,@errLine,@errMessage,getdate(); | |
END; |
This file contains hidden or 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
-- Enable RPC calls | |
EXEC sp_serveroption Logging, 'RPC OUT', 'TRUE' | |
-- disable distributed transaction | |
EXEC sp_serveroption Logging, 'remote proc transaction promotion', 'FALSE' |
This file contains hidden or 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
USE [Unicorn Paddock] | |
GO | |
/****** Object: StoredProcedure [dbo].[sp_test] Script Date: 21/06/2019 11:57:08 AM ******/ | |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
ALTER PROCEDURE [dbo].[sp_test] | |
AS |
This file contains hidden or 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
set ssl_starttls=yes | |
set ssl_force_tls=yes | |
set imap_user = '[email protected]' | |
set imap_pass = 'password_here' | |
set from= $imap_user | |
set use_from=yes | |
set realname='Your_Name' | |
set folder = imaps://imap-mail.outlook.com:993 | |
set spoolfile = "+INBOX" |
This file contains hidden or 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 System; | |
using System.Collections.Generic; | |
namespace ConsoleApp4 | |
{ | |
internal class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
Console.WriteLine(F(21)); |
This file contains hidden or 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
// This method gets called by the runtime. Use this method to add services to the container. | |
public void ConfigureServices(IServiceCollection services) | |
{ | |
services | |
.AddMvc() | |
.SetCompatibilityVersion(CompatibilityVersion.Version_2_2) | |
.AddFluentValidation(fv => fv.RegisterValidatorsFromAssemblyContaining<Startup>()); | |
} |