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
// in global.asax | |
protected void Application_Start() | |
{ | |
// other stuff | |
ValueProviderFactories.Factories.Add(new ReverseValueProviderFactory()); | |
} | |
public class ReverseValueProviderFactory : ValueProviderFactory | |
{ |
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
public static void DumpJobs() | |
{ | |
var client = new RedisConnection(Host, password: Password); | |
client.Open(); | |
using (client) | |
{ | |
while (true) | |
{ | |
try | |
{ |
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
/// select2 plugin | |
(function (Handsontable) { | |
"use strict"; | |
var Select2Editor = Handsontable.editors.TextEditor.prototype.extend(); | |
Select2Editor.prototype.prepare = function (td, row, col, prop, value, cellProperties) { | |
Handsontable.editors.TextEditor.prototype.prepare.apply(this, arguments); |
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
public class MailSender | |
{ | |
static MailSender() | |
{ | |
var viewRenderer = new EmailViewRenderer(ViewEngines.Engines) {EmailViewDirectoryName = "UserMailer"}; | |
var emailParser = new EmailParser(viewRenderer); | |
Email.CreateEmailService = ()=>new EmailService(viewRenderer, new PremailerEmailParser(emailParser), ()=>new SmtpClient()); | |
} | |
public void SendEmail() |
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
ERROR Failed to compile with 1 errors 8:04:35 AM | |
error in ./main.js | |
Module build failed: Error: The 'decorators' plugin requires a 'decoratorsBeforeExport' option, whose value must be a boolean. If you are migrating from Babylon/Babel 6 or want to use the old decorators proposal, you should use the 'decorators-legacy' plugin instead of 'decorators'. | |
at validatePlugins (C:\projects\ui-components\node_modules\@babel\parser\lib\index.js:6109:13) | |
at getParser (C:\projects\ui-components\node_modules\@babel\parser\lib\index.js:11426:5) | |
at parse (C:\projects\ui-components\node_modules\@babel\parser\lib\index.js:11409:12) | |
at parser (C:\projects\ui-components\node_modules\@babel\core\lib\transformation\normalize-file.js:168:34) | |
at normalizeFile (C:\projects\ui-components\node_modules\@babel\core\lib\transformation\normalize-file.js:102:11) |