Skip to content

Instantly share code, notes, and snippets.

View karthikeyanVK's full-sized avatar
🎯
Focusing

Karthikeyan VK karthikeyanVK

🎯
Focusing
View GitHub Profile
keytool -list -storetype pkcs12 -keystore certificate/AndroidCertificate.pfx -v | grep Alias
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore certificate/AndroidCertificate.keystore platforms/android/build/outputs/apk/android-armv7-release-unsigned.apk <AliasName>
"C:\Program Files (x86)\GnuWin32\bin\openssl.exe" pkcs12 -export -in certificate.cer -inkey private_key.key
-certfile IntermediateCertificate.pem -out mycert1.pfx -password pass:xxxyuse348sercf
public class Car
{
public virtual void Drive()
{
Console.WriteLine("Car Drive");
}
}
public class Toyota:Car
{
public override void Drive()
public class Car
{
public virtual void Drive()
{
Console.WriteLine("Car Drive");
}
}
public class Toyota : Car
{
public class Car
{
public virtual void Drive()
{
Console.WriteLine("Car Drive");
}
public virtual void ShiftGear()
{
public class Toyota : Car
{
public string type { get; set; }
public override void Drive()
{
Console.WriteLine("Toyota Drive");
}
public override void ShiftGear()
public interface ICar
{
void Drive();
void ShiftManualGear();
void ShiftAutomaticGear();
}
public class Maruthi800 : ICar
{
public void Drive()
{
@karthikeyanVK
karthikeyanVK / IQueryableExtension.cs
Last active March 7, 2017 07:41
IQueryableExtension snippet for Effective c# blog.
public static IQueryable<T> StartsWith<T>(this IQueryable<T> source, Expression<Func<T, string>> stringProperty,
string searchTerm)
{
if (string.IsNullOrEmpty(searchTerm))
{
return source;
}
var searchTermExpression = Expression.Constant(searchTerm);
//Note Below instead of GetMethod("Contains") have used GetMethod(nameof(string.Contains))
{
"scriptFile": "..\\bin\\MigrateAzurefuncapp.dll",
"entryPoint": "MigrateAzurefuncapp.PostValuesHttpTrigger.Run",
"bindings": [
{
"authLevel": "function",
"name": "req",
"type": "httpTrigger",
"direction": "in"