Skip to content

Instantly share code, notes, and snippets.

@rakib-amin
rakib-amin / AddCloseAnimOnClose.js
Last active August 18, 2017 04:12
How to set a custom (non-bootstrap) closing animation for twitter bootstrap modal?
/*
Animate.css by Daniel Eden (https://daneden.github.io/animate.css)
is a collection of amazing css animations. On the other hand, Bootstrap
transition(.js/.css) offers only few choices. So here is a work around
found from SO/Google and little trial and error. The Solution is based
on setTimeout function, that kickstarts a function after a specific period of time.
*/
(function($) {
$(window).load(function(){
@rakib-amin
rakib-amin / Solution.MD
Last active December 1, 2016 04:34
Fix Forbidden 403 in localhost after upgrading to macOS Sierra
@rakib-amin
rakib-amin / Solution.md
Last active December 1, 2016 04:33
Registry key Error: Java version has value '1.8', but '1.7' is required
@rakib-amin
rakib-amin / jdk17.bat
Created December 1, 2016 04:38
Switch between JDKs (Quite literally)
rem // credit - https://blogs.oracle.com/pranav/entry/switch_between_different_jdk_v
@echo off
echo Setting JAVA_HOME
set JAVA_HOME=C:\Program Files\Java\jdk1.7.0_79
echo setting PATH
set PATH=C:\Program Files\Java\jdk1.7.0_79\bin;%PATH%
echo Display java version
java -version
@rakib-amin
rakib-amin / Solution.md
Created December 1, 2016 07:04
Cannot change java version on Windows
@rakib-amin
rakib-amin / Solution.md
Created December 2, 2016 13:04
Fix mysql server start error on OSX El Capitan / macOS Sierra
  • $ sudo chmod -R 777 /usr/local/var/mysql/
  • $ sudo /usr/local/mysql/support-files/mysql.server start
@rakib-amin
rakib-amin / Solution.md
Created December 8, 2016 07:41
Resolving Project SDK Change error in Intellij IDEA on Windows

Goto File > Settings > Build, Execution, Deployment > Compiler > Java Compiler

  • Use Compiler > Javac
  • Project bytecode version: 1.X
  • Per module bytecode version > Target bytecode version > 1.X

Goto File > Project Structure > Project

  • Project SDK > 1. X
  • Project Language Level > X - ....
@rakib-amin
rakib-amin / gradle_path.txt
Created January 13, 2018 18:57
Set Gradle Path in macOS High Sierra
Gradle Home: /usr/local/Cellar/gradle/4.4.1/libexec
@rakib-amin
rakib-amin / solution.md
Last active January 29, 2018 10:31
Creating a Java cmd-app that uses selenium Web Driver using libs from Gradle project
  • First goto your gradle project > Build Project
  • Then in build\distributions\project-1.0-SNAPSHOT.zip\libs\ dir, you'll find the .jar file you need, extract all you need to a dir (e.g 'mylibs')
  • goto cmd-app project
  • Ctrl + Alt + Shift + S to open Project Structure
  • goto Project Settings > Libraries > + button > New Project Library > Java > Open mylibs/ and select all > Apply
  • Voila
@rakib-amin
rakib-amin / run.md
Last active September 8, 2018 06:51
Run emulator From command line (macOS)

$ cd /Users/johndoe/Library/Android/sdk/emulator

$ ./emulator -list-avds

$ ./emulator -avd Pixel_2_XL_API_27