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
@robodhruv
robodhruv / modelsim_installation.md
Last active November 30, 2025 23:33
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