I hereby claim:
- I am stmoerman on github.
- I am stephanmoerman (https://keybase.io/stephanmoerman) on keybase.
- I have a public key whose fingerprint is E630 1560 32F6 F80F 34CC AACD D601 E874 FF08 6256
To claim this, I am signing this object:
<div class="warning-content"> | |
<h1>New Site Under Construction</h1> | |
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" | |
width="100.001px" height="70px" viewBox="0 0 100 68"> | |
<g id="large"> | |
<g> | |
<path d="M55.777,38.473l6.221-1.133c0.017-1.791-0.123-3.573-0.41-5.324l-6.321-0.19c-0.438-2.053-1.135-4.048-2.076-5.931 | |
l4.82-4.094c-0.868-1.552-1.874-3.028-3.005-4.417l-5.569,2.999c-1.385-1.54-2.98-2.921-4.771-4.099l2.124-5.954 | |
c-0.759-0.452-1.543-0.878-2.357-1.269c-0.811-0.39-1.625-0.732-2.449-1.046l-3.325,5.381c-2.038-0.665-4.113-1.052-6.183-1.174 | |
L31.34,6.002c-1.792-0.02-3.571,0.119-5.32,0.406l-0.191,6.32c-2.056,0.439-4.051,1.137-5.936,2.08l-4.097-4.82 |
var customer = new Customer({ | |
firstName: 'John', | |
lastName: 'Doe', | |
company: 'wick inc', | |
connectInfo: { | |
tel: [1234,5678], | |
email: ['john@wick.com', 'wick@inc.com'], | |
address: { | |
city: 'Gotham', | |
street: 'Bank Doc', |
I hereby claim:
To claim this, I am signing this object:
const mongoose = require('mongoose'); | |
mongoose.set('useFindAndModify', false); | |
mongoose.connect('mongodb://localhost:27017/mongo-demo', { useNewUrlParser: true }) | |
.then(() => console.log('Connected to MongoDB...')) | |
.catch(err => console.error('Could not connect to MongoDB...', err)); | |
const courseSchema = new mongoose.Schema({ | |
name: String, | |
author: String, |
version: '2.1' | |
services: | |
mongodb: | |
image: "mongo" | |
ports: | |
- "27017:27017" | |
mysqldb: | |
image: "mysql:5.5.60" | |
environment: | |
MYSQL_DATABASE: dbname |
@echo OFF | |
setlocal ENABLEDELAYEDEXPANSION | |
rem Collect the arguments and replace: | |
rem '\' with '/' | |
rem 'c:' with 'mnt/c' | |
rem '"' with '\"' | |
set v_params=%* | |
set v_params=%v_params:\=/% | |
set v_params=%v_params:C:=/mnt/c% | |
set v_params=%v_params% |
- Open Automator | |
- File -> New -> Service | |
- Change "Service Receives" to "files or folders" in "Finder" | |
- Add a "Run Shell Script" action | |
- Change "Pass input" to "as arguments" | |
- Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*" | |
- Save it as something like "Open in VS Code" |
const mongoose = require('mongoose'); | |
// Init our DB | |
mongoose.connect('mongodb://localhost/yourdbnamehere'); | |
const db = mongoose.connection; | |
// DB connection check | |
db.once('open', () => { | |
console.log('Connected!'); | |
}); |
<video id="myvideo" controls muted loop> | |
<source src="sample_video_no_sound.mp4" type="video/mp4"/> | |
<audio id="myaudio"> | |
<source src="sound.mp3" type="audio/mpeg"/> | |
</audio> | |
</video> | |
<script> | |
var myvideo = document.getElementById("myvideo"); | |
var myaudio = document.getElementById("myaudio"); |