This file contains hidden or 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
    
  
  
    
  | # -*- mode: ruby -*- | |
| # vi: set ft=ruby : | |
| # All Vagrant configuration is done below. The "2" in Vagrant.configure | |
| # configures the configuration version (we support older styles for | |
| # backwards compatibility). Please don't change it unless you know what | |
| # you're doing. | |
| Vagrant.configure("2") do |config| | |
| # The most common configuration options are documented and commented below. | |
| # For a complete reference, please see the online documentation at | 
  
    
      This file contains hidden or 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
    
  
  
    
  | VENV_INSTALL_DIR = venv | |
| # The first target listed acts as the default. | |
| install: | |
| @python3 -m venv ${VENV_INSTALL_DIR} | |
| @. ${VENV_INSTALL_DIR}/bin/activate && pip3 install Flask > /dev/null && python3 -c \ | |
| "import subprocess; \ | |
| import re; \ | |
| flask_info = subprocess.run('pip3 show Flask', encoding='utf-8', shell=True, stdout=subprocess.PIPE).stdout; \ | |
| flask_version = re.compile('Version: ([0-9]+.[0-9]+)').search(flask_info)[1]; \ | 
  
    
      This file contains hidden or 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
    
  
  
    
  | STD = -std=c99 | |
| # > If there are C compiler options that must be used for proper compilation of | |
| # > certain files, do not include them in CFLAGS. Users expect to be able to | |
| # > specify CFLAGS freely themselves. Instead, arrange to pass the necessary | |
| # > options to the C compiler independently of CFLAGS, by writing them | |
| # > explicitly in the compilation commands or by defining an implicit rule [...] | |
| CFLAGS = $(STD) -O2 -pedantic -Wall -Wextra -Iinclude -g -fsanitize=address -fno-omit-frame-pointer | |
| # The first target listed acts as the default. | 
  
    
      This file contains hidden or 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
    
  
  
    
  | #define _POSIX_C_SOURCE 200809L | |
| #include <stdio.h> | |
| #include <string.h> | |
| #define PENCIL_SPACE ' ' | |
| size_t paper_word_count(char *paper) | |
| { | |
| size_t count = 0; | 
  
    
      This file contains hidden or 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
    
  
  
    
  | [package] | |
| name = "simple-web-server" | |
| version = "0.1.0" | |
| authors = ["James Benner <[email protected]>"] | |
| [dependencies] | |
| time = "0.1" | 
  
    
      This file contains hidden or 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
    
  
  
    
  | ^([a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)?)__([a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)?)(?:--)([a-zA-Z0-9]+(?:-[a-zA-Z0-9]+)?)$ | 
  
    
      This file contains hidden or 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
    
  
  
    
  | int server_sock = socket(PF_INET, SOCK_STREAM, IPPROTO_TCP); |