Skip to content

Instantly share code, notes, and snippets.


Aravinthan.K aravinthanpnk

View GitHub Profile
aravinthanpnk / build.gradle
Created Aug 2, 2018 — forked from mizanRahman/build.gradle
ssh remote deploy with gradle
View build.gradle
buildscript {
repositories {
maven {
url ""
dependencies {
classpath "org.hidetake:gradle-ssh-plugin:1.1.4"
View angularjs-$compile.js
function MyDirective ($templateRequest, $compile) {
var templateBase = '/directives/my_directive/views/';
var childTemplates = {
child1: 'child1.html',
child2: 'child2.html'
return {
aravinthanpnk /
Created Jan 20, 2018 — forked from PurpleBooth/
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.



Sublime Text 2 - Useful Shortcuts

Tested in Mac OS X: super == command


  • super+t: go to file
  • super+ctrl+p: go to project
  • super+r: go to methods
View gist:c181418f0373aa96be2691ca5ca31203
app.filter('bytes', function() {
return function(bytes, precision) {
if (isNaN(parseFloat(bytes)) || !isFinite(bytes)) return '-';
if (typeof precision === 'undefined') precision = 1;
var units = ['bytes', 'kB', 'MB', 'GB', 'TB', 'PB'],
number = Math.floor(Math.log(bytes) / Math.log(1024));
return (bytes / Math.pow(1024, Math.floor(number))).toFixed(precision) + ' ' + units[number];
aravinthanpnk / perfectelementary.bash
Created Jun 6, 2016
HowTo Install the perfect Elementary-OS
View perfectelementary.bash
#Download Elementary OS from here:
#First you update your system
sudo apt-get update && sudo apt-get dist-upgrade
#Install Google Chrome
wget -q -O - | sudo apt-key add -
sudo sh -c 'echo "deb stable main" >> /etc/apt/sources.list.d/google-chrome.list'
You can’t perform that action at this time.