Skip to content

Instantly share code, notes, and snippets.

from requests import get
from json import dumps
from queue import SimpleQueue
from time import time, sleep
class Page:
def __init__(self, title, depth, parent):
self.title = title
self.depth = depth
self.parent = parent
@charlesalexanderlee
charlesalexanderlee / App.sol
Created December 1, 2021 12:03
Basic social media smart contract
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.10;
contract App {
address[] internal addresses;
mapping(string => address) internal names;
mapping(address => Profile) public profiles;
mapping(address => mapping(address => Profile)) internal followers;
mapping(address => mapping(address => Profile)) internal following;
mapping(address => Post[]) internal posts;
import praw
import requests
import simplejson
from datetime import datetime
from praw.models import MoreComments
from time import sleep
from requests_oauthlib import OAuth1
from config import (api_key,
secret,
oath_token,
<!DOCTYPE html>
<html lang="en">
<head>
<title>Supreme Steiff Bear Heather Grey - FW18</title>
<link rel="stylesheet" href="https://web-assets.stockx.com/style.app.bundle.a4952abd89190fda99e62d1681863a1edb15a498.css" />
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Swiper/4.5.0/css/swiper.min.css">
<link rel="shortcut icon" href="https://stockx-assets.imgix.net/logo/favicon.ico?auto=compress" type="image/x-icon" />
<link rel="icon" href="https://stockx-assets.imgix.net/logo/favicon.ico?auto=compress" type="image/x-icon" />
import socket
import pyaudio
# Socket
HOST = socket.gethostbyname(socket.gethostname())
# Use this instead if connecting from another computer
# HOST = 'enter server IPV4 here'
PORT = 5000
# Audio
import socket
import pyaudio
# Socket
HOST = socket.gethostbyname(socket.gethostname())
# Use this instead if connecting from another computer
# HOST = 'enter server IPV4 here'
PORT = 5000
# Audio