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
class buckets: | |
def __init__(self,durp=[]): | |
self.counts = {} | |
self.maxCount = 0 | |
self.totalCount = 0 | |
for x in durp: | |
self.count(x) | |
def count(self,x): | |
self.totalCount += 1 | |
try: |
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 os import urandom | |
from math import * | |
import hashlib | |
import time | |
class ___: | |
pass | |
_dir = dir(___) | |
def printSelf(x): |
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
class pointXY: | |
def __init__(self,x,y): | |
self.x = x | |
self.y = y | |
def svgStr(self): | |
return f"{self.x},{self.y}" | |
class lines: |
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 svgwrite | |
def vecadd(*args): | |
return [sum(a) for a in zip(*args)] | |
vadd = vecadd | |
class pen: | |
def __init__(self,dwg=None,x=None,y=None): | |
self.stroke=svgwrite.rgb(10, 10, 16, '%') | |
self.location = (0 if x == None else x,0 if y == None else y) |
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
let print = function(s){ | |
console.log(s); | |
} | |
let hasValue = function(x){ | |
return x!==null && x!==undefined ; | |
} | |
let attemptListToObject = function(a){ | |
if(a.every(x => x instanceof Object && Object.keys(x).length == 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
#importing needed libraries | |
from wsgiref.simple_server import make_server | |
from pyramid.config import Configurator | |
from pyramid.response import Response | |
from pyramid.view import view_config | |
import openai | |
import json | |
#creating a data structure for our application | |
responses = [] |
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 urllib import parse | |
from wsgiref.simple_server import make_server | |
from pyramid.config import Configurator | |
from pyramid.response import Response | |
from pyramid.view import view_config | |
class boilerPlate: |
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
package main | |
import( | |
"bytes" | |
"fmt" | |
"crypto/sha256" | |
"math/rand" | |
"time" | |
"net/http" |
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 urllib import parse | |
import requests | |
from bs4 import BeautifulSoup | |
import hashlib | |
import sys | |
from PIL import Image | |
import shutil | |
def findFlavor(attrs): |
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 hashlib | |
from urllib import parse | |
import webcolors | |
from PIL import Image | |
import os | |
from wsgiref.simple_server import make_server | |
from pyramid.config import Configurator | |
from pyramid.response import Response | |
from pyramid.view import view_config |
NewerOlder