Skip to content

Instantly share code, notes, and snippets.

View GreXLin85's full-sized avatar
Drinkin' more coffee

GreXLin85 GreXLin85

Drinkin' more coffee
View GitHub Profile
@GreXLin85
GreXLin85 / index.html
Created November 22, 2023 08:54
Button following the cursor
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>BTN</title>
<style>
button {
padding: 20px 20px;
@GreXLin85
GreXLin85 / modelsDumpToJSON.js
Created April 6, 2022 18:07
Dump your data as JSON with Sequelize Models
const models = require("../models/index");
const fs = require("fs");
let modelNames = Object.keys(models);
// Filter sequelize and Sequelize
modelNames = modelNames.filter(
(name) => name !== "sequelize" && name !== "Sequelize"
);