This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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++) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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++; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
int main(){ | |
float result = 1.0, base; | |
int exponent; | |
cin >> base >> exponent; | |
if(exponent != 0){ | |
while (exponent){ | |
if(exponent > 0) | |
{ | |
result *= base; | |
exponent--; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string> | |
#include "libs.h" | |
using namespace std; | |
int main() { | |
string password; | |
bool isValid; | |
while (true) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ssh-rsa AAAAB3NzaC1yc2EAAAABJQAAAQEAxDmCHegqxmLEnQ7VUVRlZwLjDF9VlHeBCzu6o7p5RToF2ED3S3zi4d+6pWrD5lhW4fYMU3KhkW9pxxy7snB3T1VoTwDIfmB3xaFnY254gRB8rBLaq3o4RAyjmmFQu8hSR8R+raNm5v/+PhwnM09COFxlqGqdP/4OoHYALkShr7kZz/ftGlbJqPFc+FQrxOy+rDwv10nTExCPDL/Vfo/9LmLFKb91v6APqI6VrCjUrYWgVcQJcexW2MwKiBGOQkkCU5x7L0DLsCqrCyMKaWF5aaGjW9TV5CpcTjKBIcfzklhQ7SRPXN05INsBVx0+M9mKkXib7Vrb8qHghbJD67gbdw== rsa-key-20180622 |
NewerOlder