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 / 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.
// Code goes here
(function() {
console.log(window);
window.makeError = function(a) {
a.b();
};
}());
@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');
@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 / 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 / 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>