- Modificado (modified);
- Preparado (staged/index)
- Consolidado (comitted);
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
| /** | |
| * Simple is object check. | |
| * @param item | |
| * @returns {boolean} | |
| */ | |
| function isObject(item) { | |
| return (item && typeof item === 'object' && !Array.isArray(item)); | |
| } | |
| /** |
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
| <h1 align="center"> | |
| <br> | |
| <img src="YOUR_LOGO_URL" alt="YOUR_PROJECT_NAME" width="120"> | |
| <br> | |
| <br> | |
| YOUR_PROJECT_NAME | |
| </h1> | |
| <p align="center">A little description about your project</p> |
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
| import { Test, TestingModule } from '@nestjs/testing'; | |
| import { PrismaService } from '../prisma.service'; | |
| import { JobService } from './job.service'; | |
| import * as crypto from 'crypto'; | |
| describe('JobService', () => { | |
| let service: JobService; | |
| let prisma: PrismaService; | |
| beforeEach(async () => { |
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
| <h1 align="center"> | |
| <br> | |
| <img src="YOUR_LOGO_URL" alt="YOUR_PROJECT_NAME" width="120"> | |
| <br> | |
| <br> | |
| YOUR_PROJECT_NAME | |
| </h1> | |
| <p align="center">A little description about your project</p> |
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
| /** | |
| * Sets up a DOM MutationObserver that watches for elements using undefined CSS | |
| * class names. Performance should be pretty good, but it's probably best to | |
| * avoid using this in production. | |
| * | |
| * Usage: | |
| * | |
| * import cssCheck from './checkForUndefinedCSSClasses.js' | |
| * | |
| * // Call before DOM renders (e.g. in <HEAD> or prior to React.render()) |
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
| import { useMediaQuery } from 'usehooks-ts' | |
| import { useMemo } from 'react'; | |
| import { screens } from '.generated/screens'; | |
| /* | |
| // You can also define the screens object manually if you don't want to use a prebuilt script. | |
| const screens = { | |
| sm: '640px', | |
| md: '768px', |
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
| /** | |
| * Lightweight script to detect whether the browser is running in Private mode. | |
| * @returns {Promise<boolean>} | |
| * | |
| * Live demo: | |
| * @see https://output.jsbin.com/tazuwif | |
| * | |
| * This snippet uses Promises. If you want to run it in old browsers, polyfill it: | |
| * @see https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.min.js | |
| * |
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
| // the main app file | |
| import express from "express"; | |
| import loadDb from "./loadDb"; // dummy middleware to load db (sets request.db) | |
| import authenticate from "./authentication"; // middleware for doing authentication | |
| import permit from "./authorization"; // middleware for checking if user's role is permitted to make request | |
| const app = express(), | |
| api = express.Router(); | |
| // first middleware will setup db connection |
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
| /** | |
| * MAKE ELECTRON APP FEEL MORE NATIVE | |
| * | |
| * * Prevent dragging all HTML elements, specially: | |
| * - images | |
| * - links (anchors) | |
| * | |
| * * Prevent text selection | |
| */ |
OlderNewer