Skip to content

Instantly share code, notes, and snippets.

View anjum121's full-sized avatar

Anjum Nawab anjum121

View GitHub Profile
{
"apiEndpoints": {
"authEndpoint": "http://ecsb00100ea6.epam.com:9191",
"userEndpoint": "http://ecsb00100ea6.epam.com:9191",
"rulesEndpoint": "http://ecsb00100ea6.epam.com:8040",
"refDataEndpoint": "http://ecsb00100ea6.epam.com:8091",
"regBrokerDataEndpoint": "http://ecsb00100ea6.epam.com:8060"
},
"navigation": {
"iam": {
@anjum121
anjum121 / Store.js
Last active November 21, 2017 07:42
React, Redux, ITunes Music search
import {createStore, applyMiddleware, compose} from 'redux'
import {routerMiddleware} from 'react-router-redux'
import thunk from 'redux-thunk'
import createHistory from 'history/createBrowserHistory'
import rootReducer from '../modules'
export const history = createHistory()
const initialState = {}
const enhancers = []
<!--Copy angular 2 www folder into cordova www folder -->
<hook type="before_prepare" src="customHooks/copy-angular2-to-cordova.js"/>
/**
* Created by anjum on 29/05/17.
*/
const fs = require('fs');
const execSync = require('child_process').execSync;
module.exports = function(context) {
console.log(‘Copying angular 2 "./www" folder.’);
const basePath = context.opts.projectRoot;
@anjum121
anjum121 / text-shining.scss
Created March 26, 2017 08:41
This will make text shin
background: -moz-radial-gradient(right,90% 50px,#A37320,#EFEA7E,#A37320);
background: -webkit-radial-gradient(90% 50px at right,#A37320,#EFEA7E,#A37320);
background: radial-gradient(90% 50px at right,#A37320,#EFEA7E,#A37320);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
text-decoration: underline;
border-bottom: 1px solid #A37320;
@anjum121
anjum121 / flexbox.scss
Created March 7, 2017 08:11 — forked from richardtorres314/flexbox.scss
CSS Flexbox - Sass Mixins
// --------------------------------------------------
// Flexbox SASS mixins
// The spec: http://www.w3.org/TR/css3-flexbox
// --------------------------------------------------
// Flexbox display
@mixin flexbox() {
display: -webkit-box;
display: -moz-box;
display: -ms-flexbox;
@anjum121
anjum121 / loaderService.ts
Last active November 30, 2016 07:57
loader service
import {Injectable} from '@angular/core';
import {LoadingController} from 'ionic-angular';
export interface ILoaderParams {
message?: string;
time?: number;
dismissOnPageChange?: boolean
}
@Injectable()
/**
* Created by Anjum on 3/11/16.
*/
/// <reference path="../../utils/session/session.utils.ts" />
/// <reference path="../../services/skychaincontext.ts" />
/// <reference path="../../services/common/footer.card.service.ts" />
/// <reference path="../../_libraries.ts" />
/// <reference path="../../services/modals/app.modals.ts" />
module app.widgets.directives {
/**
* A generic confirmation for risky actions.
* Usage: Add attributes: ng-really-message="Are you sure"? ng-really-click="takeAction()" function
*/
(function () {
'use strict';
angular
.module('c2k')
.directive('ngReallyClick', [ngReallyClickFunction]);
@anjum121
anjum121 / ngReallyClick.js
Created December 10, 2015 05:29
confirm click
(function () {
'use strict';
angular
.module('c2k')
.directive('ngReallyClick', [ngReallyClickFunction]);
function ngReallyClickFunction() {
return {
restrict: 'A',
link: linkFn