Skip to content

Instantly share code, notes, and snippets.

View RupGautam's full-sized avatar

Rup Gautam RupGautam

View GitHub Profile
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDJQSlwU5cYJ1V1oMIlkhjq93YyXsCRxOTGIDCg0n169AKR9FkiFPmdZ6MO0G6LDAdckuuSpq7DQA2EHtJpqpMxQv+pYEcKA4XS6Ev91LnWRecQQ5PzDzI6YdfBcK/qnqilt8GfUzI2oD1hLugnDtetL4/0ck/XHCFQivVbev0xqDmG5Dd5aQ/GrAqEGY7VpVkfwA80PSIkpk/d5mVooTrvJghVXIAX8ziFAAod9ynrirUh6LQoeKPyeSQ3eX/JyBil2yJ8+xmym7WSBp60RHbUae433xZoSzqQsWrLr4x6TtG13pNrfMeZGNxejaWeZ8utUQkqBUBoV/1MbwL3Orh1 rupngautam@gmail.com
@RupGautam
RupGautam / autodelete_cookie_whitelist.json
Last active March 7, 2019 20:34
autodelete cookie whitelist
@RupGautam
RupGautam / pptx-to-pdf.applescript
Last active March 7, 2019 21:39
Convert pptx to pdf Applescript
on run {input, parameters}
tell application "Finder"
set theItems to input
repeat with itemRef in theItems
set theItemParentPath to (container of itemRef) as text
set theItemName to (name of itemRef) as string
@RupGautam
RupGautam / draggable-with-javascript.markdown
Created February 9, 2018 23:12
Draggable with Javascript

Draggable with Javascript

#Draggable with JavaScript Draggable div using only plain javascript . Touch event is now added ; ) . Feel free to fork it &improv it and also tell me what new thing you added, I loved to see it :) .

A Pen by Rup Gautam on CodePen.

License.

@RupGautam
RupGautam / Lecture4.md
Created January 31, 2018 00:28
[Lecture 4] JavaScript

Recursion

function talksAbout(node, string) {
	if (node.nodeType == document.ELEMENT_NODE) {
		for (var i = 0; i < node.childNodes.length; i++) {
			if (talksAbout(node.childNodes[i], string))
				return true;
	}
	return false;
	} else if (node.nodeType == document.TEXT_NODE) {

10.1 Which of the following statements are true about an immutable object?

A. The contents of an immutable object cannot be modified. B. All properties of an immutable object must be private. C. All properties of an immutable object must be of primitive types. D. An object type property in an immutable object must also be immutable. E. An immutable object contains no mutator methods.

Section 10.3 Scope of Variables 10.2 What is the printout for the first statement in the main method?

@RupGautam
RupGautam / raspi-headless-setup.md
Last active December 9, 2017 02:58
Headless Raspi setup

Etcher is a powerful image flasher for cross platforms.

On mac OS: brew cask install etcher

Other OS:

https://github.com/resin-io/etcher

  • Install it and flash the Raspbian into your MicroSD
__ScriptVersion="1.0"
#-----------------------------------------------------------------------
# Q5. usage function
#-----------------------------------------------------------------------
CMD_LINE_USAGE="Usage: $0 [-h] [-f file] [-r report]"
function usage ()
{
echo $CMD_LINE_USAGE 1>&2;
@RupGautam
RupGautam / test.sh
Last active December 7, 2017 23:31
__ScriptVersion="1.0"
#-----------------------------------------------------------------------
# Q5. usage function
#-----------------------------------------------------------------------
CMD_LINE_USAGE="Usage: $0 [-h] [-f file] [-r report]"
function usage ()
{
echo $CMD_LINE_USAGE 1>&2;
__ScriptVersion="1.0"
#-----------------------------------------------------------------------
# Q5. usage function
#-----------------------------------------------------------------------
CMD_LINE_USAGE="Usage: $0 [-h] [-f file] [-r report]"
function usage ()
{
echo $CMD_LINE_USAGE 1>&2;