Skip to content

Instantly share code, notes, and snippets.

View rajatgupta1998's full-sized avatar
💻
Blessing your screen.

Rajat Gupta rajatgupta1998

💻
Blessing your screen.
View GitHub Profile
/*In the Mini project 8th module is to find the number of vowel letters in a word(consider both uppercase and lowercase).
Rita allotted this function to Patrick.
Help Patrick to write a program to find the number of vowel letters in a word.
Function Specification:
int findNumberOfVowels(char *);
Input format :
Input consists of a string.
Output format :
Output consists of an integer saying the number of vowel in the given word.
Refer sample Input and Output for further specifications.
@rajatgupta1998
rajatgupta1998 / montana_status.txt
Last active January 19, 2019 17:12
Stock Kernel Development Status For Moto G5S
Linux Upstream: 3.18.73
main kernel CAF tag=LA.UM.6.6.r1-09200-89xx.0
prima: from Moto
f2fs: from Moto
dTV: ported from Cedric
To Do:
Add KCAL Control, Wakelock Blocking Driver
Update Prima
Update with Linux Upstream
@rajatgupta1998
rajatgupta1998 / montana_oreo-8.1-build.prop
Created January 19, 2019 14:00
Build prop from Moto G5S montana oreo 8.1 build OPPS28.65-37-2-2
#
# PRODUCT_OEM_PROPERTIES
#
import /oem/oem.prop ro.product.brand1
import /oem/oem.prop ro.product.name
import /oem/oem.prop ro.product.model
import /oem/oem.prop ro.product.display
import /oem/oem.prop ro.config.ringtone
import /oem/oem.prop ro.config.ringtone_2
<html>
<head>
<title>Table</title>
</head>
<body>
<table border="2">
<tr>
<th colspan="9" align="center"> Turnover Table </th>
ADSP: Done updating, few errors.
Alarm: Updated
Audio: Updated 90%
Bluetooth: Updated 100%
aptX: Updated 100%
CNE: Pending
Camera: Updated 99%, but is slow :(
DRM: Updated 90%
Display/Graphics: Updated 80%
Fingerprint: Updated 100%
@rajatgupta1998
rajatgupta1998 / errors-los15.1-athene.txt
Created March 2, 2019 12:03
LineageOS 15.1 32 bit Errors athene
D AudioTrack: Client defaulted notificationFrames to 7350 for frameCount 22050
E EffectFactoryHAL: Error querying effect descriptor for bce61ec2-eca4-445c-9dcb-91cc7cce01ae: No such file or directory
W AudioFlinger: createEffect() error -2 from EffectGetDescriptor
AudioEffect: set(): AudioFlinger could not create effect / bce61ec2-eca4-445c-9dcb-91cc7cce01ae, status: -2
E AudioPolicyEffects: addOutputSessionEffects(): failed to create Fx notification_helper on session 49
If anyone wants to clone GCC 4.9 from AOSP master, do it with --depth=6 and then checkout to specific revision before deprecation notice were appended to python wrapper and binaries of C and C++ compilers:
AArch64: e54105c9f893a376232e0fc539c0e7c01c829b1e
ARM: b91992b549430ac1a8a684f4bfe8c95941901165
git checkout <sha-1>
@rajatgupta1998
rajatgupta1998 / custom_module.c
Created May 31, 2019 11:44
custom kernel module
#include <linux/module.h>
#include <linux/kernel.h>
int init_module(void)
{
printk(KERN_INFO "Module was loaded successfully...\n");
return 0;
}
void cleanup_module(void)
{
printk(KERN_INFO "Going away...\n");
@rajatgupta1998
rajatgupta1998 / snake_xenia.cpp
Created June 5, 2019 13:19
Snake Xenia Game in C++ for Windows. Compile: g++ snake_xenia.cpp -o snake.exe . Run:
#include<iostream>
#include<cstdlib>
#include<vector>
#include<ctime>
#include<queue>
#include<list>
#include<fstream>
#include<Windows.h> //Sleep(500) ...500 milliseconds delay
using namespace std;
@rajatgupta1998
rajatgupta1998 / snake_xenia.cpp
Created June 5, 2019 13:19
Snake Xenia Game in C++ for Windows. Compile: g++ snake_xenia.cpp -o snake.exe . Run: dblclick snake.exe
#include<iostream>
#include<cstdlib>
#include<vector>
#include<ctime>
#include<queue>
#include<list>
#include<fstream>
#include<Windows.h> //Sleep(500) ...500 milliseconds delay
using namespace std;