Skip to content

Instantly share code, notes, and snippets.

View hazdik's full-sized avatar
👑
Not Crewed, Just Crowned !!!

Dinakaran Arumairaj hazdik

👑
Not Crewed, Just Crowned !!!
View GitHub Profile
.clear {
clear: both;
}
.card {
margin: auto;
padding-top: 2em;
padding-bottom: 1em;
padding-left: 1em;
padding-right:1em;
@hazdik
hazdik / one-file-component-native-encapsulation.ts
Created February 26, 2019 08:09 — forked from sulco/one-file-component-native-encapsulation.ts
Simple one-file Angular component with `ViewEncapsulation.Native`
import { Input, Component, ViewEncapsulation, EventEmitter, Output } from '@angular/core';
@Component({
selector: 'custom-button',
template: `<button (click)="handleClick()">{{label}}</button>`,
styles: [`
button {
border: solid 3px;
padding: 8px 10px;
background: #bada55;
@hazdik
hazdik / google-analytics-event-tracking.js
Created August 29, 2017 07:32
Google Analytics Event Tracking Javascript
/**!
* Google Analytics Event Tracking
* Note: Assuming that tracking code already exists on the page
* Require jQuery 1.x or 2.x
* Supports: Classic and Universal Google Analytics
* @version 2.1.0
* @license MIT
* @author ankur
*/
@hazdik
hazdik / event.tracking.js
Created August 29, 2017 07:32 — forked from wilr/event.tracking.js
Simple jQuery Helper for wrapping GA event tracking
(function($) {
/*
A simple helper plugin for wrapping Google Analytic event tracking
into sites through jQuery and HTML5 data attributes.
This assumes that you have used the standard configuration provided
by google for setting up Google Analytics and used the _gaq var for
storing the tracker.
Can track focus, activate, hover and click input methods but not key
@hazdik
hazdik / ga-event-tracker.js
Created August 29, 2017 07:31 — forked from cheynewallace/ga-event-tracker.js
jQuery Google Analytics Event Tracking Using HTML Attributes
/*JSHint Options*/
/*global _gaq */
/*
Google Analytics Event Tracking - JSHint Checked
Written By Cheyne Wallace - 19th Nov 2012
Click Usage: <a href="http://somewhere"
class="ga-track"
event_category="Event Category"
event_action="Specific Action"
event_label="Optional Message"
@hazdik
hazdik / proxy.php
Created July 6, 2017 10:25 — forked from iovar/proxy.php
Simple PHP Proxy Script
<?php
/*
* Warning! Read and use at your own risk!
*
* This tiny proxy script is completely transparent and it passes
* all requests and headers without any checking of any kind.
* The same happens with JSON data. They are simply forwarded.
*
* This is just an easy and convenient solution for the AJAX
@hazdik
hazdik / config.json
Created April 5, 2017 15:55 — forked from anonymous/config.json
Bootstrap Customizer Config
{
"vars": {
"@gray-base": "#565F74",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#3B5998, 6.5%)",
"@brand-success": "#5cb85c",