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
| import requests | |
| from operator import itemgetter | |
| # Make an API call, and store the response. | |
| url = 'https://hacker-news.firebaseio.com/v0/topstories.json' | |
| r = requests.get(url) | |
| print("Status code:", r.status_code) |
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 pdfminer.converter import PDFPageAggregator | |
| from pdfminer.layout import LAParams, LTFigure, LTTextBox | |
| from pdfminer.pdfdocument import PDFDocument | |
| from pdfminer.pdfinterp import PDFPageInterpreter, PDFResourceManager | |
| from pdfminer.pdfpage import PDFPage, PDFTextExtractionNotAllowed | |
| from pdfminer.pdfparser import PDFParser | |
| from pprint import pprint | |
| text = "" | |
| stack = "" |
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
| sudo wget https://github.com/shiftkey/desktop/releases/download/release-2.6.3-linux1/GitHubDesktop-linux-2.6.3-linux1.deb | |
| #then in the packaeg folder run package manager installation. | |
| sudo dpkg -i GitHubDesktop-linux-2.6.3-linux1.deb |
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 <iostream> | |
| #include <string> | |
| #define PI 3.1415926 | |
| using namespace std; | |
| ///////////////////------------------Variables---------------///////////////////////// |
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
| #!/usr/bin/python3 | |
| import glob | |
| import os | |
| from random import randint | |
| from time import sleep | |
| # Time interval in hours | |
| hours = 1 / 60 |
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
| import os | |
| import click | |
| @click.command() | |
| @click.option('--file', '-f', help='RST file to convert into Markdown. ') | |
| def file_convert(file): | |
| click.echo(f'Converting {file}....') | |
| click.echo(f"Check Your dirictory for {str(file).replace('rst','md')}") | |
| os.mkdir('created') |
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
| # Single line comments start with a number symbol. | |
| """ Multiline strings can be written | |
| using three "s, and are often used | |
| as documentation. | |
| """ | |
| #################################################### | |
| ## 1. Primitive Datatypes and Operators | |
| #################################################### |
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
| ''' | |
| author: yusufadell | |
| Name: collatz-conj.py | |
| Purpose: Find the number of steps it takes to reach one using the following process: | |
| If n is even, divide it by 2. If n is odd, multiply it by 3 and add 1. | |
| Author: Yusuf Adel (y8l) | |
| Algorithm: Collatz conjecture | |
| License: MIT |
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
| { | |
| "theme": "serika_dark", | |
| "customTheme": false, | |
| "customThemeColors": [ | |
| "#323437", | |
| "#e2b714", | |
| "#e2b714", | |
| "#646669", | |
| "#d1d0c5", | |
| "#ca4754", |
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
| import threading, zipfile | |
| class AsyncZip(threading.Thread): | |
| def __init__(self, infile, outfile): | |
| threading.Thread.__init__(self) | |
| self.infile = infile | |
| self.outfile = outfile | |
| def run(self): |
OlderNewer