Skip to content

Instantly share code, notes, and snippets.

View abhilashsajeev's full-sized avatar
🎯
Focusing

Abhilash A S abhilashsajeev

🎯
Focusing
View GitHub Profile
@abhilashsajeev
abhilashsajeev / checkbox.html
Last active March 18, 2017 10:40
update p tag based on checkbox
<html>
<head>
<script>
document.addEventListener('DOMContentLoaded', addListeners, false);
var checkedItems = [];
var animals = [] ;
function getIndex(value){
return checkedItems.indexOf(value);
}
@abhilashsajeev
abhilashsajeev / package.json
Created July 5, 2016 04:03
NodeJS complete es6 with babel
"scripts":{
"dev": "nodemon --exec babel-node src/index.js",
"prestart": "babel src --out-dir dist",
"start": "node dist/index.js"
}
@abhilashsajeev
abhilashsajeev / gulpfile.js
Created March 29, 2016 11:29
Gulp file for react build
var gulp = require('gulp');
var gutil = require('gulp-util');
var source = require('vinyl-source-stream');
var buffer = require('vinyl-buffer');
var browserify = require('browserify');
var bundler = browserify('./index.js');
bundler.transform('babelify', {presets: ["es2015", "react"]})
for(var r=document.getElementsByClassName("button-secondary-medium-round pv-skill-entity__featured-endorse-button-shared"),i=0;i<r.length;i++)r[i].click();
gulp.task('eslint', function () {
gulp.src(config.src)
.pipe(eslint({
extends: 'eslint:recommended',
plugins: [
'react'
],
ecmaFeatures: {
'modules': true,
'jsx': true
@abhilashsajeev
abhilashsajeev / .eslintrc
Last active July 8, 2016 05:08
Qburst eslint configuration
{
"env": {
"node": true,
"mocha": true
},
"globals": {
"angular": true,
"ionic": true,
"moment": true,
"R": true,