FILE_NAME=$1
gcc $FILE_NAME.c -Wall -Wextra -Werror -o $FILE_NAME.out && ./$FILE_NAME.out
Isso irá gerar um arquivo .out
e executálo, o gcc está no modo mais estrito.
WITH RECURSIVE DependencyTree AS ( | |
-- Anchor member | |
SELECT | |
fk.confrelid AS referenced_oid, | |
fk.conrelid AS referencing_oid, | |
ns_child.nspname AS referencing_schema, | |
cl_child.relname AS referencing_table, | |
ns_parent.nspname AS referenced_schema, | |
cl_parent.relname AS referenced_table, |
<!-- Project Name : Cross Site Scripting ( XSS ) Vulnerability Payload List --> | |
<!-- Author : Ismail Tasdelen --> | |
<!-- Linkedin : https://www.linkedin.com/in/ismailtasdelen/ --> | |
<!-- GitHub : https://github.com/ismailtasdelen/ --> | |
<!-- Twitter : https://twitter.com/ismailtsdln --> | |
<!-- Medium : https://medium.com/@ismailtasdelen --> | |
"-prompt(8)-" | |
'-prompt(8)-' | |
";a=prompt,a()// |
The TimeSpan
class is a utility for managing and manipulating time intervals in TypeScript/JavaScript. It provides a simple, object-oriented way to perform arithmetic and comparison operations on time spans. This class can be used to represent durations in milliseconds, seconds, minutes, hours, or days.
TimeSpan
objects from various inputs (current time, Date
objects, milliseconds, seconds, minutes, hours, or days).TimeSpan
to milliseconds, seconds, minutes, hours, or days.TimeSpan
objects.TimeSpan
objects using equality, less than, greater than, etc.TimeSpan
represents a past or future time.import type { Knex } from 'knex'; | |
import type { TableTypes } from '../../generated/database.types.js'; | |
type SelectTableType<K extends keyof TableTypes> = TableTypes[K]['select'] & { | |
[P in Exclude<keyof TableTypes[K]['select'], symbol> as `${K}.${P}`]: TableTypes[K]['select'][P]; | |
}; | |
type InsertTableType<K extends keyof TableTypes> = TableTypes[K]['input']; | |
type UpdateTableType<K extends keyof TableTypes> = Partial<Exclude<TableTypes[K]['input'], 'id'>>; |
import type { ApolloServerPlugin, GraphQLRequestListener } from '@apollo/server'; | |
import { type PolymorphicRequest } from '@sentry/node'; | |
import * as Sentry from '@sentry/node'; | |
export interface AppContext { | |
sentrySpan: Sentry.Span; | |
} | |
export default function ApolloServerSentryPlugin(): ApolloServerPlugin<AppContext> { | |
return { |
import { inspect } from "node:util"; | |
import kleur from "kleur"; | |
kleur.enabled = true; | |
inspect.defaultOptions.depth = 10; | |
inspect.defaultOptions.maxArrayLength = 100; | |
interface ILoggerAdapter { | |
debug(prefix: string, message: string, ...args: any[]): void; |
/* | |
37 - ArrowUp | |
38 - ArrowDown | |
39 - ArrowRight | |
40 - ArrowLeft | |
32 - Space | |
33 - PageUp | |
34 - PageDown | |
35 - End | |
36 - Home |
import { FormGroup, FormArray, FormControl } from '@angular/forms'; | |
import { InputMaybe } from '@generated/graphql'; | |
type ExtractTypeFromInputMaybe<T> = NonNullable<T> extends InputMaybe<infer U> ? U : T; | |
type FormularizeRecord<T> = | |
ExtractTypeFromInputMaybe<T> extends Record<string, unknown> | |
? FormGroup<{ [K in keyof T]: FormularizeObject<NonNullable<T[K]>> }> | |
: never; |