Skip to content

Instantly share code, notes, and snippets.

View Simarjot-sk's full-sized avatar

simarjot singh Simarjot-sk

View GitHub Profile
@Simarjot-sk
Simarjot-sk / hard_worker.py
Created August 8, 2021 12:51
Simulates scrolling and changing of tabs. It can be used during work from home to bypass productivity tracking softwares, just start this script, open an ide with multiple tabs and this program will scroll up and down.
import time
import pyautogui as gui
import random as rdm
#scrolls random number of times for random distances,
#changes the tabs in the active window
def work_hard():
print('hard work started')
s_count = rdm.randint(1,10)
for i in range(s_count):
class MapViewFragment : Fragment(), OnMapReadyCallback,
ClusterManager.OnClusterClickListener<MyItemClustering> {
private var mCtx: Context? = null
private val TAG: String? = MapViewFragment::class.java.simpleName
var mapFragment: SupportMapFragment? = null
private var currentLatitude: Double? = 0.0
private var currentLongitude: Double? = 0.0
private var mMap: GoogleMap? = null
@Simarjot-sk
Simarjot-sk / vectorUtil.kt
Last active July 17, 2021 10:53
Creates a circle shaped android vector drawable of given radius.
package com.simarjot
import java.util.*
class Vector(val x: Float, val y: Float){
override fun toString() :String{
return "$x,$y"
}
}