But the solution’s not beautiful 🙈
There’s a bug with uglify-es
, which requires using the following in your package.json to force dependencies to use this version:
"resolutions": {
"uglify-es": "3.3.9"
},
// Import required libraries | |
#include <Arduino.h> | |
#include <ESP8266WiFi.h> | |
#include <ESP8266HTTPClient.h> | |
#include <Hash.h> | |
#include <ESPAsyncTCP.h> | |
#include <ESPAsyncWebServer.h> | |
#include <EEPROM.h> |
But the solution’s not beautiful 🙈
There’s a bug with uglify-es
, which requires using the following in your package.json to force dependencies to use this version:
"resolutions": {
"uglify-es": "3.3.9"
},
public static function boot() {
parent::boot();
// Trim all string attributes before they are saved
static::saving(function($model){
$attributes = collect($model->getAttributes())->map(function ($attribute) {
if (is_string($attribute)) {
return trim($attribute);
}
<button @click="event => { handleClick(event, item) }">Click me</button>
### To remove all containers | |
docker rm -f $(docker ps -aq) | |
### To remove all volumes | |
docker volume rm $(docker volume ls -q) | |
### To remove all images | |
docker rmi -f $(docker images -a -q) | |
### Combined above 3 commands |
// https://lifehacker.com/5796188/convert-a-blog-to-a-static-website-with-wget-and-rsync | |
./wget -m -p -P ./ executive-carhire.co.uk |
export let facebookSDK = { | |
mounted () { | |
let _this = this | |
this.$nextTick(() => { | |
window.fbAsyncInit = function () { | |
FB.init({ | |
appId: 'XXX', | |
xfbml: true, | |
version: 'v2.6' | |
}) |
#Node - Running in Production
This gist is based on the excellent post by @hacksparrow which is found at http://www.hacksparrow.com/running-express-js-in-production-mode.html. The main principle is that you want the application to detect that it is running on a production server and to use the production configuration. The way to do this is to set the NODE_ENV=production
. To do this you need to do the following:
$ export NODE_ENV=production
But we have a little problem here. The NODE_ENV environment variable will be lost if the server restarts, so it is safer to put it in the .bash_profile file. That way the variable will set again every time the system reboots. You will find the file in your home directory. It's a hidden file, so you can't see it unless you do a ls -la. We will append the export command to the .bash_profile file.
<template> | |
<span> | |
</span> | |
</template> | |
<script> | |
import { mapState, mapActions } from 'vuex' | |
export default { | |
name: 'anonymous-component', |
<template> | |
<span> | |
<input ref="autocomplete" | |
v-model="model" | |
class="input awesomeplete" | |
:placeholder="placeholder" | |
:class="classes" | |
@keyup="typing" | |
type="text" | |
title |