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
{ | |
"AED": { | |
"name": "United Arab Emirates Dirham", | |
"symbol": "د.إ.", | |
"decimals": 2, | |
"code": "AED" | |
}, | |
"AFN": { | |
"name": "Afghan Afghani", | |
"symbol": "؋", |
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
const themeData = { | |
'base': 'vs-dark', | |
'inherit': true, | |
'rules': [ | |
{ | |
'foreground': '546e7a', | |
'fontStyle': 'italic', | |
'token': 'comment' | |
}, | |
{ |
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
Table users: | |
+----+---------+ | |
| id | name | | |
+----+---------+ | |
| 1 | Mathieu | | |
| 2 | Ynk | | |
+----+---------+ | |
Table articles: |
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
export default class HttpQueue { | |
constructor (queryFunction) { | |
this.requesting = false | |
this.stack = [] | |
this.queryFunction = queryFunction | |
} | |
add (options, resolve, reject) { | |
if (this.stack.length < 2) { |
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
let randomstring = require('randomstring') | |
let found = false | |
let random; | |
while (! found) { | |
random = randomstring.generate({ | |
length: 14, | |
charset: 'alphanumeric' |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Test VueJS</title> | |
</head> | |
<body> | |
<script src="https://unpkg.com/vue/dist/vue.js"></script> | |
<div id="app"> | |
<form @submit.prevent="doSomething()"> |
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
<template> | |
<div class="countdown"> | |
<div class="time-unite created" v-show="years"> | |
<div class="time-unite-title">Y</div> | |
<div class="time-unite-value">{{ years }}</div> | |
</div> | |
<div class="time-unite created" v-show="months"> | |
<div class="time-unite-title">Mois</div> | |
<div class="time-unite-value">{{ months }}</div> | |
</div> |