Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Coding

Amaan Kulshreshtha AmaanKulshreshtha

👨‍💻
Coding
  • Accenture
  • Dubai, United Arab Emirates
View GitHub Profile
@AmaanKulshreshtha
AmaanKulshreshtha / emulator-install-using-avdmanager.md
Created August 23, 2022 13:10 — forked from mrk-han/emulator-install-using-avdmanager.md
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)
View emulator-install-using-avdmanager.md

Install and Create Emulators using AVDMANAGER and SDKMANAGER

TL;DR

For generic skin emulator with default apis (without google apis):

  1. List All System Images Available for Download: sdkmanager --list | grep system-images

  2. Download Image: sdkmanager --install "system-images;android-29;default;x86"

@AmaanKulshreshtha
AmaanKulshreshtha / .gitignore
Created September 27, 2020 16:29 — forked from andreasonny83/.gitignore
Gitignore template for JavaScript projects
View .gitignore
# See http://help.github.com/ignore-files/ for more about ignoring files.
# compiled output
/dist
/tmp
/out-tsc
# Runtime data
pids
*.pid
@AmaanKulshreshtha
AmaanKulshreshtha / handlebars.helpers.ifEquals.js
Created April 2, 2020 07:17 — forked from niksumeiko/handlebars.helpers.ifEquals.js
Handlebars.js templates engine custom IF condition helper. Allows to compare values one to each other like you are used to in programming.
View handlebars.helpers.ifEquals.js
// Compares first value to the second one allowing entering IF clouse if true.
// Otherwise entering ELSE clause if exist.
Handlebars.registerHelper('ifEquals', function(a, b, options) {
if (a === b) {
return options.fn(this);
}
return options.inverse(this);
});
View plopfile.ts
import { AddActionConfig, NodePlopAPI } from 'plop';
export default function(plop: NodePlopAPI) {
plop.setGenerator('common', {
description: 'add a common component',
prompts: [
{
type: 'input',
name: 'name',
message: 'common component name please'
@AmaanKulshreshtha
AmaanKulshreshtha / .eslintrc
Created February 3, 2020 09:55
Eslint config for react-native project
View .eslintrc
{
"extends": "react-native-wcandillon",
"rules": {
"quotes": ["error", "single"],
"react/jsx-indent": ["error", "tab"],
"prettier/prettier": [
"error",
{
"singleQuote": true,
"useTabs": true,
View plop-template-->index.styles.hbs
import styled from 'styled-components/native';
export const {{pascalCase name}}Container = styled.View``;
@AmaanKulshreshtha
AmaanKulshreshtha / plop-template-->index.hbs
Created January 30, 2020 09:30
Plop Template for index file
View plop-template-->index.hbs
import React from 'react';
import { {{ pascalCase name }}Container } from './index.styles';
export default {{ pascalCase name }} = () => {
return (
<{{ pascalCase name}}Container></{{ pascalCase name}}Container>
)
}
@AmaanKulshreshtha
AmaanKulshreshtha / plopfile.js
Last active August 20, 2022 06:24
PlopFile Setup
View plopfile.js
module.exports = function (plop) {
/** @type {import('plop').NodePlopAPI} */
plop.setGenerator('common', {
description: 'add a common component',
prompts: [{
type: 'input',
name: 'name',
message: 'common component name please'
}],
actions: [
@AmaanKulshreshtha
AmaanKulshreshtha / Branch Naming Conventions
Last active July 8, 2019 17:58
branchNamingConventions.md
View Branch Naming Conventions
wip Works in progress; stuff I know won't be finished soon
feat Feature I'm adding or expanding
bug Bug fix or experiment
junk Throwaway branch created to experiment
hotfix A hotfix branch
@AmaanKulshreshtha
AmaanKulshreshtha / Commit message Conventions
Last active July 8, 2019 17:59
commitMessageConventions.md
View Commit message Conventions
## FORMAT:
```
<type>[optional scope]: <description>
[optional body]
[optional footer]
```