Skip to content

Instantly share code, notes, and snippets.

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

Anil anil826

🏠
Working from home
  • New Delhi , India
View GitHub Profile
@anil826
anil826 / upwork_tracker_free_time.rb
Last active April 1, 2016 06:55
Simple Script for switching terminal and tabs for UPWORK guys ;)
#!/usr/bin/env python
#To run this script in terminal first to install this dependancy: sudo apt-get install xdotool
#To make it excutable GoTo the file directory and run the command: chmod u+x upwork_tracker_free_time.rb
#Now you just need to run this file using form termial :~ ./upwork_tracker_free_time.rb
#Note: You need to specifiy every on which work space you want to swicth tab currently In code I am only swithching termial
#But you can also switch browser tab or sublim tabs subprocess.call("xdotool key ctrl+Tab" ,shell=True)
#Enjoy :)
import subprocess
import time
subprocess.call("xdotool key ctrl+alt+Up" ,shell=True)
$("#collapse_4c95-e714-99b6 a.btn.btn-success.btn-block.add").removeClass("btn-block").addClass("btn-lg");
$("#component-4ff3-27db-a932").css({"display":"none"})
$("#collapse_4c95-e714-99b6 .btn.btn-success.add.btn-lg").hide();
$("#add_new_contact_or_lead").on("click", function() {
//Showing loader
$('body').append('<div class="custom-loader"><div class="whirl traditional"><div class="spinner-dialog"><span class="spinner-dialog-title">Loading data</span> <br/><span>Please wait...</span> <br/></div></div></div>');
var campaign_member_id = window.formyoula.form_fields["3d01-9f62-3928"].get("value");