Skip to content

Instantly share code, notes, and snippets.

View d1p's full-sized avatar
🚀
work work & more work

Debashis Dip d1p

🚀
work work & more work
View GitHub Profile
@d1p
d1p / visa_sponsor_job_backend_skill_analysis.ipynb
Created November 13, 2021 11:13
visa_sponsor_job_backend_skill_analysis.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@d1p
d1p / country_code_to_timezone.json
Last active September 6, 2021 15:59
country_code_to_timezone.json
[
{
"country_code":"AW",
"timezone":"America/Aruba"
},
{
"country_code":"AF",
"timezone":"Asia/Kabul"
},
{
valid_words = ['chair', 'racket', 'touch', 'height', 'tunic']
chain = []
def chain_words(available_words:[], current_word: str):
chain.append(current_word)
available_words.remove(current_word)
for word in available_words:
@d1p
d1p / citystategeo.js
Created February 27, 2019 10:46 — forked from danasilver/citystategeo.js
Get only city and state from Google Maps API Reverse Geocoder
if (window.navigator.geolocation) {
navigator.geolocation.getCurrentPosition(function (position) {
var lat = position.coords.latitude,
lng = position.coords.longitude,
latlng = new google.maps.LatLng(lat, lng),
geocoder = new google.maps.Geocoder();
geocoder.geocode({'latLng': latlng}, function(results, status) {
if (status == google.maps.GeocoderStatus.OK) {
if (results[1]) {
for (var i = 0; i < results.length; i++) {
// Goto https://m.facebook.com/friends/center/requests/outgoing/#friends_center_main
javascript:var inputs = document.getElementsByClassName('_54k8 _56bs _56bt');
for(var i=0; i<inputs.length;i++) {
inputs[i].click();
}
@d1p
d1p / gist:571f1d0ec073b783c160124440ca0136
Created June 6, 2018 12:23 — forked from signed0/gist:2031157
Google Polyline encoder & decoder
'''Provides utility functions for encoding and decoding linestrings using the
Google encoded polyline algorithm.
'''
def encode_coords(coords):
'''Encodes a polyline using Google's polyline algorithm
See http://code.google.com/apis/maps/documentation/polylinealgorithm.html
for more information.
@d1p
d1p / mac-setup-redis.md
Created April 29, 2018 18:38 — forked from tomysmile/mac-setup-redis.md
Brew install Redis on Mac

type below:

brew update
brew install redis

To have launchd start redis now and restart at login:

brew services start redis
@d1p
d1p / cloudSettings
Last active October 28, 2017 06:48
Visual Studio Code Settings Sync Gist
{"lastUpload":"2017-10-28T06:47:58.086Z","extensionVersion":"v2.8.3"}
@d1p
d1p / array.c
Last active July 28, 2017 16:47
Homework..
#include <stdio.h>
#include <string.h>
typedef struct
{
char name[40];
int math;
int bangla;
int english;
int total;
float avarage;
@d1p
d1p / bootstrap-datepicker.js
Created October 31, 2016 18:43
undefined hidden fix
/* =========================================================
* bootstrap-datepicker.js
* http://www.eyecon.ro/bootstrap-datepicker
* =========================================================
* Copyright 2012 Stefan Petre
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*