Skip to content

Instantly share code, notes, and snippets.

View gopalakrishnan-subramani's full-sized avatar

Gopalakrishnan Subramani gopalakrishnan-subramani

View GitHub Profile


aws iam create-account-alias --profile default --account-alias your-alias-name-for-account 

aws-nuke -c nuke-config.yml --profile default

aws-nuke -c nuke-config.yml --profile default --no-dry-run

Angular Source Code

@gopalakrishnan-subramani
gopalakrishnan-subramani / Header.js
Last active November 30, 2019 11:22
Auth, Higher Order Component Starter
import React from 'react';
import {NavLink, Link} from 'react-router-dom';
import {withRouter} from 'react-router-dom';
import {connect} from 'react-redux';
// first argument always props for functional comp
// props are immutable
function Header(props) {
@gopalakrishnan-subramani
gopalakrishnan-subramani / Cart.tsx
Last active May 7, 2019 04:28
React Typescript Advanced Starter
// Cart.tsx
import React from 'react';
import { CartDataItem } from '../models/CartItem';
import CartList from './CartList';
import CartSummary from './CartSummary';
interface CartProps {
}

System Requirements

  1. Windows/Mac/Linux Desktop
  2. At least 8 GB RAM, 12 GB preferred
  3. i5 or i7 processor
  4. 50 GB Space in the Harddrive
  5. Android/iOS Mobile phone for Expo App
  6. Virtualization to be enabled in the BIOS for Emulators

Software Requirements

@charset "UTF-8";
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
html {
font-family: sans-serif;
/* 1 */
-ms-text-size-adjust: 100%;
load('api_timer.js');
load('api_uart.js');
load('api_sys.js');
load('api_gpio.js');
let receiveBuffer = {
rxAcc: ''
};
title tocTitle description
Scala Import
Scala Import
Scala Import

import a package

  • Import classes, objects from other packages
import React, { Component, PropTypes } from 'react'
import {
CameraRoll,
Image,
ScrollView,
StyleSheet,
TouchableHighlight,
View,
} from 'react-native';
@gopalakrishnan-subramani
gopalakrishnan-subramani / emulate.js
Created August 31, 2018 16:49
Android-Emulator-Node.js
(function() {
var childProcess = require("child_process");
var oldSpawn = childProcess.spawn;
function mySpawn() {
console.log('spawn called');
console.log(arguments);
var result = oldSpawn.apply(this, arguments);
return result;
}
childProcess.spawn = mySpawn;