Skip to content

Instantly share code, notes, and snippets.

View Gabson1's full-sized avatar
🏠
Working from home

Gabriel Ayham Semaan Gabson1

🏠
Working from home
  • intellisoft André Frimberger
  • Berlin, Germany
View GitHub Profile
@ahmedkhalf
ahmedkhalf / Sudoku.com AI Solver.py
Last active January 12, 2024 16:12
Solve sudoku.com using Selenium!
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
import time
# Make sure chrome driver is in your path,
# full download totorial on official python selenium website.
# Start broswer with sudoku.com
@JamieMason
JamieMason / group-objects-by-property.md
Created September 14, 2018 07:38
Group Array of JavaScript Objects by Key or Property Value

Group Array of JavaScript Objects by Key or Property Value

Implementation

const groupBy = key => array =>
  array.reduce((objectsByKeyValue, obj) => {
    const value = obj[key];
    objectsByKeyValue[value] = (objectsByKeyValue[value] || []).concat(obj);
    return objectsByKeyValue;