Skip to content

Instantly share code, notes, and snippets.

@d4n5h
d4n5h / regexMap-example.js
Last active October 4, 2016 17:35
regexMap - Mapped Search & Replace (JavaScript)
// EXAMPLE:
// Create a regaxMap array
var map = [
[/FIND (.*)/g,function(self,str){
// Get all arguments and variables
var all = this.extractAll(arguments,self)
// Get current line location/number
var ln = all.lineNumber
if(str != '' && str != undefined){
let app = require('./uApp.js');
const route = require('./route.js');
const port = 9001;
app = new app();
app.use((res, req) => {
app.req.test = 'test'
})
@d4n5h
d4n5h / DatetimePicker.vue
Last active August 18, 2021 04:16
Vuetify datetime picker
<template>
<div>
<v-menu
v-model="dialog"
:close-on-content-click="false"
:nudge-width="200"
max-width="290"
offset-y
>
<template v-slot:activator="{ on }">