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 my friend Alex | |
import math, random | |
Errors = [ | |
"Error", | |
"Log", | |
"File", | |
"Creation", | |
"Pressure", |
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 json | |
from twitch import Helix | |
from twitch.v5.models.comment import Comment | |
def comment_to_dict(comment: Comment): | |
return { | |
'id': comment.id, | |
'created_at': comment.created_at, |
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 | |
from tqdm import tqdm | |
import requests | |
from bs4 import BeautifulSoup | |
base_url = "http://www.textfiles.com/etext/" | |
endings = ['MODERN', 'FICTION', 'NON-FICTION', 'REFERENCE'] | |
if not os.path.exists('files'): |
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
name: Python Linting | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: |
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
Desktop | |
Documents | |
Downloads | |
Music | |
Pictures | |
Public | |
Templates | |
Videos |
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
// in mm | |
height = 180; | |
leg_width = 55.88;// this is the length of width of the table leg | |
union() { | |
translate([0, 0, height*0.6]) { | |
difference() { | |
cube([leg_width, leg_width, 38.1], center=true); | |
cube([leg_width-6.35, leg_width-6.35, 38.25], center=true); |
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 json import loads | |
from datetime import datetime | |
from time import sleep | |
def operate_blinds(opened=False): | |
# operate the blinds | |
# write your blind operation code here | |
print(f"Blinds state: {opened}") | |
if __name__=="__main__": |
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 | |
class USGovWeatherSearch(): | |
def __init__(self): | |
self.lat = 41.08 | |
self.lng = -81.51 | |
self.gridx = 0 | |
self.gridy = 0 | |
self.base_url = "https://api.weather.gov/" | |
self.json = None |
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
bool equal(int x, int y) | |
{ | |
if (x == 0 && y == 0) | |
{ | |
return true; | |
} | |
x--; | |
y--; | |
if (x<0 || y<0) | |
{ |
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
# generated by PrusaSlicer 2.1.1+win64 on 2020-01-30 at 20:15:18 UTC | |
[print:0.2 mm] | |
avoid_crossing_perimeters = 0 | |
bottom_fill_pattern = rectilinear | |
bottom_solid_layers = 3 | |
bridge_acceleration = 0 | |
bridge_angle = 0 | |
bridge_flow_ratio = 1 | |
bridge_speed = 60 |