Skip to content

Instantly share code, notes, and snippets.

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

Santanu Bhattacharya qisantanu

🏠
Working from home
View GitHub Profile

Restoring My Ubuntu Terminal After a Corrupt .bashrc

Recently, I encountered an issue with my .bashrc file on my Ubuntu system that left my terminal unusable, eventually all stuffs like developing, running, testing halts. Here’s how I identified and resolved the problem.

The Issue Begins

I was trying to install WebLogic on my local system to check for compatibility issues. My Java version at the time was:

openjdk version "1.8.0_302"
@qisantanu
qisantanu / pwa_button_effect.md
Last active January 3, 2025 12:46
Progressive Web Applications Buttons

To make your button look and feel more like a mobile app button, you can enhance it with the following adjustments:

  1. Add a subtle shadow: This gives the button a slightly raised appearance, making it look tappable.
  2. Adjust padding: Make the button larger and more finger-friendly for touch screens.
  3. Rounded corners: Increase the border radius to make it more modern and appealing.
  4. Ripple or press effect: Simulate a tactile response when the user taps on it.
  5. Color contrast: Make the colors pop and ensure they adhere to accessibility standards.
  6. Focus state: Provide visual feedback for accessibility of the button.
  7. Focus effect: Add visual feedback when the input is focused.
  8. Finger friendly design: For inputs finger friendly design
@qisantanu
qisantanu / documentation_tool.md
Last active August 3, 2023 12:02
Documentation generation tool
@qisantanu
qisantanu / main.dart
Created July 4, 2023 07:49
Riverpod sample
// Copyright (c) 2018, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'package:flutter/material.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
// This is a reimplementation of the default Flutter application
// using riverpod.
void main() {
@qisantanu
qisantanu / serialize.dart
Created July 3, 2023 16:40
JSON and serialization in Dart
import 'dart:convert';
import 'dart:core';
void main() {
var x = {
'data': [
{'id': 1, 'attributes': {'name': "R"}}, {'id': 2, 'attributes': {'name': "S"}}
]
};
@qisantanu
qisantanu / Basic_interview.md
Last active August 18, 2023 09:30
Basic_interview