Install Msys2 Open the MSYS terminal run the updates and then enter these commands.
pacman -Syu
Close and Re-Open Msys2 Terminal
pacman -Su
pacman -Sy base-devel mingw-w64-x86_64-gcc
import pygame | |
import pygame_gui | |
import math | |
import pyaudio | |
import struct | |
SCREEN_X = 800 | |
SCREEN_Y = 600 | |
SCOPE_DIMS = (SCREEN_X//4, SCREEN_Y // 4) |
import pygame | |
import pygame_gui | |
import math | |
import pyaudio | |
import struct | |
SCREEN_X = 800 | |
SCREEN_Y = 600 | |
SCOPE_DIMS = (SCREEN_X//4, SCREEN_Y // 4) |
import pygame | |
import numpy as np | |
SCREEN_X = 256 | |
SCREEN_Y = 256 | |
GRID_SIZE = SCREEN_X //6 | |
CELL_W = SCREEN_X // GRID_SIZE | |
CELL_H = SCREEN_Y // GRID_SIZE |
import pygame | |
import pygame_gui | |
import math | |
import pyaudio | |
import struct | |
SCREEN_X = 800 | |
SCREEN_Y = 600 | |
SCOPE_DIMS = (SCREEN_X//4, SCREEN_Y // 4) |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>whatever</title> | |
<script> | |
/* | |
This is a completly disorganised mess of shoehorning old code into a new proof of concept. |
use rand::Rng; | |
use std::io; | |
static HINT_HIGHER: &str = "higher"; | |
static HINT_LOWER: &str = "lower"; | |
fn main() { | |
println!("Guess the integer between 0 and 9."); | |
let target: u8 = rand::thread_rng().gen_range(1..10); |
<!DOCTYPE html> | |
<html><head> | |
<style> | |
.finfo-list{ | |
list-style: none; | |
display: flex; | |
flex-wrap: wrap; | |
align-items: flex-start; | |
flex-direction: row; | |
max-height: 80vh; |
<html> | |
<head> | |
<style> | |
.container{ display:inline-flex;} | |
#backButton button{width:100%; height:100%} | |
#nextButton{ } | |
#nextButton button{width:100%; height:100%} | |
</style> | |
</head> | |
<body> |
Install Msys2 Open the MSYS terminal run the updates and then enter these commands.
pacman -Syu
Close and Re-Open Msys2 Terminal
pacman -Su
pacman -Sy base-devel mingw-w64-x86_64-gcc
# opening the csv file | |
def read_file(csvfile): | |
file = open(csvfile, 'r') | |
file.readline() | |
line = file.readline() | |
while line: | |
line = line.strip() | |
values = line.split(",") | |
new_values = [] | |
for i, attr in enumerate(values): |