Skip to content

Instantly share code, notes, and snippets.

View jsramraj's full-sized avatar
🎯
Focusing on the custom tooltip library for android

Ramaraj T jsramraj

🎯
Focusing on the custom tooltip library for android
View GitHub Profile
** iOS Devices
armv6, armv7, armv7s: A 32-bit architecture that appeared on early iPhone and iPad devices. Supported up to iPhone 5 the march of time made them obsolete.
arm64: A 64-bit architecture used in iPhone 5s - iPhone 7 devices.
arm64e: The new dominant 64-bit iOS architecture used in Phone 8 - later devices.
** Simulator:
@jsramraj
jsramraj / Freshers.md
Last active September 14, 2022 04:56
Freshers interview questions

Basic concepts for OOPS Object-Oriented Programming vs Structural Programming and examples What is class & object Encapsulation - access modifiers Polymorphism Inheritance - types of Inheritance constructor - return type? Descructor inline function overloading - function vs operator

@jsramraj
jsramraj / Tutorial.md
Created March 8, 2022 14:05 — forked from Abduler21/Tutorial.md
REGEX TUTORIAL

Regular Expression Tutorial

This tutorial is meant to be a foundational reference guide for anyone learning Regular Espressions. By the end of this tutorial you will know what a regular expression is, when to use them, all of their different functionality, as well as some cool tips on how to improve your own regex scripting. Throughout this tutorial we'll be referencing a specific regular expression, breaking down each component and learning about the functionality of each part.

Bonus: You can click here to navitage to an online regex editor so you can practice your regex scripting as you learn!

Summary

Regular expression for email: /^([a-z0-9_\.-]+)@([\da-z\.-]+)\.([a-z\.]{2,6})$/

1. Find the most occurred number in the given array
Input - [3,4,3,2,3,3,4,5,6,5,5,4,3,3,3,3,3,3]
Output = 3
2. Find the last word count in the given sentence
Input - I Love India
Output - 5

Push subtree

git push origin git subtree split --prefix dist main:gh-pages --force

Change git author name and email

git filter-branch -f --env-filter " GIT_AUTHOR_NAME='jsramraj' GIT_AUTHOR_EMAIL='jsramraj@gmail.com' GIT_COMMITTER_NAME='Ramaraj T' GIT_COMMITTER_EMAIL='jsramraj@gmail.com' " HEAD

@jsramraj
jsramraj / git.md
Created August 25, 2020 11:31
Git CheatSheet

List all the tags git tag -l

Delete a tag from the remote git push -d origin 1.0

Delete a tag locally git tag -d 1.0

@jsramraj
jsramraj / adb.md
Last active April 26, 2021 10:25
ADB Commands

Process Id by app name

adb shell ps | grep appName adb shell pidof com.myCompany.myApp

Logcat by packagename

adb logcat --pid=14029

Tell the adb daemon to use TCP rather than USB

@jsramraj
jsramraj / SQLHelper
Last active July 23, 2020 12:20
Get Printable sql query from the SQLiteCommand in C#
private string ExtractSqlCommandFromCommand(SQLiteCommand cmd)
{
string sql = cmd.CommandText;
bool first = true;
foreach (SQLiteParameter p in cmd.Parameters)
{
string value = ((p.Value == DBNull.Value) ? "null"
: (p.Value is string) ? "'" + p.Value + "'"
: (p.Value is DateTime) ? "'" + ((DateTime)p.Value).ToString("yyyy-MM-dd HH:mm:ss") + "'"
: p.Value.ToString());
@jsramraj
jsramraj / clear_bin.md
Last active July 23, 2020 07:56
Delete bin and obj folders

Quite often you may need to clear the obj and bin folders in the Mac when you work on a xamarin project.

The following command will do that for you.

It will search for all the folders named obj and bin and delete them.

find . -type d \( -name "obj" -o -name "bin" \) -exec rm -rf {} \;