Skip to content

Instantly share code, notes, and snippets.

View Silent-Watcher's full-sized avatar
🛸
loading ...

Ali nazari Silent-Watcher

🛸
loading ...
View GitHub Profile
@Silent-Watcher
Silent-Watcher / license-badges.md
Created March 26, 2025 12:21 — forked from lukas-h/license-badges.md
Markdown License Badges for your Project

Markdown License badges

Collection of License badges for your Project's README file.
This list includes the most common open source and open data licenses.
Easily copy and paste the code under the badges into your Markdown files.

Notes

  • The badges do not fully replace the license informations for your projects, they are only emblems for the README, that the user can see the License at first glance.

Translations: (No guarantee that the translations are up-to-date)

@Silent-Watcher
Silent-Watcher / enum-access.js
Created October 28, 2024 07:13 — forked from bnoguchi/enum-access.js
How to access enumValues in mongoose from a Model or Document
var mongoose = require('./index')
, TempSchema = new mongoose.Schema({
salutation: {type: String, enum: ['Mr.', 'Mrs.', 'Ms.']}
});
var Temp = mongoose.model('Temp', TempSchema);
console.log(Temp.schema.path('salutation').enumValues);
var temp = new Temp();
console.log(temp.schema.path('salutation').enumValues);
@Silent-Watcher
Silent-Watcher / beautiful.rest.api.docs.in.markdown.md
Created October 18, 2024 07:24 — forked from azagniotov/beautiful.rest.api.docs.in.markdown.md
Example to create beautiful REST API docs in Markdown, inspired by Swagger API docs.
@Silent-Watcher
Silent-Watcher / install_postman_mint_no_snap.md
Created October 4, 2024 12:15 — forked from prrao87/install_postman_mint_no_snap.md
Install Postman on Linux Mint (without using snap)

Goal

Postman is a usefull app to build and test APIs, most commonly installed on ubuntu-like systems via snap. On recent distributions of Linux Mint (20 and above), snap installs are no longer possible. The instructions below show how to install Postman via the terminal.

Download Postman

$ wget https://dl.pstmn.io/download/latest/linux64 -O postman.tar.gz

Extract archive

$ sudo tar -xzf postman.tar.gz -C /opt

Make symlink

@Silent-Watcher
Silent-Watcher / tailwindcss-postcss-autoprefixer-cssnano.md
Created June 8, 2024 19:05 — forked from Pilotin/tailwindcss-postcss-autoprefixer-cssnano.md
TailwindCSS + PostCSS + AutoPrefixer + CSS Nano Install

Setup

  • Create new working folder /tailwind/. Open in terminal
  • run npm init -y
  • run npm install tailwindcss @tailwindcss/custom-forms postcss-cli autoprefixer postcss-nested cssnano
  • run npx tailwind init
  • Edit tailwind.config.js and replace plugins: [], with:
plugins: [

Upload the image with a preview using HTML, CSS & JavaScript

image

Photo by Helena Lopes from Pexels

Code below:

@Silent-Watcher
Silent-Watcher / index.html
Created May 27, 2024 13:10 — forked from Dchole/index.html
Upload user avatar with a custom upload button
<main>
<input type="file" name="image" id="image" accept="image/*" />
<div id="preview">
<div id="avatar"></div>
<button
id="upload-button"
aria-labelledby="image"
aria-describedby="image"
>
🙂
@Silent-Watcher
Silent-Watcher / node-folder-structure-options.md
Created August 23, 2023 17:13 — forked from lancejpollard/node-folder-structure-options.md
What is your folder-structure preference for a large-scale Node.js project?

What is your folder-structure preference for a large-scale Node.js project?

0: Starting from Rails

This is the reference point. All the other options are based off this.

|-- app
|   |-- controllers
|   |   |-- admin
@Silent-Watcher
Silent-Watcher / README.md
Created June 21, 2023 21:26 — forked from gbraad/README.md
Buy Me a Coffee

Buy Me a Coffee

Using inlined HTML

Buy Me A Coffee

<a href="https://www.buymeacoffee.com/gbraad" target="_blank"><img src="https://www.buymeacoffee.com/assets/img/custom_images/orange_img.png" alt="Buy Me A Coffee" style="height: 41px !important;width: 174px !important;box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;-webkit-box-shadow: 0px 3px 2px 0px rgba(190, 190, 190, 0.5) !important;" ></a>
@Silent-Watcher
Silent-Watcher / meta-tags.md
Created June 15, 2023 09:35 — forked from whitingx/meta-tags.md
Complete List of HTML Meta Tags

Copied from http://code.lancepollard.com/complete-list-of-html-meta-tags/

Basic HTML Meta Tags

<meta charset='UTF-8'>
<meta name='keywords' content='your, tags'>
<meta name='description' content='150 words'>
<meta name='subject' content='your website's subject'>
<meta name='copyright' content='company name'>