This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"env": { | |
"node": true, | |
"mocha": true | |
}, | |
"globals": { | |
"angular": true, | |
"ionic": true, | |
"moment": true, | |
"R": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gulp.task('eslint', function () { | |
gulp.src(config.src) | |
.pipe(eslint({ | |
extends: 'eslint:recommended', | |
plugins: [ | |
'react' | |
], | |
ecmaFeatures: { | |
'modules': true, | |
'jsx': true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"]}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts":{ | |
"dev": "nodemon --exec babel-node src/index.js", | |
"prestart": "babel src --out-dir dist", | |
"start": "node dist/index.js" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<script> | |
document.addEventListener('DOMContentLoaded', addListeners, false); | |
var checkedItems = []; | |
var animals = [] ; | |
function getIndex(value){ | |
return checkedItems.indexOf(value); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Count extends React.Component { | |
constructor(){ | |
this.state = { | |
count: 0 | |
} | |
} | |
handleOnClick = ()=>{ | |
let count = this.state.count + 1; | |
this.setState({count: count}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Count extends React.Component { | |
constructor(){ | |
this.state = { | |
count: 0 | |
} | |
} | |
handleOnClick = ()=>{ | |
let count = this.state.count + 1; | |
this.setState({count: count}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
//Import required modules | |
var AWS = require('aws-sdk'), | |
async = require('async'), | |
logger = require('winston'), | |
zip = require('node-zip')(), | |
ebzip = require('node-zip')(), | |
cfgManager = require('./config'), | |
s3Config = cfgManager.getConfig('s3'), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pairSum = (arr, k)=>{ | |
if(arr.length < 2){ | |
return | |
} | |
// sets for tracting | |
let seen = new Set(); | |
let output = new Set(); | |
for (let num of arr){ |
OlderNewer