module.exports = {
content: ['dist/**/index.html', 'dist/**/*.js'],
css: ['dist/**/*.css'],
output: 'dist/my-app-test/browser/', // Ruta para un proyecto de angular 18
safelist: {
standard: [
// Agrega aquí otros patrones de PrimeFlex que necesites
/(^|\s)sm:(\s|$)/,
/(^|\s)md:(\s|$)/,
This file contains hidden or 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
vim.keymap.set("n", "<leader>p", function() | |
local clipboard = vim.fn.getreg("+") | |
vim.ui.input({ prompt = "Enter Interface Name: " }, function(class_name) | |
if class_name then | |
local command = "echo " | |
.. vim.fn.shellescape(clipboard) | |
.. " | quicktype --lang typescript --just-types --top-level " | |
.. vim.fn.shellescape(class_name) | |
local result = vim.fn.system(command) | |
local lines = vim.split(result, "\n") |
This file contains hidden or 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
# linux mint/ubuntu generic ones | |
alias i="sudo apt install" | |
alias up="sudo apt update && sudo apt upgrade -y" | |
# requires eza to be installed | |
# alternative to ls written in Rust | |
alias l="eza -lah --icons" | |
# requires neovim to be installed | |
# text editor |
This file contains hidden or 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 { mkdirSync, writeFileSync } = require("fs"); | |
require("dotenv").config(); | |
const targetPath = "./src/environments/environment.ts"; | |
const envFileContent = ` | |
export const environment = { | |
YOUR_KEY: "${process.env.YOUR_KEY}", | |
} | |
`; |
This file contains hidden or 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
require('crypto').randomBytes(64).toString('hex') |
This file contains hidden or 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
{ | |
"_type": "export", | |
"__export_format": 4, | |
"__export_date": "2023-07-07T23:50:45.605Z", | |
"__export_source": "insomnia.desktop.app:v2023.3.0", | |
"resources": [ | |
{ | |
"_id": "req_1a4adae014ec41fc87e69f7a4f0a210b", | |
"parentId": "fld_99ef76ba8e484e02a1f5281af7fdc2d6", | |
"modified": 1684464842441, |
This file contains hidden or 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
openapi: 3.0.3 | |
info: | |
title: mi primera API | |
description: this is a description | |
version: 1.0.0 | |
contact: | |
name: "Jonathan Rangel Bernal" | |
email: "jonathan.rangelb@gmail.com" | |
url: www.algo.com | |
servers: |
This file contains hidden or 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
// Scales better because you just need to add 1 single line to the object with all the availabe options. | |
const option = "complex-option" | |
// This object literal holds all options (keys) that we comonly use on the cases of a switch | |
const validOptions = { | |
option1: "the value for this first option", | |
option2: "the value for this second option", | |
"complex-option": "the value for this complex one" | |
} |
This file contains hidden or 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
// Javascript Regex obtained from http://detectmobilebrowser.com/mobile | |
export default result = (function (navigatorString) { | |
let isMobileBrowser = false; | |
if ( | |
/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test( | |
navigatorString | |
) || | |
/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip |