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
{"lastUpload":"2021-09-24T10:25:57.875Z","extensionVersion":"v3.4.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
Show hidden characters
{ | |
"bootstrapped": true, | |
"in_process_packages": | |
[ | |
], | |
"installed_packages": | |
[ | |
"AdvancedNewFile", | |
"Alignment", | |
"All Autocomplete", |
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
// ==UserScript== | |
// @name GeeksForGeeks Distraction Free Editorials | |
// @namespace http://tampermonkey.net/ | |
// @version 0.4 | |
// @description Hide the left and right sidebars and top nav bar for distraction free editorial reading | |
// @author Rahul Jain (https://rahulja.in) | |
// @match https://www.geeksforgeeks.org/*/ | |
// @grant none | |
// ==/UserScript== |
In a country, there are only 2 currency denominations x and y. z is the bill amount.
Write a function to minimize the amount a person has to pay as tip with the bill. As there is no denomination less than x and y, any amount paid above z is considered tip
Input: x, y, z Output: k or "Error..." (where k is the tip amount)
Example 1
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
-- Split string by delimiter | |
on splitText(theText, theDelimiter) | |
set AppleScript's text item delimiters to theDelimiter | |
set theTextItems to every text item of theText | |
set AppleScript's text item delimiters to "" | |
return theTextItems | |
end splitText | |
-- Get current memory stats | |
set vmstat to do shell script "vm_stat" |
NewerOlder