Skip to content

Instantly share code, notes, and snippets.

View Parithi's full-sized avatar
👨‍💻
Codin!

ElamParithi Arul Parithi

👨‍💻
Codin!
View GitHub Profile
run --branch=stable --arch=x86_64 --command=/app/bin/edge --file-forwarding com.microsoft.Edge @@u @@ --windowsize=1024,640 --force-device-scale-factor=1.25 --device-scale-factor=1.25 --kiosk "https://luna.amazon.com" --user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36 Edg/108.0.1462.54"
@Parithi
Parithi / names.js
Created June 8, 2021 00:19
Get Random name in lowercase - Typescript
function getName() {
var names = ["Aaren","Aarika","Abagael","Abagail","Abbe","Abbey","Abbi","Abbie","Abby","Abbye","Abigael","Abigail","Abigale","Abra","Ada","Adah","Adaline","Adan","Adara","Adda","Addi","Addia","Addie","Addy","Adel","Adela","Adelaida","Adelaide","Adele","Adelheid","Adelice","Adelina","Adelind","Adeline","Adella","Adelle","Adena","Adey","Adi","Adiana","Adina","Adora","Adore","Adoree","Adorne","Adrea","Adria","Adriaens","Adrian","Adriana","Adriane","Adrianna","Adrianne","Adriena","Adrienne","Aeriel","Aeriela","Aeriell","Afton","Ag","Agace","Agata","Agatha","Agathe","Aggi","Aggie","Aggy","Agna","Agnella","Agnes","Agnese","Agnesse","Agneta","Agnola","Agretha","Aida","Aidan","Aigneis","Aila","Aile","Ailee","Aileen","Ailene","Ailey","Aili","Ailina","Ailis","Ailsun","Ailyn","Aime","Aimee","Aimil","Aindrea","Ainslee","Ainsley","Ainslie","Ajay","Alaine","Alameda","Alana","Alanah","Alane","Alanna","Alayne","Alberta","Albertina","Albertine","Albina","Alecia","Aleda","Aleece","Aleen","Alejandra","A
@Parithi
Parithi / git-pushing-multiple.rst
Created November 26, 2019 17:21 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just

@Parithi
Parithi / login.page.scss
Created August 1, 2018 10:13
CSS For Responsive Login Form using Ionic 4
app-login {
}
$white-color: #fff;
$height100: 100%;
ion-grid {
width:100%;
height: $height100;
@Parithi
Parithi / login.page.html
Created August 1, 2018 10:10
Creating a responsive Login Form in Ionic 4
<ion-grid>
<ion-row justify-content-center>
<ion-col align-self-center size-md="6" size-lg="5" size-xs="12">
<div text-center>
<h4>Login Form</h4>
</div>
<div padding>
<ion-item>
<ion-input type="text" placeholder="Username"></ion-input>
</ion-item>
package com.vuforia.samples.VuforiaSamples.app.ImageTargets;
import android.opengl.GLES20;
import android.opengl.GLSurfaceView;
import com.threed.jpct.Camera;
import com.threed.jpct.Config;
import com.threed.jpct.FrameBuffer;
import com.threed.jpct.Light;
import com.threed.jpct.Loader;
@Parithi
Parithi / BubbleSort.java
Created February 5, 2018 03:12
Bubble Sort
package com.parithi;
import java.util.Arrays;
public class BubbleSort {
public static void main(String[] args) {
int[] array = {9,4,1,2,7,5,6,3,8};
System.out.println(Arrays.toString(array));
C:\ubuntu_vagrant>vagrant ssh --debug
INFO global: Vagrant version: 1.9.6
INFO global: Ruby version: 2.3.4
INFO global: RubyGems version: 2.5.2
INFO global: VAGRANT_EXECUTABLE="C:\\HashiCorp\\Vagrant\\embedded\\gems\\gems\\vagrant-1.9.6\\bin\\vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="C:\\HashiCorp\\Vagrant\\embedded"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_OLD_ENV_="ExitCode=00000002"

Keybase proof

I hereby claim:

  • I am parithi on github.
  • I am parithi (https://keybase.io/parithi) on keybase.
  • I have a public key ASBr0T0TRgserl2p3KphBjUXoiKEBjyXiYl6UKR08ppD8Qo

To claim this, I am signing this object:

Get the connecting point on the open list which has the lowest score. Let’s call this point p.
Remove p from the open list and add p to the closed list.
FOR each connecting point q in p’s walkable adjacent points:
IF q is in the closed list: Ignore it.
IF q is not in the open list: Add it and compute its score.
IF q is already in the open list: Check if the f score is lower when we use the current generated path to get there.
If it is, update its score and update its parent as well.