Skip to content

Instantly share code, notes, and snippets.

View Tunas1337's full-sized avatar

Andrej Tunas1337

View GitHub Profile
<html>
<head>
<title>Full Stack Project 1</title>
<!-- jQuery -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- Toastr -->

Keybase proof

I hereby claim:

  • I am tunas1337 on github.
  • I am xnopyt (https://keybase.io/xnopyt) on keybase.
  • I have a public key ASAwviMbmDg5EQReXa4LsuyR9iMEPbE0qO4Y4ziY5UHopQo

To claim this, I am signing this object:

@Tunas1337
Tunas1337 / gravitydefied.py
Created May 12, 2022 14:53
gravitydefied
from math import *
@Tunas1337
Tunas1337 / raycast.py
Last active May 12, 2022 16:05
Raytrace
import kandinsky
import math
import ion
from ion import *
global menu
menu = False
menu=False
fovy=60
global camera
@Tunas1337
Tunas1337 / sierpinski.py
Last active May 11, 2022 18:33
sierpinski
import kandinsky
def drawTriangle(points,color):
kandinsky.draw_line(int(points[0][0]),int(points[0][1]),int(points[1][0]),int(points[1][1]),color)
kandinsky.draw_line(int(points[1][0]),int(points[1][1]),int(points[2][0]),int(points[2][1]),color)
kandinsky.draw_line(int(points[2][0]),int(points[2][1]),int(points[0][0]),int(points[0][1]),color)
def getMid(p1,p2):
return ( (p1[0]+p2[0]) / 2, (p1[1] + p2[1]) / 2)
@Tunas1337
Tunas1337 / ruin.py
Last active March 31, 2022 02:13
ruin
from math import *
from kandinsky import fill_rect as drawRect,draw_string as drawTxt,get_pixel as getPxl
from ion import keydown as key
from time import monotonic as cTime,sleep
from random import randint as rInt,seed as rSeed
TARG_SPF=0.033333333333 #30fps
BG_COL,PL_COL,PTF_COL,NMY_COL,NMY_COL2,BLACK=(75,40,40),(240,10,10),(200,100,100),(0,150,255),(0,50,200),(0,0,0)
NAME,AUTH,START_MSG,EDITOR_URL=" R U | N "," by F | M E ","Press [OK] to start","/python/fime/ruin_lvl_maker"
class Entity():
def __init__(it,x,y,w,h,drawFonc):
@Tunas1337
Tunas1337 / doodlejump.py
Last active March 31, 2022 01:31
doodlejump
"""""
Doodle Man !
A doodle jump clone (eco +).
Written by Fime
08/01/2021 - V1.0
"""
from random import randint
from ion import keydown as kDwn
from time import monotonic as mntnc,sleep
from kandinsky import fill_rect as rect, draw_string as text
@Tunas1337
Tunas1337 / benchmark.py
Last active April 21, 2022 01:19
benchmark
import kandinsky
import random
for i in range(1, 30000):
kandinsky.fill_rect(random.randint(0, 320), random.randint(0, 240), random.randint(
0, 150), random.randint(0, 170), color(randint(0, 255), randint(0, 255), randint(0, 255)))
@Tunas1337
Tunas1337 / testscriptpy.py
Last active March 24, 2022 16:33
testscript.py
from math import *
from ulab import numpy as np
import matplotlib.pyplot as plt
print("Hello world!");
x = np.arange(0, 5, 0.1)
y = np.sin(x)
#x = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
#y = [1, 5, 2, 6, 78, 4, 7, 3, 6, 4, 11]
plt.plot(x,y)