Skip to content

Instantly share code, notes, and snippets.

View alamkanak's full-sized avatar

Raquib-ul Alam (Kanak) alamkanak

View GitHub Profile
@alamkanak
alamkanak / README.md
Last active April 11, 2024 00:50
python-best-practice
  1. Install the following:
    1. VSCode
    2. Python extension
    3. Pylance extension
    4. Ruff extension
  2. Open command palette in VSCode with Cmd + Shift + P
  3. Type and select Preferences: Open Workspace Settings (JSON)
  4. Copy and paste the following settings into your workspace settings file:
    {
@alamkanak
alamkanak / bikroy-property.js
Last active December 29, 2020 09:42
Bikroy property organize
// Increase width.
var width = "710px";
for (var clss of ["ad-list-container--1UnyA", "list-wrapper--t_A02", "list--3NxGO", "gtm-top-ad", "gtm-normal-ad"]) {
var elems = document.getElementsByClassName(clss)
for (var elem of elems) {
elem.style.maxWidth = width;
elem.style.width = width;
}
}
@alamkanak
alamkanak / foodpanda.md
Last active December 21, 2020 04:06
Foodpanda sorting by rating

Sort foodpanda restaurants

Using this script on any browser, you can sort the restaurants listed in the foodpanda website by rating or review count.

  1. Visit foodpanda.com and select your location.
  2. Keep scrolling down to the bottom of the page until all resaurants are loaded on the page.
  3. In Chrome, right click anywhere on the page and select Inspect from the menu.
  4. In the Inspect window click the Console tab.
  5. In the console, paste in the following script and hit enter.
@alamkanak
alamkanak / gist:771ffa63b159c5f0b936
Last active December 1, 2020 23:24
How I set up a server in DigitalOcean for Laravel

Create a droplet

  1. Go to digitalocean.com and hit Create Droplet.
  2. Name your droplet, select size and region.
  3. Select ubuntu distribution and lamp application.
  4. Click Create droplet.
  5. You will receive an email with ip address and user credentials.

Log in with putty

  1. Download putty from: http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
  2. Open putty.
@alamkanak
alamkanak / MainActivity.java
Last active September 27, 2020 12:04
Adding events on week view calendar by tapping in empty view. Get the week view calendar from https://github.com/alamkanak/Android-Week-View
package com.alamkanak.weekview.sample;
import android.app.Activity;
import android.os.Bundle;
import com.alamkanak.weekview.WeekView;
import com.alamkanak.weekview.WeekViewEvent;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.List;
Download the following ZIPs:
ARM Translation Installer v1.1 (http://www.mirrorcreator.com/files/0ZIO8PME/Genymotion-ARM-Translation_v1.1.zip_links)
Download the correct GApps for your Android version:
Google Apps for Android 5.1 (https://www.androidfilehost.com/?fid=96042739161892865 - gapps-L-4-21-15.zip)
Google Apps for Android 5.0 (https://www.androidfilehost.com/?fid=95784891001614559 - gapps-lp-20141109-signed.zip)
Google Apps for Android 4.4.4 (https://www.androidfilehost.com/?fid=23501681358544845 - gapps-kk-20140606-signed.zip)
Google Apps for Android 4.3 (https://www.androidfilehost.com/?fid=23060877490000124 - gapps-jb-20130813-signed.zip)
Google Apps for Android 4.2 (https://www.androidfilehost.com/?fid=23060877490000128 - gapps-jb-20130812-signed.zip)