Skip to content

Instantly share code, notes, and snippets.

🇦🇪
I may be slow to respond.

Zakaria Mansouri ZibanPirate

🇦🇪
I may be slow to respond.
View GitHub Profile
@ZibanPirate
ZibanPirate / companies_filter.js
Last active Nov 26, 2019
Simple Filter Algo for an array of 10000 object
View companies_filter.js
// Qualifications array:
const myQualifications = ["bike", "driver's license"];
/**
* All companies array in the sample, with their requirements, plus one extra company for complex conditions demo
*
* requirements are either:
* - a string, eg: "PayPal account"
* - an object with "or" array inside. eg: { or: ["apartment", "flat", "house"] }
* - an object with "and" array inside. eg: { and: ["social security number", "work permit"] }
@ZibanPirate
ZibanPirate / eslint.rc
Created Mar 15, 2018
eslint.rc for React
View eslint.rc
module.exports = {
"root": true,
"extends": ["eslint:recommended", "plugin:react/recommended"],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
},
"parserOptions": {
"ecmaFeatures": {
You can’t perform that action at this time.