Skip to content

Instantly share code, notes, and snippets.

View jinnosux's full-sized avatar

jinnosux

View GitHub Profile
@jinnosux
jinnosux / PY0101EN-2-2-Lists.ipynb
Created September 5, 2019 15:01
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jinnosux
jinnosux / PY0101EN-2-1-Tuples.ipynb
Created September 5, 2019 15:09
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jinnosux
jinnosux / mario.ino
Created September 19, 2019 15:33
Arduino - Super Mario
#define NOTE_B0 31
#define NOTE_C1 33
#define NOTE_CS1 35
#define NOTE_D1 37
#define NOTE_DS1 39
#define NOTE_E1 41
#define NOTE_F1 44
#define NOTE_FS1 46
#define NOTE_G1 49
#define NOTE_GS1 52
@jinnosux
jinnosux / PY0101EN-4-1-ReadFile.ipynb
Created December 6, 2019 17:42
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jinnosux
jinnosux / PY0101EN-4-2-WriteFile.ipynb
Created December 6, 2019 17:44
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jinnosux
jinnosux / PY0101EN-5-1-Numpy1D.ipynb
Created December 6, 2019 18:29
Created on Cognitive Class Labs
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jinnosux
jinnosux / weather.py
Created May 1, 2020 12:10
Weather crawler from DarkSky
import requests
from bs4 import BeautifulSoup
#Get website with cordinates of my city ( Novi pazar
data = requests.get("https://darksky.net/forecast/43.1379,20.5124/si12/en")
soup = BeautifulSoup(data.text, "html.parser")
soup.prettify()
#Selecting specific div on website which contains elements we like to display
results=soup.find_all('span', class_='desc swap')
@jinnosux
jinnosux / mario more.py
Created May 7, 2020 20:04
Mario problemset in py
from cs50 import get_int
while True:
height = get_int("Enter height of half-pyramid: ")
if height >= 1 and height <= 8:
break
for i in range(height):
print(' ' * (height-1-i), end="")
print('#' * (i+1), end="")
@jinnosux
jinnosux / characters.csv
Created May 7, 2020 20:08
importing stuff from csv to db
name house birth
Adelaide Murton Slytherin 1982
Adrian Pucey Slytherin 1977
Anthony Goldstein Ravenclaw 1980
Blaise Zabini Slytherin 1979
Cedric Diggory Hufflepuff 1977
Cho Chang Ravenclaw 1979
Colin Creevey Gryffindor 1981
Dean Thomas Gryffindor 1980
Draco Lucius Malfoy Slytherin 1980