Skip to content

Instantly share code, notes, and snippets.

Avatar

Anjum Nawab anjum121

View GitHub Profile
@anjum121
anjum121 / gist:2476431
Created Apr 24, 2012
HTML 5 Basic page with jquery link
View gist:2476431
<!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
View designer.html
<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 Nov 18, 2015
Base gulp setup for
View gulpfile.js
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"),
View ngReallyClick.js
(function () {
'use strict';
angular
.module('c2k')
.directive('ngReallyClick', [ngReallyClickFunction]);
function ngReallyClickFunction() {
return {
restrict: 'A',
link: linkFn
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 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 loaderService.ts
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 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;
@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;
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;