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
<template> | |
<h1>Hello World!</h1> | |
</template> | |
<script> | |
export default { | |
name: 'app' | |
} | |
</script> |
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
'use strict'; | |
import App from '../components/App.vue'; | |
import Vue from 'vue'; | |
new Vue({ | |
el: '#app', | |
render: h => h(App) | |
}); |
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
'use strict'; | |
const path = require('path'); | |
const webpack = require('webpack'); | |
module.exports = { | |
/** @see https://webpack.js.org/configuration/entry-context/#entry */ | |
entry: './src/js/index.js', | |
/** @see https://webpack.js.org/configuration/output/ */ |
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; |