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
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): |
import sys, json | |
MAIN_COLORS = ["BLACK","BLUE","GREEN","CYAN","RED","MAGENTA","YELLOW","WHITE"] | |
class PrintBuf(object): | |
def __init__(self): | |
self.pb = "" | |
def print(self, *args): | |
msg = ' '.join(args) |
How to setup Vagrant on Windows 10 using Hyper-V instead of VirtualBox, for STAT1400.
Hyper-V is NOT supported on Windows 10 - Home Edition, you will need Pro Edition or similar.
This depends on your proccessor type AMD or Intel
install packages
npm add gatsby-plugin-sass node-sass postcss-import postcss-preset-env
gatsby-config.js
module.exports = {
plugins: [
{
import argparse | |
from pprint import pprint | |
def main(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument('src_offsets_sizes', | |
type=argparse.FileType('r')) | |
parser.add_argument('source_file', | |
type=argparse.FileType('rb')) |