Skip to content

Instantly share code, notes, and snippets.

View ElMatella's full-sized avatar

Mathieu Marteau ElMatella

View GitHub Profile
@ElMatella
ElMatella / Common-Currency.json
Created December 7, 2021 13:21 — forked from etienne-martin/Common-Currency.json
Common Currency Codes in JSON
{
"AED": {
"name": "United Arab Emirates Dirham",
"symbol": "د.إ.‏",
"decimals": 2,
"code": "AED"
},
"AFN": {
"name": "Afghan Afghani",
"symbol": "؋",
const themeData = {
'base': 'vs-dark',
'inherit': true,
'rules': [
{
'foreground': '546e7a',
'fontStyle': 'italic',
'token': 'comment'
},
{
@ElMatella
ElMatella / test.txt
Last active December 19, 2017 17:33
Table users:
+----+---------+
| id | name |
+----+---------+
| 1 | Mathieu |
| 2 | Ynk |
+----+---------+
Table articles:
export default class HttpQueue {
constructor (queryFunction) {
this.requesting = false
this.stack = []
this.queryFunction = queryFunction
}
add (options, resolve, reject) {
if (this.stack.length < 2) {
let randomstring = require('randomstring')
let found = false
let random;
while (! found) {
random = randomstring.generate({
length: 14,
charset: 'alphanumeric'
@ElMatella
ElMatella / vue.html
Created March 21, 2017 14:26
test vue
<!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()">
@ElMatella
ElMatella / Countdown.vue
Created September 17, 2016 13:36
Countdown component for VueJS with momentjs
<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>