This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
This gist assumes:
www-data
(may be apache
on other systems)// sending to sender-client only | |
socket.emit('message', "this is a test"); | |
// sending to all clients, include sender | |
io.emit('message', "this is a test"); | |
// sending to all clients except sender | |
socket.broadcast.emit('message', "this is a test"); | |
// sending to all clients in 'game' room(channel) except sender |
# GPG on Tower |
class Errors { | |
/** | |
* Create a new Errors instance. | |
*/ | |
constructor() { | |
this.errors = {}; | |
} | |
/** | |
* Determine if an errors exists for the given field. |
Last updated: 2021-02-21, tested with socket.io v3.1.1
This is the simplest implementation you will find for a client/server WebSockets architecture using socket.io.
To see a full explanation, read my answer on SO here: https://stackoverflow.com/a/24232050/778272.
If you're looking for examples using frameworks, check these links:
RUN apt update
RUN apt upgrade -y
RUN apt install -y apt-utils
RUN a2enmod rewrite
RUN apt install -y libmcrypt-dev
RUN apt install -y libicu-dev
RUN docker-php-ext-install -j$(nproc) intl
RUN apt-get install -y libfreetype6-dev libjpeg62-turbo-dev libpng12-dev
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/
<template> | |
<LMap id="map" :center="center" :zoom="zoom"> | |
<LTileLayer | |
:options="layerOptions" | |
:tile-layer-class="tileLayerClass" /> | |
</LMap> | |
</template> | |
<script> | |
import { LMap, LTileLayer } from 'vue2-leaflet' |
<?php | |
namespace App\Http\Requests; | |
trait canDryRun | |
{ | |
/** | |
* Validate the class instance. |
<div id="app"> | |
<div> | |
<input type="file" id="fileinput" @change="onFileChange"> | |
</div> | |
<div> | |
<label for="topText">Top Text:</label> | |
<input type="text" v-model="topText" class="form-control" /> | |
</div> | |
<div > |