Skip to content

Instantly share code, notes, and snippets.

Avatar

Anjum Nawab anjum121

View GitHub Profile
View settingEndpoints.json
{
"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 Nov 21, 2017
React, Redux, ITunes Music search
View Store.js
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 = []
View config.xml
<!--Copy angular 2 www folder into cordova www folder -->
<hook type="before_prepare" src="customHooks/copy-angular2-to-cordova.js"/>
View 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 Mar 26, 2017
This will make text shin
View text-shining.scss
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 Mar 7, 2017 — forked from richardtorres314/flexbox.scss
CSS Flexbox - Sass Mixins
View flexbox.scss
// --------------------------------------------------
// 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;
View loaderService.ts
import {Injectable} from '@angular/core';
import {LoadingController} from 'ionic-angular';
export interface ILoaderParams {
message?: string;
time?: number;
dismissOnPageChange?: boolean
}
@Injectable()
View acceptance.card.list.ts
/**
* 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 {
View ngReallyClick.js
/**
* 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]);
View ngReallyClick.js
(function () {
'use strict';
angular
.module('c2k')
.directive('ngReallyClick', [ngReallyClickFunction]);
function ngReallyClickFunction() {
return {
restrict: 'A',
link: linkFn
You can’t perform that action at this time.