This file contains hidden or 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
git config --global user.name "Your Name" | |
git config --global user.email "youremail@example.com" | |
mkdir my-project | |
cd my-project | |
git init | |
# adding files | |
git add . |
This file contains hidden or 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
gdsgg gdsfgdf gfdsfg |
This file contains hidden or 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
/** | |
* Sarik Sadman | |
* started 17-10-2020 | |
* took almost three days to reach here | |
*/ | |
#include <cs50.h> | |
#include <stdio.h> | |
#include <string.h> |
This file contains hidden or 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 <stdio.h> | |
void sort(int arr[], int start, int end); | |
void merge(int arr[], int start, int middle, int end); | |
int main(void) | |
{ | |
const int SIZE = 10; | |
int arr[] = {120, 69, 28, 22, 22, 35, 102, 239, 1001, 7}; | |
sort(arr, 0, SIZE - 1); |
This file contains hidden or 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
/** cs50x 2020 | |
* sarik sadman | |
* started: 23:11 11/11/2020 | |
*/ | |
#include <cs50.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <ctype.h> | |
#include <math.h> |
This file contains hidden or 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
/** 11-10-2020 12:56 pm | |
sarik sadman | |
biwta office | |
*/ | |
#include <cs50.h> | |
#include <stdio.h> | |
int get_length(long); | |
int check_luhns(long, int); |
This file contains hidden or 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
/* 10 - 10 - 2020 | |
mario submission */ | |
#include <stdio.h> | |
#include <cs50.h> | |
void charprinter(int, string); | |
int main(void) | |
{ |
This file contains hidden or 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 <stdio.h> | |
#include <cs50.h> | |
/** | |
* 2015-08-16 | |
*12-52 | |
*/ | |
int main(int argc, char *argv[]) | |
{ | |
//use input | |
long long int input; |
This file contains hidden or 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
from PIL import Image | |
import os | |
IMAGE_PATH = "./images/" | |
print(os.listdir(IMAGE_PATH)) | |
for img in os.listdir(IMAGE_PATH): | |
filename, ext = img.split(".") | |
imfile = Image.open(IMAGE_PATH+img) | |
imfile = imfile.convert('L') # use '1' for pure black and white |
This file contains hidden or 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 <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
int main(int argc, char *argv[]){ | |
clock_t start, end; | |
double cpu_time_used; | |
start = clock(); | |
int n = 0; | |
int h = atoi(argv[1]); |
NewerOlder