What do you want to save?
Add Code snippet
New code examples
-
Other 2021-11-07 10:52:11
paging entity framework core
public static class PaginationService { public static async Task<Pagination<T>> GetPagination<T>(IQueryable<T> query, int page, string orderBy, bool orderByDesc, int pageSize) where T : class { Pagination<T> ... Add solution -
Java 2021-11-07 09:27:20
How to find number of active user sessions in Java
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@ page import="com.planetofbits.demo.listener.SessionCounter"%> <!DOCTYPE html PUBLIC "-//W3C//... Add solution -
C# 2021-11-06 20:33:07
c# how to start an application and detect if started
using System.Diagnostics; using System.IO; using System.Reflection.Assembly; class Class { if (Process.GetProcessesByName(Path.GetFileNameWithoutExtension(GetEntryAssembly().Location)).Count() > 1) { Process.GetCurrentProcess().Kill(); } } Add solution -
VBA 2021-11-03 13:35:15
excel vba stack
'VBA does not include a native STACK (LIFO: LAST-In-FIRST-Out) memory 'structure. It is possible to implement one using nothing but a native 'array or collection. 'However, the easiest solution is to have VBA create and use a .NET Stack: Set stack = Cre... Add solution -
PHP 2021-11-02 11:33:16
woocommerce get order info
// Get $order object when you have the ID. $order = wc_get_order( $order_id ); // Get order key. $order->get_order_key(); // Get Order Totals $0.00 $order->get_formatted_order_total(); $order->get_cart_tax(); $order->get_currency(); $order-&... Add solution