Skip to content

Instantly share code, notes, and snippets.

View Rohan62442's full-sized avatar

Rohan Pinto Rohan62442

  • Accenture
  • Bengaluru
View GitHub Profile
@Rohan62442
Rohan62442 / android-studio.desktop
Created August 27, 2014 18:28
Custom desktop configuration file for Android Studio. Built using cconf (https://github.com/Rohan62442/Linux-Scripts)
[Desktop Entry]
Name=Android Studio
Version=0.8.0
Exec=/opt/android-studio/bin/studio.sh
Icon=/opt/android-studio/bin/idea.png
Terminal=false
Type=Application
Categories=IDE;Development
Action=New
Keywords=Android;Studio;Java;Cordova
@Rohan62442
Rohan62442 / eclipse.desktop
Created August 27, 2014 18:26
Custom desktop configuration file for Eclipse IDE. Built using cconf (https://github.com/Rohan62442/Linux-Scripts)
[Desktop Entry]
Name=Eclipse IDE
Version=4.4
Exec=/opt/eclipse/eclipse
Icon=eclipse
Terminal=False
Type=Application
Categories=IDE;Development;Java
Action=New
Keywords=Eclipse;IDE;Java;Development
@Rohan62442
Rohan62442 / sublime.desktop
Created August 27, 2014 18:23
Custom desktop configuration file for Sublime Text 2. Built using cconf (https://github.com/Rohan62442/Linux-Scripts)
[Desktop Entry]
Name=Sublime Text 2
Version=2.02
Exec=/usr/bin/sublime
Icon=sublime-text-2
Terminal=False
Type=Application
Categories=TextEditor;Development
MimeType=text/plain
Action=New
@Rohan62442
Rohan62442 / scroll-to-top.js
Created August 26, 2014 17:52
Scroll-to-Top button implemented in JQuery
$(document).ready(function() {
// Show or hide the sticky footer button
$(window).scroll(function() {
if ($(this).scrollTop() > 200) {$('.scrollup').fadeIn(200); }
else { $('.scrollup').fadeOut(200);}
});
// Animate the scroll to top
$('.scrollup').click(function(event) { event.preventDefault(); $('html, body').animate({scrollTop: 0}, 800);
})
});
@Rohan62442
Rohan62442 / rpsls.py
Created August 26, 2014 17:48
Rock-Paper-Scissors-Lizard-Spock: Python Console game from 'The Big Bang Theory'
#!/usr/bin/python3
# rock-paper-scissors-lizard-spock
# 0 - rock
# 1 - spock
# 2 - paper
# 3 - lizard
# 4 - scissors
PLAYER_SCORE=0
@Rohan62442
Rohan62442 / Hangman.py
Last active August 29, 2015 14:05
Hangman: Python game using PyQt4
#!/usr/bin/python3
from PyQt4 import QtCore, QtGui
try:
_fromUtf8 = QtCore.QString.fromUtf8
except AttributeError:
def _fromUtf8(s):
return s
@Rohan62442
Rohan62442 / Guess.py
Last active August 29, 2015 14:05
Guess: A combination of Luck and Binary Search. Learn Binary Search as a Console game.
#!/usr/bin/python3
import random
num=random.randint(1,100)
print("Guess!! A number between 1 and 100.\nYou get 5 shots at it.\n")
ch=0
while ch<5:
ans=input("Enter a number: ")
if int(ans)<num:
print("Too low...\n")
if int(ans)>num: