Skip to content

Instantly share code, notes, and snippets.

View xRahul's full-sized avatar

Rahul Jain xRahul

View GitHub Profile
@xRahul
xRahul / cloudSettings
Last active September 24, 2021 10:25
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-09-24T10:25:57.875Z","extensionVersion":"v3.4.3"}
@xRahul
xRahul / Package%20Control.sublime-settings
Created February 2, 2020 07:59
Sublime Text 3 - SyncSettings
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"AdvancedNewFile",
"Alignment",
"All Autocomplete",
@xRahul
xRahul / gfgEditorialDistrationFree.js
Created May 26, 2019 08:04
GeeksForGeeks Distraction Free Editorials UserScript
// ==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==
@xRahul
xRahul / LeastTipProblem.md
Created May 4, 2017 07:46
Least Tip Problem

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

@xRahul
xRahul / github-user-search.markdown
Created April 25, 2017 18:10
Github User Search
@xRahul
xRahul / RAM_Overuse_Notification.applescript
Last active March 17, 2017 18:03
Applescript to notify when RAM on mac is using compression or swaps. This is useful when you have SSD installed
-- 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"
@xRahul
xRahul / MaterializeDropdown.markdown
Last active December 28, 2016 14:44
Materialize Dropdown
@xRahul
xRahul / Collaborative List.markdown
Created June 23, 2016 17:00
Collaborative List
@xRahul
xRahul / Random Quotes - React.markdown
Created June 8, 2016 16:48
Random Quotes - React