Skip to content

Instantly share code, notes, and snippets.

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

mistertest mistertest

🏠
Working from home
  • Freelancer
  • France
View GitHub Profile
@Jithender5913
Jithender5913 / main.py
Created May 10, 2022 12:58
LinkedIn Job Applying Automation using Python Selenium
from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys
from selenium.common.exceptions import NoSuchElementException
import time
chrome_driver_path = r"C:\Users\jithe\Downloads\chromedriver_win32\chromedriver.exe"
s = Service(chrome_driver_path)
@rupeshtiwari
rupeshtiwari / adding-images-badge-on-readme.md-files.md
Last active June 15, 2024 12:31
How to add your badge on readme files , nom, build, test result badges

How to add your own badge on README.md file

Here is a simple way to create your own badge for your npm package. I hope you will enjoy this.

Where to go and get badge

  • Go to https://shields.io/#/ website
  • prepare your own badge and
  • have these logo references in your readme files.

Alternative way to create badge

You can also follow this pattern https://img.shields.io/badge/[SUBJECT]-[STATUS]-[COLOR].svg and Put something on below values:

What is a PWA

According to google a service worker is...

Progressive Web Apps are user experiences that have the reach of the web, and are:

  • Reliable - Load instantly and never show the downasaur, even in uncertain network conditions.
  • Fast - Respond quickly to user interactions with silky smooth animations and no janky scrolling.
  • Engaging - Feel like a natural app on the device, with an immersive user experience. This new level of quality allows Progressive Web Apps to earn a place on the user's home screen.
private fun injectJS() {
try {
val inputStream = assets.open("style.js")
inputStream.bufferedReader().use(BufferedReader::readText)
} catch (e: Exception) {
null
}?.let { webView.loadUrl("javascript:($it)()") }
}
webView.settings.javaScriptEnabled = true
webView.webViewClient = object : WebViewClient() {
override fun onPageFinished(view: WebView, url: String) {
injectJS()
}
}
webView.loadUrl("https://www.google.com")
@jimmywarting
jimmywarting / readme.md
Last active June 18, 2024 16:00
Cors proxies
Exposed headers
Service SSL status Response Type Allowed methods Allowed headers
@nighthawk24
nighthawk24 / permissions.txt
Created October 3, 2016 04:45 — forked from Arinerron/permissions.txt
A list of all Android permissions...
android.permission.REAL_GET_TASKS
android.permission.ACCESS_CACHE_FILESYSTEM
android.permission.REMOTE_AUDIO_PLAYBACK
com.amazon.client.metrics.nexus.permission.CANCEL_SCHEDULED_UPLOAD
android.permission.REGISTER_WINDOW_MANAGER_LISTENERS
android.permission.INTENT_FILTER_VERIFICATION_AGENT
android.permission.BIND_INCALL_SERVICE
com.google.android.gms.trustagent.framework.model.DATA_CHANGE_NOTIFICATION
android.permission.WRITE_SETTINGS
com.google.android.vending.verifier.ACCESS_VERIFIER
@mbbx6spp
mbbx6spp / ALTERNATIVES.adoc
Last active April 25, 2024 15:14
Super quick list of alternatives to Jira and/or Confluence, Stash, Crucible, etc.
@wenzhixin
wenzhixin / ubuntu14.04-command-line-install-android-sdk
Last active January 16, 2024 21:15
Ubuntu 14.04 command line install android sdk
# install openjdk
sudo apt-get install openjdk-7-jdk
# download android sdk
wget http://dl.google.com/android/android-sdk_r24.2-linux.tgz
tar -xvf android-sdk_r24.2-linux.tgz
cd android-sdk-linux/tools
# install all sdk packages
@Hasufel
Hasufel / gist:8405464
Created January 13, 2014 18:28
example for listener OnInputDeviceListener in mainview.java
package org.haxe.lime;
import android.app.Activity;
import android.content.Context;
import android.graphics.PixelFormat;
::if (ANDROID_TARGET_SDK_VERSION > 15)::import android.hardware.input.InputManager;::end:: //addition nils
::if (ANDROID_TARGET_SDK_VERSION > 15)::import android.hardware.input.InputManager.InputDeviceListener;::end:://addition nils
import android.opengl.GLSurfaceView;
import android.os.Build;