Skip to content

Instantly share code, notes, and snippets.

View lzzy12's full-sized avatar
💭
Turbo C users are stupid

Shivam Jha lzzy12

💭
Turbo C users are stupid
View GitHub Profile
import csv
import os
import zipfile
import sys
def getData(path, phone):
for path, dirs, files in os.walk(path):
for filename in files:
if filename[:5] == phone[:5]:
fullpath = os.path.join(path, filename)
if filename.endswith('.csv'):
@lzzy12
lzzy12 / pick.sh
Last active December 29, 2018 08:07
script to pick changes from lineage gerrit and Team Nexus github to build pie for exynos or at least exynos7870 devices
#!/bin/bash
. build/envsetup.sh
#build/soong
#(cd build/soong; curl https://github.com/TeamNexus/android_build_soong/commit/632057110764ba1dd169496a4a2799b277c385da.patch | git am )
# frameworks/av
repopick 231348 # camera: Allow to use boottime as timestamp reference
#include <iostream.h>
void main()
{
int num;
cout << "Enter number: ";
cin >> num;
for (int row = 1; row <= num; row++)
{
for (int col = 1; col < 2 * num; col++)
void arrange(int arr[], int size){
int positive[10], index_p = 0, index_n = 0;
for(int i = 0; i < size; i++)
{
if(arr[i] < 0)
{
if(i <= index_p-1)
positive[index_p] = arr[index_n];
arr[index_n] = arr[i];
index_n++;
int factorial(int x) {
if (x == 0 || x == 1)
{
return 1;
}
return (x * factorial(x - 1));
}
int hcf(int x, int y) {
if (x == y)
return x;
int main(){
float result = 1.0, base;
int exponent;
cin >> base >> exponent;
if(exponent != 0){
while (exponent){
if(exponent > 0)
{
result *= base;
exponent--;
#include <iostream>
#include <string>
#include "libs.h"
using namespace std;
int main() {
string password;
bool isValid;
while (true) {
#include <iostream>
using namespace std;
int reverse(int in) {
// Takes an int
// @return reverse of a given number of int data type
int r = 0;
while (in != 0)
{
r = (r * 10) + (in % 10);
import java.util.*;
import static java.lang.Math.sqrt;
public class HelloWorld {
public static boolean isSqrNum(int input)
{
// If the sqrt(input) is an integer, then it is a perfect square or square number
return (sqrt(input) % 1 == 0);
}
public static boolean isTriangle(int input)
{
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAxDmCHegqxmLEnQ7VUVRlZwLjDF9VlHeBCzu6o7p5RToF2ED3S3zi4d+6pWrD5lhW4fYMU3KhkW9pxxy7snB3T1VoTwDIfmB3xaFnY254gRB8rBLaq3o4RAyjmmFQu8hSR8R+raNm5v/+PhwnM09COFxlqGqdP/4OoHYALkShr7kZz/ftGlbJqPFc+FQrxOy+rDwv10nTExCPDL/Vfo/9LmLFKb91v6APqI6VrCjUrYWgVcQJcexW2MwKiBGOQkkCU5x7L0DLsCqrCyMKaWF5aaGjW9TV5CpcTjKBIcfzklhQ7SRPXN05INsBVx0+M9mKkXib7Vrb8qHghbJD67gbdw== rsa-key-20180622