Skip to content

Instantly share code, notes, and snippets.

View amaankulshreshtha's full-sized avatar

Amaan Kulshreshtha amaankulshreshtha

  • Accenture
  • Dubai, United Arab Emirates
View GitHub Profile
amaankulshreshtha / zip command: React Native
Last active September 12, 2023 06:02
Zip ignore list from gitignore for React Native Project
zip -r <zip-file-name>.zip <folder-to-be-zipped> "**/dist/*" -x "**/tmp/*" -x "**/out-tsc/*" -x "**/.idea/*" -x "**/.project/*" -x "**/.classpath/*" -x "**/.c9/*" -x "**/.launch/*" -x "**/.settings/*" -x "**/.sublime-workspace/*" -x "**/.sass-cache/*" -x "**/connect.lock/*" -x "**/coverage/*" -x "**/libpeerconnection.log/*" -x "**/npm-debug.log/*" -x "**/yarn-error.log/*" -x "**/testem.log/*" -x "**/typings/*" -x "**/.DS_Store/*" -x "**/Thumbs.db/*" -x "**/build/*" -x "**/.pbxuser/*" -x "**/.mode1v3/*" -x "**/.mode2v3/*" -x "**/.perspectivev3/*" -x "**/xcuserdata/*" -x "**/.xccheckout/*" -x "**/.moved-aside/*" -x "**/DerivedData/*" -x "**/.hmap/*" -x "**/.ipa/*" -x "**/.xcuserstate/*" -x "**/ios/.xcode.env.local/*" -x "**/build/*" -x "**/.idea/*" -x "**/.gradle/*" -x "**/*" -x "**/.iml/*" -x "**/.hprof/*" -x "**/*/.cxx/*" -x "**/.yarn/*" -x "**/node_modules/*" -x "**/npm-debug.log/*" -x "**/yarn-error.log/*" -x "**/buck-out/*" -x "**/.buckd/*" -x "*
amaankulshreshtha /
Created August 23, 2022 13:10 — forked from mrk-han/
Installing and creating Emulators with AVDMANAGER (For Continuous Integration Server or Local Use)

Install and Create Emulators using AVDMANAGER and SDKMANAGER


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 / .gitignore
Created September 27, 2020 16:29 — forked from andreasonny83/.gitignore
Gitignore template for JavaScript projects
# See for more about ignoring files.
# compiled output
# Runtime data
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.
// 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);
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 / .eslintrc
Created February 3, 2020 09:55
Eslint config for react-native project
"extends": "react-native-wcandillon",
"rules": {
"quotes": ["error", "single"],
"react/jsx-indent": ["error", "tab"],
"prettier/prettier": [
"singleQuote": true,
"useTabs": true,
import styled from 'styled-components/native';
export const {{pascalCase name}}Container = styled.View``;
amaankulshreshtha / plop-template-->index.hbs
Created January 30, 2020 09:30
Plop Template for index file
import React from 'react';
import { {{ pascalCase name }}Container } from './index.styles';
export default {{ pascalCase name }} = () => {
return (
<{{ pascalCase name}}Container></{{ pascalCase name}}Container>
amaankulshreshtha / plopfile.js
Last active August 20, 2022 06:24
PlopFile Setup
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 / Branch Naming Conventions
Last active July 8, 2019 17:58
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