Skip to content

Instantly share code, notes, and snippets.

@arnaudvalle
arnaudvalle / attestation.js
Last active November 3, 2020 08:21
Attestation de déplacement dérogatoire - Chrome snippet
// https://developers.google.com/web/tools/chrome-devtools/javascript/snippets
const now = new Date();
const hoursWithLeadingZero = `0${now.getHours()}`.slice(-2);
const minutesWithLeadingZero = `0${now.getMinutes()}`.slice(-2);
document.querySelector('#field-firstname').value = 'PRENOM';
document.querySelector('#field-lastname').value = 'NOM';
document.querySelector('#field-birthday').value = 'DATE DE NAISSANCE (JJ/MM/YYYY)';
document.querySelector('#field-placeofbirth').value = 'LIEU DE NAISSANCE';
@arnaudvalle
arnaudvalle / gist:e05a349f441afc9e13cedec5153a65c7
Created September 6, 2017 07:35
vscode javascript user snippets
{
// Angular
"@ngInject": {
"prefix": "ng-inject",
"body": [
"/* @ngInject */"
],
"description": "Add an auto-injection loader comment."
},
(function IIFE() {
'use strict';
/////////////////////////////
/* @ngInject */
function TemplateController(Utils) {
var vm = this;
/////////////////////////////
(function()
{
'use strict';
angular
.module('Services')
.service('MyService', MyService);
/* @ngInject */
function MyService()