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
c9xp!C!ox!GP8Tw?_==B4652HW4w@odXtBbtUg=n-Dizf0CJk1+d5zW!EFQ{18!y{HL&MA+n<&sGAy9 | |
soQ<Lc^z<Mg~B(Z}TD>9%y78Klhnb%89A<ZUOy0Ok$%6P3p67^TA2P!AV3lGGR2T-wmawMtgSTFb^mT | |
_sa*u+voHgdkokL@D4gdi{a;=f4UYl?oa|PnNonDCg3Pc*y}<j@HlBZF<f6Q!sHfuHw>q6#KU@XrkZ} | |
a?B2jA)XOv-@_6_yezBX*<U&iWzgxr8WjBwLGK#<A#hX3qRah44>v`-#_4G)9vGsntN2oL{=VTEowmW | |
~SB1b{UCW>n+g0EmAWDekq6QSIsE<!3RRdt0!Bm%AlqzcIekp?8m`2GH%l;`>8-`@4fx;st#aB~AQDb | |
xOMpI%TZL{JVuzJbB4APFeS-N=jUtK+pIMU+~OG6`xhb6y!nY?_dchy-}X{lqZKUia4ErVC$cNG`?E? | |
)hphJ$pn_3u#1?>Q8{Ap|Fv=^ehSLfW)w8sDPE??lha(k{28qJ#Xpu$D!-`r#G@=|y6eVCq(47|V_dE | |
1@<T7I=R=MiuWN!pq9O{U-SqH{|i=m43h2s5ms=uSJuWrY-(|TCqeRZ#eXal|rl*ERPAn?V4sRHbP~_ | |
=!v3M1>$9Xr3r@y)j^-Oi{9Y<e^rY0`olC?C=E38#Xeg%QrZpm4CO#$H?`bdNz6-4o13hEtA;$qEZZe | |
pW94lw<LlZuUry;9=n<-uUy#zfD@GFZJF-Fvitm63jQ8*kHBG@GwR6yKz%xfv2@GKIehM>dNyI+cX@_ |
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
# part1: https://gist.github.com/EncodeTheCode/7eb9a1a9afd4429972042d95b8a4dac3 | |
# part2: https://gist.github.com/EncodeTheCode/c3fbfa5e33cf2a331f7e6dc3b24ef3bc | |
# part3: https://gist.github.com/EncodeTheCode/69ad52b1f00c22d69cc41fa03dfe42dc | |
data=data2=data3="" | |
with open('7eb9a1a9afd4429972042d95b8a4dac3') as fp:data=fp.read() | |
with open('c3fbfa5e33cf2a331f7e6dc3b24ef3bc') as fp:data2=fp.read() | |
with open('69ad52b1f00c22d69cc41fa03dfe42dc') as fp:data3=fp.read() | |
data+=data2 | |
data2+=data3 | |
with open ('69ad52b1f00c22d69cc41fa03dfe42dc','w') as fp:fp.write(data) |
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 cv2 | |
import numpy as np | |
import math | |
img = cv2.imread("/content/gdrive/My Drive/cr7.jpg") | |
img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) | |
rows, cols = img.shape | |
##################### |
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
function l(a,b){const c=new Date(a);const d=new Date(b);const s=1000*60*60*24;const r=d.getTime()-c.getTime();const w=Math.round(r/s);return w;}const n=new Date();var t=l("09/12/2022",n); |
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
function l(e,n){const t=new Date(e),a=new Date(n);n=a.getTime()-t.getTime();return Math.round(n/864e5)}const n=new Date;var t=l("09/12/2022",n); |
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
CREATE DATABASE best_store; | |
CREATE TABLE "customer" ( | |
id SERIAL PRIMARY KEY, | |
name VARCHAR(150) NOT NULL, | |
email VARCHAR(100) NOT NULL UNIQUE, | |
password VARCHAR (50) NOT NULL | |
); | |
CREATE TABLE "customer_address" ( |
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 pygame | |
import math | |
# Define colors | |
WHITE = (255, 255, 255) | |
BLACK = (0, 0, 0) | |
RED = (255, 0, 0) | |
YELLOW = (255, 255, 0) | |
# Define constants |
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 pygame | |
# Define colors | |
WHITE = (255, 255, 255) | |
BLACK = (0, 0, 0) | |
RED = (255, 0, 0) | |
# Define constants | |
SCREEN_WIDTH = 600 | |
SCREEN_HEIGHT = 540 |
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 pygame | |
import math | |
# Initialize pygame | |
pygame.init() | |
# Set up the display | |
screen_width = 800 | |
screen_height = 600 | |
screen = pygame.display.set_mode((screen_width, screen_height)) |
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 pycdlib | |
# Open the CD/DVD drive | |
try: | |
cd = pycdlib.PyCdlib() | |
cd.open('/dev/cdrom') | |
except IOError: | |
print('No CD/DVD in tray.') | |
exit() |