This file contains 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
Constituency | MLA | Party | |
---|---|---|---|
Achampet | Dr CHIKKUDU VAMSHI KRISHNA | Indian National Congress | |
Adilabad | PAYAL SHANKER | Bharatiya Janata Party | |
Alair | ILAIAH BEERLA | Indian National Congress | |
Alampur | VIJAYUDU | Bharat Rashtra Samithi | |
Amberpet | KALERU VENKATESH | Bharat Rashtra Samithi | |
Andole | C. DAMODAR RAJANARSIMHA | Indian National Congress | |
Armur | Paidi Rakesh Reddy | Bharatiya Janata Party | |
Asifabad | KOVA LAXMI | Bharat Rashtra Samithi | |
Aswaraopeta | ADINARAYANA. JARE | Indian National Congress |
This file contains 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
javascript:function e(){const t=200,n=e=>e?e.split(/\s+/).length:0,o=(e,t,n)=>{const o=e/t,r=n/e;return.39*o+11.8*r-15.59},r=()=>window.getSelection().toString().trim()||document.body.innerText.trim(),s=r(),l=n(s),a=Math.ceil(l/t),i=s.split(/[.!?]+/).length,c=s.split(/[aeiouy]+/i).length-1,d=o(l,i,c);alert(`Word Count: ${l}\nReading Time: ${a} min\nReadability Level (Flesch-Kincaid Grade Level): ${d.toFixed(2)}`)}e(); |
This file contains 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
// Code generated by ChatGPT | |
javascript:function estimateReadability() { | |
const wordsPerMinute = 200; | |
// Function to get word count from text | |
const getWordCount = text => text ? text.split(/\s+/).length : 0; | |
// Function to calculate readability level | |
const getReadabilityLevel = (wordCount, sentenceCount, syllableCount) => { | |
const averageWordsPerSentence = wordCount / sentenceCount; |
This file contains 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
javascript:(function(wpm = 200){const st = window.getSelection().toString().trim(),tw = st ? st.split(/\s+/).length : document.body.innerText.split(/\s+/).length,et = Math.ceil(tw / wpm);alert(`Word count: ${tw}\nEstimated reading time: ${et} minutes`);})(); |
This file contains 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
// Code generated by Bard | |
// IIFE (Immediately Invoked Function Expression) is used to encapsulate the code within a function to avoid polluting the global namespace and execute it immediately | |
//default parameter is used to set the initial value of the wordsPerMinute variable to 200 assuming assuming that words-per-minute rate for reading. You can adjust this value based on your preferred reading speed. | |
javascript:(function(wordsPerMinute = 200) { | |
// selected text from the webpage is trimmed of any leading or trailing whitespaces | |
const selectedText = window.getSelection().toString().trim(); | |
// We proceed to calculate the estimated reading time based on the selected text or all words in the body | |
// single ternary expression is used instead of if statements |
This file contains 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
# PowerShell script to download a list of files that have a predictable number pattern 1.jpg, 2.jpg etc.. | |
$baseUri = "https://somesite.com/files/" | |
for ($i = 1; $i -lt 9; $i++) { | |
{ | |
$f = $baseUri + $i + ".jpg" | |
$Downloadpath = "C:\temp\" + $i + ".jpg" | |
Write-Output "Processing file: $f" | |
Invoke-WebRequest -Uri $f -Outfile $Downloadpath | |
} |
This file contains 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
word | count | ||
---|---|---|---|
ace | 3 | ||
ant | 3 | ||
arm | 3 | ||
ash | 3 | ||
axe | 3 | ||
bad | 3 | ||
bag | 3 | ||
bar | 3 | ||
bat | 3 |
This file contains 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
//Following code can be used within Google App Script editor & deployed | |
//Original code - https://stackoverflow.com/q/15592094/325251 | |
function doGet(request) { | |
var ss = SpreadsheetApp.openByUrl( "https://docs.google.com/spreadsheet/ccc?key=<YOUR-SPREADSHEET-ID>"); | |
var sheet = ss.getSheets()[0]; | |
//just this line was tweaked to include the web page's title | |
var headers = ["Timestamp", "url","title"]; |
This file contains 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
javascript:(function() { | |
function se(d) { | |
return d.selection ? d.selection.createRange().text : d.getSelection() | |
} | |
s = se(document); | |
//for (i=0; i<frames.length && (s==null || s==''); i++) s = se(frames[i].document); | |
if (!s || s=='') s = prompt('Enter%20search%20terms%20for%20IMDb',''); | |
open('https://m.imdb.com/find?q=' + s).focus(); | |
})(); |
This file contains 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
//IP LOCATION TRACKER BOOKMARKLET | |
//Original source: https://funbutlearn.com/2016/06/ip-location-tracker-bookmarklet-created.html | |
//modified API service from http://ip-api.com which doesn't support HTTPS to https://ipapi.co/ to have a secure endpoint & avoid Mixed Content blocking issue | |
javascript: (function() { | |
var text = ""; | |
if (window.getSelection) { | |
text = window.getSelection().toString(); | |
} else if (document.selection && document.selection.type != "Control") { | |
text = document.selection.createRange().text; | |
} |