Skip to content

Instantly share code, notes, and snippets.

View karthilxg's full-sized avatar

Karthi karthilxg

  • Apple Inc
  • San Jose, California
View GitHub Profile
@karthilxg
karthilxg / cat
Created May 21, 2013 23:29
SVG Tutorial
<?xml version="1.0"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.0//EN"
"http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
<svg width="140" height="170">
<title>Cat</title>
<desc>Stick Figure of a Cat</desc>
<!— the drawing will go here —>
<circle cx="70" cy="95" r="50" style="stroke: #5b100d; fill: none"/>;
</svg>
@karthilxg
karthilxg / Frontend-maven-plugin
Created October 27, 2014 23:58
rFontend-maven-plugin-Pom.xml
<!-- This plugin downloads/installs Node and NPM locally for your project -->
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>0.0.16</version>
<configuration>
<workingDirectory>${basedir}/yo/</workingDirectory>
</configuration>
<executions>
@karthilxg
karthilxg / package.json
Created October 27, 2014 23:59
package.json
{
"name": "sampleappcase",
"version": "0.0.0",
"dependencies": {},
"devDependencies": {
"bower": "^1.3.12",
"grunt": "^0.4.1",
"grunt-autoprefixer": "^0.7.3",
"grunt-concurrent": "^0.5.0",
"grunt-contrib-clean": "^0.5.0",
@karthilxg
karthilxg / Gruntfile.js
Created October 28, 2014 00:07
Gruntfile.js
module.exports = function ( grunt ) {
/**
* Load required Grunt tasks. These are installed based on the versions listed
* in `package.json` when you do `npm install` in this directory.
*/
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-concat');
// Code goes here
(function() {
console.log(window);
window.makeError = function(a) {
a.b();
};
}());
@karthilxg
karthilxg / migrate_repo.sh
Created January 20, 2017 19:55 — forked from mariozig/migrate_repo.sh
Migrate repo from GitLab to GitHub Full blog post @ http://ruby.zigzo.com/2015/03/23/moving-from-gitlab-to-github/
# Assume we are in your home directory
cd ~/
# Clone the repo from GitLab using the `--mirror` option
$ git clone --mirror [email protected]:mario/my-repo.git
# Change into newly created repo directory
$ cd ~/my-repo.git
# Push to GitHub using the `--mirror` option. The `--no-verify` option skips any hooks.
@karthilxg
karthilxg / readme.md
Created May 4, 2017 20:04 — forked from gund/readme.md
Webpack 2 beta circular dependencies trouble

So consider we have Logger class. And also we have a LoggerInContext class which extends Logger. And Logger has factory method to create new LoggerInContext instances.

// logger.ts

import { LoggerInContext } from './logger-in-context';

export class Logger {
@karthilxg
karthilxg / bling.js
Created July 24, 2017 22:28 — forked from paulirish/bling.js
bling dot js
/* bling.js */
window.$ = document.querySelectorAll.bind(document);
Node.prototype.on = window.on = function (name, fn) {
this.addEventListener(name, fn);
}
NodeList.prototype.__proto__ = Array.prototype;
@karthilxg
karthilxg / git-tag-delete-local-and-remote.sh
Created September 13, 2017 21:28 — forked from mobilemind/git-tag-delete-local-and-remote.sh
how to delete a git tag locally and remote
# delete local tag '12345'
git tag -d 12345
# delete remote tag '12345' (eg, GitHub version too)
git push origin :refs/tags/12345
# alternative approach
git push --delete origin tagName
git tag -d tagName
@karthilxg
karthilxg / mac-apps.md
Created September 21, 2017 22:04 — forked from erikreagan/mac-apps.md
Mac developer must-haves

Mac web developer apps

This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.

— Erik