Skip to content

Instantly share code, notes, and snippets.

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

Abhijeet Gokar abunickabhi

🏠
Working from home
View GitHub Profile
@Dex9999
Dex9999 / scramble.js
Created July 2, 2023 19:43
Get Puzzle Type from a Scramble
function whatPuzzle(scramble) {
const cubePattern2x2 = /^([UFR]'?|2? ?)+$/;
const cubePattern3x3 = /^([RLUDFB]'?|2? ?)+$/;
const cubePattern4x4or5x5 = /^([RLUDFBwxyz]'?|2? ?)+$/;
const cubePattern6x6or7x7 = /^([3RLUDFBw]'?|2? ?)+$/;
const clockPattern = /^([AURDLFBy0-9+\-*]+ ?)+$/;
const megaminxPattern = /^([RDU'+\-\s]+)+$/;
const pyraminxPattern = /^([LUBR'brlu\s]+)+$/;
const skewbPattern = /^(?:[LUBR'\s]+)$/;
const squanPattern = /^[\(\-\d,\)\/\s]+$/;
@hi-ogawa
hi-ogawa / Procfile
Last active April 19, 2022 19:09
Lichess Development Setup
# Basic feature
lila: cd lila && ./lila run
lila-ws: cd lila-ws && sbt run
redis: docker-compose up redis
mongo: docker-compose up mongo
# Computer analysis
fishnet1: docker-compose up fishnet1
# Computer play
@nilslindemann
nilslindemann / Unofficial Lichess Puzzle Storm Top 200 List.md
Last active June 23, 2021 23:10
Unofficial Lichess Puzzle Storm Top 200 List

Currently Discontinued

In June 22nd, 2021, a programming bug in Lichess' Puzzle Storm and Puzzle Racer games caused some players to achieve excessively high scores that are otherwise beyond their abilities. See e.g. this recording of the bug by Joseph Leung.

The resulting top list is therefore based on corrupted data; compare it with the last correct list and the lists from previous days (see the links "Yesterdays list").

The Lichess developers could have decided to delete all Puzzle scores from June 22nd and to recalculate the data sets based on them. But presumably for performance reasons, they only recalculate these data sets when

@robodhruv
robodhruv / modelsim_installation.md
Last active July 21, 2024 23:06
Installing ModelSim on Ubuntu

ModelSim Installation issues

Ubuntu 14.xx and above

Ignore this if you have not encountered any issue with the installation and running of ModelSim and Quartus on your system. You are very lucky. (Just Kidding! You have surely had this issue, only sorted.)

Hence assuming you have been following the procedure given in this guide. Most certainly, Quartus will install jsut fine, and so will ModelSim. The issue is in launching due to inappropriate linking etc.

Stage 1

This is the simplest error you would encounter. Navigate to the modelsim_ase folder and run:

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.Locale;
// Gist
// https://gist.github.com/oseparovic/d9ee771927ac5f3aefc8ba0b99c0cf38
// Relevant SO question