This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyautogui | |
import tkinter as tk | |
from tkinter import filedialog | |
import keyboard | |
root= tk.Tk() | |
canvas1 = tk.Canvas(root, width = 300, height = 300) | |
canvas1.pack() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pytube import YouTube | |
yt=YouTube("https://www.youtube.com/watch?v=oIciz6CSSVQ") | |
stream = yt.streams.first() | |
stream.download() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import keyboard as k | |
f = open('config.txt','r') | |
records = f.read() | |
recs = records.split('\n') | |
for i in recs: | |
if(i != ''): | |
data = i.split(':') | |
k.add_abbreviation(data[0],data[1]) | |
print(data[0]) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# these hotkey and abbreviation works on all the application like chrome or any other tool | |
import pyperclip as p | |
import webbrowser as w | |
import keyboard as k | |
k.add_hotkey('shift+w', lambda: w.open_new_tab(p.paste())) | |
k.add_hotkey('shift+m', lambda: w.open_new_tab('https://www.google.com/search?q='+p.paste())) | |
# abbreviation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PopUpInfo extends HTMLElement{ | |
constructor(){ | |
super(); | |
this.attachFunctionality(); | |
} | |
attachFunctionality(){ | |
var shadow = this.attachShadow({mode:'open'}); | |
var span = document.createElement("span"); | |
span.innerHTML = "Hi Rakesh! your first html Element... Congratulations ..."; | |
shadow.appendChild(span); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require("express"); | |
var app = express(); | |
app.get("/", function(req, res){ | |
res.send("Get methods"); | |
}); | |
app.use(express.static("public")); // put the static data folder name here which contain your UI code. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
*/ | |
package com.akkasample.actor; | |
import com.akkasample.bean.DivOperands; | |
import akka.actor.UntypedActor; | |
import scala.Option; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.akkasample.inbox; | |
import java.util.concurrent.TimeUnit; | |
import com.akkasample.actor.InboxSampleActor; | |
import com.akkasample.bean.Greeting; | |
import akka.actor.ActorRef; | |
import akka.actor.ActorSystem; | |
import akka.actor.Inbox; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* | |
*/ | |
package com.akkasample; | |
import com.akkasample.actor.MessageActor; | |
import com.akkasample.bean.Greeting; | |
import akka.actor.ActorRef; | |
import akka.actor.ActorSelection; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.io.File; | |
import java.io.FileOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.net.URL; | |
import java.security.cert.Certificate; | |
import java.security.cert.CertificateException; | |
import java.security.cert.X509Certificate; | |
import javax.net.ssl.HttpsURLConnection; |