Skip to content

Instantly share code, notes, and snippets.

View anjum121's full-sized avatar

Anjum Nawab anjum121

View GitHub Profile
@anjum121
anjum121 / gist:2476431
Created April 24, 2012 04:27
HTML 5 Basic page with jquery link
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>XML Read</title>
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.1.0-rc.1/jquery.mobile-1.1.0-rc.1.min.css" />
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script>
$(document).ready(function() {
// Your jQuery commands go here before the mobile reference
<link href="../google-map/google-map.html" rel="import">
<link href="../ace-element/ace-element.html" rel="import">
<polymer-element name="my-element">
<template>
<style>
#design_host {
position: absolute;
width: 100%;
@anjum121
anjum121 / gulpfile.js
Created November 18, 2015 10:26
Base gulp setup for
var gulp = require('gulp'),
browserSync = require('browser-sync').create(),
reload = browserSync.reload,
concat = require('gulp-concat'),
cssmin = require('gulp-minify-css'),
rename = require('gulp-rename'),
sass = require('gulp-sass'),
uglify = require('gulp-uglify'),
jshint = require('gulp-jshint'),
order = require("gulp-order"),
@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
/**
* 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]);
/**
* 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 {
@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()
@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 / 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;
/**
* 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;