Skip to content

Instantly share code, notes, and snippets.

View Gopikrishna19's full-sized avatar
🎯
Focusing

Gopikrishna Sathyamurthy Gopikrishna19

🎯
Focusing
View GitHub Profile
(function () {
'use strict';
const angular = window.angular;
class TransactionSummarySvc {
constructor(
$translate,

Proposed Directory Structure

Following you same directory structure, Each package is a root level route with [module].[package] as module name on root.[module].[package] route Sub level packages be named with dashes

Module/                 [root.Module]
  module.js             [module]
 common/
@Gopikrishna19
Gopikrishna19 / arrow-binding.js
Last active January 17, 2018 07:32
constructors and dynamic binding
export default function(lang) {
const table = initializeTable(lang);
return translit(table);
}
const translit = require('translit')(lang);
@Gopikrishna19
Gopikrishna19 / esm_in_node_proposal.md
Created April 17, 2018 17:53 — forked from ceejbot/esm_in_node_proposal.md
npm's proposal for supporting ES modules in node

ESM modules in node: npm edition

The proposal you’re about to read is not just a proposal. We have a working implementation of almost everything we discussed here. We encourage you to checkout and build our branch: our fork, with the relevant branch selected. Building and using the implementation will give you a better understanding of what using it as a developer is like.

Our implementation ended up differing from the proposal on some minor points. As our last action item before making a PR, we’re writing documentation on what we did. While I loathe pointing to tests in lieu of documentation, they will be helpful until we complete writing docs: the unit tests.

This repo also contains a bundled version of npm that has a new command, asset. You can read the documentation for and goals of that comma

@Gopikrishna19
Gopikrishna19 / index.js
Created May 16, 2018 01:29
Node js static http server
const chalk = require('chalk');
const fs = require('fs');
const http = require('http');
const path = require('path');
const url = require('url');
const mimeType = {
'.html': 'text/html',
'.js': 'text/javascript',
'.css': 'text/css',
alias gtree='git log --graph --abbrev-commit --decorate --date=relative --format=format:'\''%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)'\'' --all'
@Gopikrishna19
Gopikrishna19 / README.md
Created February 26, 2019 14:37
Restore deleted branch

knowing the github reference

# GIT_PAT=
# GIT_USER=
# GIT_ORG=
# GIT_REPO=
# GIT_REMOTE=
# GIT_BRANCH=
@Gopikrishna19
Gopikrishna19 / What to do.md
Last active April 6, 2019 11:20
Android SDK Manager CLI tutorial
@Gopikrishna19
Gopikrishna19 / store-factory.js
Created March 16, 2020 03:36
seting up redux devtools
import {applyMiddleware, createStore} from 'redux';
import {State} from './state';
import {composeWithDevTools} from 'redux-devtools-extension';
import {createCheckedReducer} from 'redux-tcomb';
import reducers from './reducers';
import thunk from 'redux-thunk';
const createStore = (reducer) => {
const checkedReducers = createCheckedReducer(reducer, State);
const middlewareStoreCreator = composeWithDevTools(