We will use official box "ubuntu/xenial64" and modify it to work with Vagrant.
- Vagrantfile
<html> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<body> | |
<?php | |
echo "My Cloud App!<br>我的云应用。<br>"; | |
echo $showtime=date("Y-m-d H:i:s"); | |
echo "<hr>"; | |
$filename="yjm.txt"; | |
if (file_exists($filename)) |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <arpa/inet.h> | |
#include <netinet/in.h> | |
#include <netdb.h> | |
#include <errno.h> |
-- user input - mode | |
set mode to 2 -- (2 or 3 or 4) if mode is 2, pic1 and pic2 will be used | if mode is 3, pic1,pic2 and pic3 will be used. | |
-- user input - pics | |
set pic1 to "" | |
set pic2 to "" | |
set pic3 to "" | |
set pic4 to "" | |
-- end of user input | |
if mode is greater than or equal to 2 then | |
if mode is not greater than 4 then |
'SetupPivot: The following subroutine sets up a pivot table | |
' | |
' | |
' author: steven.henderson@usma.edu | |
' | |
'I received assitance from the following site: | |
' |
'SetupPivot: The following subroutine sets up a pivot table | |
' | |
' | |
' author: steven.henderson@usma.edu | |
' | |
'I received assitance from the following site: | |
' |
archive | |
log config | |
logging enable | |
notify syslog contenttype plaintext | |
hidekeys | |
event manager applet Config_Change authorization bypass | |
event config | |
action 1.1 cli command "enable" |
RUN ["apt-get", "update"] | |
RUN ["apt-get", "install", "-y", "zsh"] | |
RUN wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true | |
# docker exec -it my-app-container /bin/zsh |
<template> | |
<div> | |
<form-box title="Hello Form Box" message="A help message" v-on:save="onSave" @clear="onClear"> | |
<b-field label="Name"> | |
<b-input v-model="name"></b-input> | |
</b-field> | |
<b-field label="Email"> | |
<b-input v-model="email"></b-input> | |
</b-field> | |
</form-box> |
def sub_00(haystack: str="", needle:str="") -> bool: | |
return needle in haystack | |
assert sub_00("the quick brown fox jumped over the lazy dog", "lazy") == True | |
assert sub_00("the quick brown fox jumped over the lazy dog", "lazys") == False |