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
#!/usr/bin/python3 | |
import os | |
def main(): | |
urlFirst = 'http://www.mywebsite.com/img/' | |
extension = '.jpg' | |
for i in range(801): | |
os.system('wget' + urlFirst + str(i) + extension) | |
print("Downloaded!") |
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
#!/usr/bin/python | |
import matplotlib.pyplot as plt | |
def find_distance(x1, y1, x2, y2): | |
d = ((x2-x1)**2+(y2-y1)**2)**0.5 # the algorithm | |
return d | |
def plot_graph(x,y): |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<title>Songs</title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> | |
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script> | |
</head> |
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
// AREA FINDER | |
#include <iostream.h> | |
#include <conio.h> | |
void main() | |
{ | |
clrscr(); | |
int userOption; | |
float area; | |
cout << "AREA FINDER\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
import java.util.Scanner; | |
public class Calculator{ | |
public static void cout(String text){ | |
System.out.print(text); | |
} | |
public static int menu(){ | |
Scanner get = new Scanner(System.in); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Odd Even</title> | |
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script> | |
</head> | |
<body> | |
<table border="1" id="evenOddTable"> | |
<tr> | |
<td>Odd</td> |
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
#!/usr/bin/python3 | |
from time import sleep | |
from requests import get | |
from datetime import datetime | |
from bs4 import BeautifulSoup | |
URL = "http://www.flutur.org/terms" | |
counter = 0 | |
underscore = "|-------------------------------|" |
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
""" | |
question on quora | |
https://www.quora.com/How-many-6-digit-palindromes-are-divisible-by-495 | |
""" | |
nums = [str(x) for x in range(100000, 1000000)] | |
def check_palindrome(num): | |
if num == num[::-1]: | |
return True | |
else: |
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
""" | |
question on quora | |
https://www.quora.com/How-many-6-digit-palindromes-are-divisible-by-495 | |
""" | |
nums = [str(x) for x in range(100000, 1000000)] | |
def check_palindrome(num): | |
if num == num[::-1]: | |
return True | |
else: |
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> | |
#include<conio.h> | |
#include<stdlib.h> | |
#include<stdio.h> | |
#include<string.h> | |
#include<ctype.h> | |
struct date | |
{ | |
int dd,mm,yy; |
OlderNewer