This file contains 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
From: Ian Lance Taylor | |
After many discussions and reading many comments, we plan to move | |
forward with some changes and clarifications to the generics design | |
draft. | |
1. | |
We’re going to settle on square brackets for the generics syntax. | |
We’re going to drop the “type” keyword before type parameters, as |
This guide assumes that you already have an angular application set up by ng create
and are using Angular CLI for
compilation.
Other guides that I've read rely upon re-writing your environments/environment.ts|environment.prod.ts
files
with each compilation. I find this to be completely unnecessary when angular's internal use of webpack
can just
be extended to include environment variables.
This file contains 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
/** | |
* GET and HEAD requests are by definition idempotent and should be handled by the origin as such. Thus, we can safely pass them on without further origin / referer checks. | |
*/ | |
const safeMethods = ['GET','HEAD']; | |
const allowedMethods = ['GET', 'HEAD', 'POST', 'PUT', 'DELETE']; | |
addEventListener('fetch', event => { | |
event.respondWith(verifyAndFetch(event.request)) | |
}) |
This file contains 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
#! /usr/bin/env node | |
const mason = require('commander'); | |
const { version } = require('./package.json'); | |
const console = require('console'); | |
// commands | |
const create = require('./commands/create'); | |
const setup = require('./commands/setup'); |
This file contains 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
FROM node | |
RUN mkdir -p /usr/src/app | |
COPY index.js /usr/src/app | |
EXPOSE 8080 | |
CMD [ "node", "/usr/src/app/index" ] |
This file contains 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
<div id="app"> | |
<v-toolbar class="green"> | |
<v-toolbar-title>Example vuetify template</v-toolbar-title> | |
</v-toolbar> | |
<v-app> | |
<v-content> | |
<v-container fluid grid-list-xl> | |
<v-layout row justify-center> |
This file contains 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
#!/bin/bash | |
# | |
# [Quick LEMP Stack Installation Script] | |
# | |
# GitLab: https://gitlab.com/devops212/lempqc | |
# Modief by wiros4bleng | |
# | |
bold=$(tput bold) | |
normal=$(tput sgr0) | |
cat <<! |
In your command-line run the following commands:
brew doctor
brew update
This file contains 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
FROM php:7.1-fpm | |
LABEL maintainer="Paul Redmond <[email protected]>" | |
# Install application dependencies | |
RUN curl --silent --show-error --fail --location \ | |
--header "Accept: application/tar+gzip, application/x-gzip, application/octet-stream" -o - \ | |
"https://caddyserver.com/download/linux/amd64?plugins=http.expires,http.realip&license=personal" \ | |
| tar --no-same-owner -C /usr/bin/ -xz caddy \ | |
&& chmod 0755 /usr/bin/caddy \ | |
&& /usr/bin/caddy -version \ |
NewerOlder