Skip to content

Instantly share code, notes, and snippets.

View ZibanPirate's full-sized avatar
🇩🇪
8 hours on work, the rest on dzcode und algeriastartupjobs

Zakaria Mansouri ZibanPirate

🇩🇪
8 hours on work, the rest on dzcode und algeriastartupjobs
View GitHub Profile
@ZibanPirate
ZibanPirate / companies_filter.js
Last active November 26, 2019 22:00
Simple Filter Algo for an array of 10000 object
// 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 March 15, 2018 11:37
eslint.rc for React
module.exports = {
"root": true,
"extends": ["eslint:recommended", "plugin:react/recommended"],
"env": {
"browser": true,
"commonjs": true,
"es6": true,
},
"parserOptions": {
"ecmaFeatures": {