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
@echo off | |
set ip_address_string="IPv4" | |
for /f "usebackq tokens=2 delims=:" %%f in (`ipconfig ^| findstr /c:%ip_address_string%`) do echo Your IP Address is: %%f |
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
CREATE FUNCTION [dbo].[Getagestring] (@birth_date datetime) | |
RETURNS varchar(80) | |
AS | |
BEGIN | |
DECLARE @age int | |
SELECT | |
@age = DATEDIFF(yy, @birth_date, GETDATE()) - CASE | |
WHEN | |
DATEADD(yy, DATEDIFF(yy, |
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
static IEnumerable<int> Intersection(int[] a, int[] b) | |
{ | |
int i = 0, j = 0; | |
while (i < a.Length && j < b.Length) | |
{ | |
if (a[i] < b[j]) | |
{ | |
i++; | |
continue; |
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 System; | |
using System.Collections.Generic; | |
using System.Threading.Tasks; | |
using static System.Console; | |
namespace ConsoleApplication2 | |
{ | |
class Program | |
{ | |
static string Str => $"This is the time: {DateTime.Now}"; |
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
import java.util.*; | |
import java.lang.*; | |
import java.io.*; | |
class Main | |
{ | |
public static void main (String[] args) throws java.lang.Exception | |
{ | |
// your code goes here |