Skip to content

Instantly share code, notes, and snippets.

View indraoli429's full-sized avatar
🇳🇵
Working from home

Indra Bahadur indraoli429

🇳🇵
Working from home
View GitHub Profile
@indraoli429
indraoli429 / bahmni93.sh
Last active August 23, 2023 06:37
Bahmni 0.93 installer
#!/bin/bash
# variables
me="who -m"
kernel="uname -r"
os="cat /etc/centos-release"
echo -e "\n===================================================="
echo "Bahmni 0.93 installer is running!!"
echo "Current user (You): $me"
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>css animation</title>
<style>
body {
background-color: rgb(72 72 72);
}
@indraoli429
indraoli429 / count_upp_low_case.py
Last active January 15, 2021 06:15
Basic example of the python functions and loops
# Write a Python function that accepts a string and calculate the number of upper case letters and
# lower case letters.
def count_upp_low_case(any_string):
"""Description: count the upper and lowercase characters from given input"""
count_uppercase, count_lowercase, count_special_char = 0, 0, 0
for char in any_string:
if char.isupper():
count_uppercase += 1
@indraoli429
indraoli429 / rps_nth_round_game.py
Last active January 11, 2021 16:38
ROCK PAPER AND SCISSOR game best of n'th round version #python
# importing built-in library from python 3 itself
import random
print('Welcome to the RPS game\n'
'-----Winning rules-----\n'
'Rock vs Paper = Paper wins \n'
'Rock vs Scissor = Rock wins \n'
'Paper vs Scissor = Scissor wins\n'
'----------------------------------\n')
@indraoli429
indraoli429 / rps_game.py
Last active January 11, 2021 16:36
Rock PAPER scissor game in python
#importing built-in library from python 3 itself
import random
print('Welcome to the RPS game\n')
print('-----Winning rules-----')
print('Rock vs Paper = Paper wins \n' +
'Rock vs Scissor = Rock wins \n' +
'Paper vs Scissor = Scissor wins')
print('----------------------------------\n')
@indraoli429
indraoli429 / equalnumber.c
Last active November 7, 2020 04:51
Which two given number are equal?
// Online C compiler to run C program online
#include <stdio.h>
int main() {
int fNumber;
int sNumber;
int tNumber;
printf("Enter a first integer: ");
scanf("%d", &fNumber);
@indraoli429
indraoli429 / message.html
Created October 22, 2020 19:13
Example of 'Web site or app under construction monitoring page'
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link rel="icon" type="image/png" href="#"/>