-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2546c04
commit 829714e
Showing
6 changed files
with
111 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import os, sys | ||
os.system("git add .") | ||
print("\033[1;33;40m no spacing in ur input rather use '-'") | ||
a = input("\033[1;33;40m what did u do? \033[1;32m") | ||
os.system("git commit -m "+str(a)) | ||
os.system("git push -f origin master") |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
body { | ||
font-family: Arial, Helvetica, sans-serif; | ||
background-color: black; | ||
background-repeat: no-repeat; | ||
color: green; | ||
height: 100%; | ||
} | ||
.content{ | ||
z-index: 2; | ||
background-color: inherit; | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
height: 100%; | ||
} | ||
#canvas{ | ||
height: 100vh; | ||
} | ||
input, input:focus{ | ||
background-color: inherit; | ||
border-top: 0px ; | ||
border-right: 0px; | ||
border-left: 0px; | ||
border-bottom: 2px solid green; | ||
box-shadow: none; | ||
outline: none; | ||
color: white; | ||
} | ||
label, h2, h1{ | ||
color: yellow; | ||
} | ||
#result{ | ||
color: white; | ||
} | ||
input[type=submit]{ | ||
border: 2px solid green; | ||
color: yellow; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Created by ChillPill 🌶 | ||
|
||
function encryp(){ | ||
document.getElementById("result").style.display = "none" | ||
document.getElementById("canvas").style.display = "block" | ||
} | ||
|
||
let {random,floor,ceil,round}=Math; | ||
let canvas,ctx,W,H; | ||
let drops=[]; | ||
const columns=55; | ||
let fontSize=10; | ||
let intervalA; | ||
class Drop{ | ||
constructor(){ | ||
this.column=floor(random()*columns); | ||
this.row=0; | ||
} | ||
draw(){ | ||
ctx.fillStyle = "green"; | ||
ctx.fillText(String.fromCharCode(floor(random()*208+48)),this.column*cellSize,this.row*cellSize); | ||
} | ||
} | ||
function matrix(){ | ||
canvas=document.getElementById("canvas"); | ||
canvas.width=W=window.innerWidth; | ||
canvas.height=H=window.innerHeight; | ||
ctx=canvas.getContext("2d"); | ||
cellSize =W/columns; | ||
ctx.font = `bolder ${cellSize}px monospace`; | ||
drops.length=0; | ||
intervalA=setInterval(animate,100); | ||
} | ||
function animate(){ | ||
ctx.fillStyle="rgba(0,0,0,0.2)"; | ||
ctx.fillRect(0,0,W,H); | ||
for(let i=drops.length-1;i>=0;i--){ | ||
drops[i].draw(); | ||
drops[i].row++; | ||
if(drops[i].row>80) drops.splice(i,1);//please ask me: why dont we use for of? | ||
} | ||
} | ||
function spawndrop(){ | ||
drops.push(new Drop()); | ||
setTimeout(spawndrop,0+random()*30); | ||
} | ||
|
||
function restart(){ | ||
clearInterval(intervalA); | ||
drops.length=0; | ||
ctx.fillStyle="rgba(0,0,0,1)"; | ||
ctx.fillRect(0,0,W,H); | ||
init(); | ||
} | ||
|