2021-06-302022-01-14.net C# Yield When building a method that returns IEnumerable, you can use the yield […]
2021-06-232022-01-13javascript Queue and Stack in javascript Using basic array functions, you can treat an array as a queue […]
2021-06-232022-01-13javascript Handlebars in NodeJS “use strict”; (function() { const handlebars = require(“handlebars”); const source = “{{ […]
2021-06-232022-01-13javascript AJAX in Angular Regular GET/POST $http({ method: “POST”, url: “someUrl”, headers: { “Content-Type”: “application/json; charset=utf-8” […]
2021-06-232022-01-13images Add timestamp to photo using ImageMagick rem dptnt.com/2009/04/how-to-add-date-time-stamp-to-jpeg-photos-using-free-software/ @ECHO OFFSETLOCALFOR /R %%G IN (*.jpg) DO CALL :process “%%G”GOTO […]
2021-06-232022-01-14sql server View Job History in SQL Server create procedure util.ViewJobHistory( @ExecutionDate date = null ,@JobName sysname = null)asbegin declare […]
2021-06-232022-01-14.net Type-safe JSON result in ASP.NET MVC public abstract class BaseController : Controller { protected internal JsonResult<T> Json<T>(T data) […]
2021-06-232022-01-14sql server SQL Server Flatten and Unflatten Assuming you have a table type named SingleColumnText which contains (obviously) a […]
2021-06-232022-01-14images Shrink image with ImageMagick @ECHO OFFSETLOCALFOR /R %%G IN (*.jpg) DO CALL :process “%%G”GOTO :end :process […]
2021-06-232022-01-14javascript Replace alert with SweetAlert SweetAlert is a nice simple solution for displaying alert messages. Here’s the […]