repo
stringlengths
4
140
commit_id
stringlengths
7
7
rel_path
stringlengths
1
3.5k
language
stringclasses
37 values
url
stringlengths
37
3.56k
raw_url
stringlengths
54
3.58k
key
stringlengths
20
3.54k
ok
bool
1 class
status
int64
200
200
bytes
int64
48
425k
content
stringlengths
40
425k
worker_id
int64
0
7
JaeKralj/elearning
2f2c8d9
pages/api/videos.ts
TypeScript
www.github.com/JaeKralj/elearning/tree/main/pages/api/videos.ts
https://raw.githubusercontent.com/JaeKralj/elearning/2f2c8d9/pages/api/videos.ts
JaeKralj/elearning 2f2c8d9 pages/api/videos.ts
true
200
603
import { db } from '@/firebase/config' import { doc, getDoc } from 'firebase/firestore' import { NextApiRequest, NextApiResponse } from 'next' export default async function handler( req: NextApiRequest, res: NextApiResponse ) { const { searchParams } = new URL( req.url as string, `http://${req.headers.ho...
4
sashadudkina5/PAY2U_MobileWebApp
d5c8b1f
src/redux_services/thunk-functions/getExclusivePosters.ts
TypeScript
www.github.com/sashadudkina5/PAY2U_MobileWebApp/tree/main/src/redux_services/thunk-functions/getExclusivePosters.ts
https://raw.githubusercontent.com/sashadudkina5/PAY2U_MobileWebApp/d5c8b1f/src/redux_services/thunk-functions/getExclusivePosters.ts
sashadudkina5/PAY2U_MobileWebApp d5c8b1f src/redux_services/thunk-functions/getExclusivePosters.ts
true
200
1,753
import { BASE_URL } from "../../utils/api"; import { AppDispatch } from "../store"; import { getCookie, fetchWithRefresh } from "../../utils/api"; import { getCategoryPostersRequest, getExclusivePostersSuccess, getCategoryPostersFailed, } from "../slices/categoryPostersSlice"; /** * Thunk function for fet...
0
petrosov-developer/petrosov-developer.github.io
9e10306
content/blog/personal/index.ts
TypeScript
www.github.com/petrosov-developer/petrosov-developer.github.io/tree/main/content/blog/personal/index.ts
https://raw.githubusercontent.com/petrosov-developer/petrosov-developer.github.io/9e10306/content/blog/personal/index.ts
petrosov-developer/petrosov-developer.github.io 9e10306 content/blog/personal/index.ts
true
200
779
import { FaEthereum } from "react-icons/fa" import { GiGhostAlly } from "react-icons/gi" import { IconType } from "react-icons" import Post20220821 from "./20220821.mdx" import Post20220914 from "./20220914.mdx" export interface IPost { name: string date: Date summary: string post(props: any): JSX.Element I...
1
InfuseAI/piperider
523762c
static_report/src/components/Columns/utils.ts
TypeScript
www.github.com/InfuseAI/piperider/tree/main/static_report/src/components/Columns/utils.ts
https://raw.githubusercontent.com/InfuseAI/piperider/523762c/static_report/src/components/Columns/utils.ts
InfuseAI/piperider 523762c static_report/src/components/Columns/utils.ts
true
200
5,608
import { NEGATIVE_VAL_COLOR, ZERO_VAL_COLOR, NON_ZERO_VAL_COLOR, INVALID_VAL_COLOR, NULL_VAL_COLOR, INFO_VAL_COLOR, } from './../../utils/theme'; import { ColumnSchema } from '../../sdlc'; import { formatAsAbbreviatedNumber, formatIntervalMinMax, formatNumber, } from '../../utils/formatters'; import {...
6
Ziemii/spaceflight-news
fb73cbd
src/index.ts
TypeScript
www.github.com/Ziemii/spaceflight-news/tree/main/src/index.ts
https://raw.githubusercontent.com/Ziemii/spaceflight-news/fb73cbd/src/index.ts
Ziemii/spaceflight-news fb73cbd src/index.ts
true
200
2,677
import { DEFAULTS } from './modules/constants'; import HomeArticlesLoader from './modules/home-articles-loader'; import LibraryArticlesLoader from './modules/library-articles-loader'; import FetchCounter from './modules/fetch-counter'; import LibrarySorter from './modules/library-sorter'; const homeArticles = new Home...
5
sole2706/Make-Up
51b45a6
Proyecto Progra Web/prisma/seed.ts
TypeScript
www.github.com/sole2706/Make-Up/tree/main/Proyecto Progra Web/prisma/seed.ts
https://raw.githubusercontent.com/sole2706/Make-Up/51b45a6/Proyecto%20Progra%20Web/prisma/seed.ts
sole2706/Make-Up 51b45a6 Proyecto Progra Web/prisma/seed.ts
true
200
13,910
import { PrismaClient } from '@prisma/client'; const prisma = new PrismaClient(); async function main() { // Seed para Usuario await prisma.usuario.createMany({ data: [ { NombreUsuario: 'Luis', ApellidoUsuario: 'Hernández', Telefono: 88012345, Correo: 'luis.hernandez@gmail.com', Contrasena: '$2b$10$jxYl7...
3
Amakran2003/Moonshot
adc062d
restaurant-platform/packages/config/src/index.ts
TypeScript
www.github.com/Amakran2003/Moonshot/tree/main/restaurant-platform/packages/config/src/index.ts
https://raw.githubusercontent.com/Amakran2003/Moonshot/adc062d/restaurant-platform/packages/config/src/index.ts
Amakran2003/Moonshot adc062d restaurant-platform/packages/config/src/index.ts
true
200
543
import { RestaurantConfig } from './types'; export const defaultConfig: RestaurantConfig = { id: 'default', name: 'Restaurant Name', slug: 'restaurant-name', theme: { primary: '#2563eb', secondary: '#1e40af', accent: '#60a5fa' }, contact: { phone: '+1 234 567 890', email: 'contact@resta...
4
bunthakan-2sm/NestJS-API
c090c74
app/src/auth/github/github.strategy.ts
TypeScript
www.github.com/bunthakan-2sm/NestJS-API/tree/main/app/src/auth/github/github.strategy.ts
https://raw.githubusercontent.com/bunthakan-2sm/NestJS-API/c090c74/app/src/auth/github/github.strategy.ts
bunthakan-2sm/NestJS-API c090c74 app/src/auth/github/github.strategy.ts
true
200
2,297
import { Injectable } from '@nestjs/common'; import { PassportStrategy } from '@nestjs/passport'; import { Strategy } from 'passport-github'; @Injectable() export class GitHubStrategy extends PassportStrategy(Strategy, 'github') { constructor() { super({ clientID: process.env.GITHUB_CLIENT_ID, client...
0
MarioAudibussio/React_native_rosso_nera
5ab39ce
its-ict/src/ui/atoms/button/roundbutton.styles.ts
TypeScript
www.github.com/MarioAudibussio/React_native_rosso_nera/tree/main/its-ict/src/ui/atoms/button/roundbutton.styles.ts
https://raw.githubusercontent.com/MarioAudibussio/React_native_rosso_nera/5ab39ce/its-ict/src/ui/atoms/button/roundbutton.styles.ts
MarioAudibussio/React_native_rosso_nera 5ab39ce its-ict/src/ui/atoms/button/roundbutton.styles.ts
true
200
677
import { StyleSheet } from 'react-native'; export const styles = StyleSheet.create({ roundbutton: { marginRight:8, height: 50, width:50, backgroundColor: '#fff', paddingVertical: 12, paddingHorizontal: 12, borderRadius: 25, alignItems: 'center', ...
1
raynirola/crx
069ace1
src/utils/origins.ts
TypeScript
www.github.com/raynirola/crx/tree/main/src/utils/origins.ts
https://raw.githubusercontent.com/raynirola/crx/069ace1/src/utils/origins.ts
raynirola/crx 069ace1 src/utils/origins.ts
true
200
650
import { configs } from '@/configs' export class WhitelistOrigin { public static check(origin?: string) { if (!origin) throw new OriginNotProvidedError() const allowed = configs.allowedExternalHosts.includes(origin) if (!allowed) throw new OriginNotAuthorizedError() } } export class OriginNotAuthorize...
6
luizemm/Curso-Full-Cycle
181a3a7
clean-architecture/src/domain/product/factory/product.validator.factory.ts
TypeScript
www.github.com/luizemm/Curso-Full-Cycle/tree/main/clean-architecture/src/domain/product/factory/product.validator.factory.ts
https://raw.githubusercontent.com/luizemm/Curso-Full-Cycle/181a3a7/clean-architecture/src/domain/product/factory/product.validator.factory.ts
luizemm/Curso-Full-Cycle 181a3a7 clean-architecture/src/domain/product/factory/product.validator.factory.ts
true
200
643
import Validator from "../../@shared/validator/validator-interface" import Product from "../entity/product-interface" import ProductType from "../enum/product-type.enum" import ProductAYupValidator from "../validator/product-a.yup.validator" import ProductBYupValidator from "../validator/product-b.yup.validator" expor...
5
guta307/Sweetcakes
eaa54d0
tailwind.config.ts
TypeScript
www.github.com/guta307/Sweetcakes/tree/main/tailwind.config.ts
https://raw.githubusercontent.com/guta307/Sweetcakes/eaa54d0/tailwind.config.ts
guta307/Sweetcakes eaa54d0 tailwind.config.ts
true
200
7,108
function toRgba(cssVariable: any) { const color = `var(${cssVariable})`; return ({ opacityValue }: any) => `rgba(${color}, ${opacityValue})`; } /** @type {import('tailwindcss').Config} */ module.exports = { content: [ "./src/pages/**/*.{js,ts,jsx,tsx,mdx}", "./src/components/**/*.{js,ts,jsx,tsx,mdx}", ...
3
marcelloamr/OtherPic
79b5d48
src/app/photos/photo-list/photos-aux/photos-aux.component.spec.ts
TypeScript
www.github.com/marcelloamr/OtherPic/tree/main/src/app/photos/photo-list/photos-aux/photos-aux.component.spec.ts
https://raw.githubusercontent.com/marcelloamr/OtherPic/79b5d48/src/app/photos/photo-list/photos-aux/photos-aux.component.spec.ts
marcelloamr/OtherPic 79b5d48 src/app/photos/photo-list/photos-aux/photos-aux.component.spec.ts
true
200
621
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { PhotosAuxComponent } from './photos-aux.component'; describe('PhotosAuxComponent', () => { let component: PhotosAuxComponent; let fixture: ComponentFixture<PhotosAuxComponent>; beforeEach(async () => { await TestBed.configureTestin...
4
k3nn3thh3ng/consideraid
9fb58e3
src/models/AidStatus.ts
TypeScript
www.github.com/k3nn3thh3ng/consideraid/tree/main/src/models/AidStatus.ts
https://raw.githubusercontent.com/k3nn3thh3ng/consideraid/9fb58e3/src/models/AidStatus.ts
k3nn3thh3ng/consideraid 9fb58e3 src/models/AidStatus.ts
true
200
459
import { DataTypes, Model, Sequelize, TINYINT } from "sequelize"; import { modelCommonOptions } from "./common"; export default class AidStatus extends Model { static initModel(sequelize: Sequelize) { AidStatus.init( { status: { type: DataTypes.TINYINT(), defaultValue: 1, comment: "0:Pending /...
0
LiliiaDanylenko/news
c1876c0
src/store/services/newsApi.ts
TypeScript
www.github.com/LiliiaDanylenko/news/tree/main/src/store/services/newsApi.ts
https://raw.githubusercontent.com/LiliiaDanylenko/news/c1876c0/src/store/services/newsApi.ts
LiliiaDanylenko/news c1876c0 src/store/services/newsApi.ts
true
200
1,682
import { createApi, fetchBaseQuery } from '@reduxjs/toolkit/query/react'; import { CategoriesApiResponse, NewsApiResponse, ParamsType, } from '../../interfaces'; import { setNews } from '../slices/newsSlice'; const BASE_URL = import.meta.env.VITE_NEWS_BASE_API_URL; const API_KEY = import.meta.env.VITE_NEWS_API_K...
1
esh303/forte
348f6ec
src/app/main/main.component.spec.ts
TypeScript
www.github.com/esh303/forte/tree/main/src/app/main/main.component.spec.ts
https://raw.githubusercontent.com/esh303/forte/348f6ec/src/app/main/main.component.spec.ts
esh303/forte 348f6ec src/app/main/main.component.spec.ts
true
200
28,055
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { MainComponent } from './main.component'; import { NO_ERRORS_SCHEMA } from '@angular/core'; import { PricingInfoService } from '../services/pricing-info.service'; import { LoggerService } from '../services/logger.service'; import { FormsM...
6
Rana-Chirag/ecfy-globe-backup
3a470dc
src/app/core/models/Masters/general-master.ts
TypeScript
www.github.com/Rana-Chirag/ecfy-globe-backup/tree/main/src/app/core/models/Masters/general-master.ts
https://raw.githubusercontent.com/Rana-Chirag/ecfy-globe-backup/3a470dc/src/app/core/models/Masters/general-master.ts
Rana-Chirag/ecfy-globe-backup 3a470dc src/app/core/models/Masters/general-master.ts
true
200
522
export class GeneralMaster { codeId: string; codeDesc: number; activeFlag: string; updateBy: string; entryBy: string; _id: string; generalcode: string headerCode: string; headerDesc: string; codeType: string; isActive: any; item: any; constructor(GeneralMaster) { ...
5
theshreyashguy/Health_ai_
6a3660e
Microservices/1-gateway-service/src/controllers/auth/current-user.ts
TypeScript
www.github.com/theshreyashguy/Health_ai_/tree/main/Microservices/1-gateway-service/src/controllers/auth/current-user.ts
https://raw.githubusercontent.com/theshreyashguy/Health_ai_/6a3660e/Microservices/1-gateway-service/src/controllers/auth/current-user.ts
theshreyashguy/Health_ai_ 6a3660e Microservices/1-gateway-service/src/controllers/auth/current-user.ts
true
200
713
import { Request, Response } from 'express'; import { StatusCodes } from 'http-status-codes'; import {gatewayCache} from '@gateway/redis/gateway.cache'; export class CurrentUser { public async read(req: Request, res: Response): Promise<void> { const userdata = gatewayCache.getUserInfoFromCache(req.params.id); ...
3
PabloGLeiteDeSouza/gamers-club-pannel
ac31b83
src/classes/Libsodium/index.ts
TypeScript
www.github.com/PabloGLeiteDeSouza/gamers-club-pannel/tree/main/src/classes/Libsodium/index.ts
https://raw.githubusercontent.com/PabloGLeiteDeSouza/gamers-club-pannel/ac31b83/src/classes/Libsodium/index.ts
PabloGLeiteDeSouza/gamers-club-pannel ac31b83 src/classes/Libsodium/index.ts
true
200
2,111
export default class Libsodium { private sodium: typeof import("d:/Disco D 01/Program/Personal/discord/Typescript/Bot/Gamers Club Bot/web app/gamers-club-pannel/node_modules/@types/libsodium-wrappers/index") = require('libsodium-wrappers'); async generate_key_pair() { await this.sodium.ready; ...
4
NovikovYu/LP_2024_01_08
c9de399
app/settings/settings-style.ts
TypeScript
www.github.com/NovikovYu/LP_2024_01_08/tree/main/app/settings/settings-style.ts
https://raw.githubusercontent.com/NovikovYu/LP_2024_01_08/c9de399/app/settings/settings-style.ts
NovikovYu/LP_2024_01_08 c9de399 app/settings/settings-style.ts
true
200
2,206
import { ButtonProps, List, ListItem, Typography } from '@mui/material'; import { styled } from '@mui/material/styles'; import { PrimaryButton, SecondaryButton, P, } from '../../components/CommonComponents/Common-сomponents-style'; export const PrimaryButtonForPortfolioCard = styled(PrimaryButton)<ButtonProps>(...
0
mustafasalim/taskhive-backend
d3ce88b
src/models/status-model/index.ts
TypeScript
www.github.com/mustafasalim/taskhive-backend/tree/main/src/models/status-model/index.ts
https://raw.githubusercontent.com/mustafasalim/taskhive-backend/d3ce88b/src/models/status-model/index.ts
mustafasalim/taskhive-backend d3ce88b src/models/status-model/index.ts
true
200
472
import mongoose from "mongoose" export interface IStatus extends Document { name: string project: mongoose.Types.ObjectId order: number } const statusSchema = new mongoose.Schema<IStatus>({ name: { type: String, required: true }, project: { type: mongoose.Schema.Types.ObjectId, ref: "Project", r...
7
PhuDeveloper/shop-store-nestjs
593a6de
src/order-item/order-item.repository.ts
TypeScript
www.github.com/PhuDeveloper/shop-store-nestjs/tree/main/src/order-item/order-item.repository.ts
https://raw.githubusercontent.com/PhuDeveloper/shop-store-nestjs/593a6de/src/order-item/order-item.repository.ts
PhuDeveloper/shop-store-nestjs 593a6de src/order-item/order-item.repository.ts
true
200
1,005
import { Injectable, NotFoundException } from '@nestjs/common'; import { DataSource, InsertResult, Repository } from 'typeorm'; import { OrderItemEntity } from './order-item.entity'; @Injectable() export class OrderItemRepository extends Repository<OrderItemEntity> { constructor(private dataSource: DataSource) { ...
1
palsamprabhas/stock-control-system-main
dfdb53d
stock-control-system-ui/src/app/services/consumeritem.service.spec.ts
TypeScript
www.github.com/palsamprabhas/stock-control-system-main/tree/main/stock-control-system-ui/src/app/services/consumeritem.service.spec.ts
https://raw.githubusercontent.com/palsamprabhas/stock-control-system-main/dfdb53d/stock-control-system-ui/src/app/services/consumeritem.service.spec.ts
palsamprabhas/stock-control-system-main dfdb53d stock-control-system-ui/src/app/services/consumeritem.service.spec.ts
true
200
387
import { TestBed } from '@angular/core/testing'; import { ConsumeritemService } from './consumeritem.service'; describe('ConsumeritemService', () => { let service: ConsumeritemService; beforeEach(() => { TestBed.configureTestingModule({}); service = TestBed.inject(ConsumeritemService); }); it('shoul...
2
CannonWilson/WebDev-Teaching_Archive
45a145f
AC-Gallery-Finder/backend/src/utils/rsvp/selectRsvpByRsvpProfileId.ts
TypeScript
www.github.com/CannonWilson/WebDev-Teaching_Archive/tree/main/AC-Gallery-Finder/backend/src/utils/rsvp/selectRsvpByRsvpProfileId.ts
https://raw.githubusercontent.com/CannonWilson/WebDev-Teaching_Archive/45a145f/AC-Gallery-Finder/backend/src/utils/rsvp/selectRsvpByRsvpProfileId.ts
CannonWilson/WebDev-Teaching_Archive 45a145f AC-Gallery-Finder/backend/src/utils/rsvp/selectRsvpByRsvpProfileId.ts
true
200
631
import {connect} from "../database.utils"; import {Rsvp} from "../interfaces/Rsvp"; import {RowDataPacket} from 'mysql2'; export async function selectRsvpByRsvpProfileId(rsvpProfileId: string): Promise<Rsvp[]> { try { const mysqlConnection = await connect(); const sqlQuery: string = 'SELECT BIN_TO...
6
SkaterPunisher/Next.js_TS_Ecommerce-admin
2a6f844
src/pages/api/auth/signin.ts
TypeScript
www.github.com/SkaterPunisher/Next.js_TS_Ecommerce-admin/tree/main/src/pages/api/auth/signin.ts
https://raw.githubusercontent.com/SkaterPunisher/Next.js_TS_Ecommerce-admin/2a6f844/src/pages/api/auth/signin.ts
SkaterPunisher/Next.js_TS_Ecommerce-admin 2a6f844 src/pages/api/auth/signin.ts
true
200
2,412
import { PrismaClient } from '@prisma/client'; import { NextApiRequest, NextApiResponse } from 'next'; import validator from 'validator'; import bcrypt from 'bcrypt'; import * as jose from 'jose'; import { setCookie } from 'cookies-next'; const prisma = new PrismaClient(); export default async function handler( req...
5
hugo-feijo/app-bank-system-back
f9262e4
src/home/home.service.ts
TypeScript
www.github.com/hugo-feijo/app-bank-system-back/tree/main/src/home/home.service.ts
https://raw.githubusercontent.com/hugo-feijo/app-bank-system-back/f9262e4/src/home/home.service.ts
hugo-feijo/app-bank-system-back f9262e4 src/home/home.service.ts
true
200
767
import { Injectable } from '@nestjs/common'; import { CartaoService } from 'src/cartao/cartao.service'; import { ContaService } from 'src/conta/conta.service'; @Injectable() export class HomeService { constructor( private contaService: ContaService, private cartaoService: CartaoService ) {} async fin...
4
SIMOES131/eFood
a62654b
src/componets/ProductsList/styles.ts
TypeScript
www.github.com/SIMOES131/eFood/tree/main/src/componets/ProductsList/styles.ts
https://raw.githubusercontent.com/SIMOES131/eFood/a62654b/src/componets/ProductsList/styles.ts
SIMOES131/eFood a62654b src/componets/ProductsList/styles.ts
true
200
628
import styled from 'styled-components' import { breakpoints } from '../../styles' export const Section = styled.div` padding-bottom: 120px; max-width: 1024px; align-items: center; aling-content: center; @media (max-width: 1024px) { .container { width: 46; margin-left: 0; } max-width:...
7
waritthonaof/coral-resort-admin
19fd6c3
src/interface/booking-interface.ts
TypeScript
www.github.com/waritthonaof/coral-resort-admin/tree/main/src/interface/booking-interface.ts
https://raw.githubusercontent.com/waritthonaof/coral-resort-admin/19fd6c3/src/interface/booking-interface.ts
waritthonaof/coral-resort-admin 19fd6c3 src/interface/booking-interface.ts
true
200
868
export interface Booking { _id: string; lodging: { _id: string; name: string }; user: { _id: string; name: string; email: string }; price: number; numUsers: number; discount: number; totalPrice: number; startDate: string; endDate: string; paid: boolean; status: string; createdAt?: string; } exp...
1
rakibaakter/university-management-using-typescript-mongoose-express-moduler-format
46af19d
src/app/builder/QueryBuilder.ts
TypeScript
www.github.com/rakibaakter/university-management-using-typescript-mongoose-express-moduler-format/tree/main/src/app/builder/QueryBuilder.ts
https://raw.githubusercontent.com/rakibaakter/university-management-using-typescript-mongoose-express-moduler-format/46af19d/src/app/builder/QueryBuilder.ts
rakibaakter/university-management-using-typescript-mongoose-express-moduler-format 46af19d src/app/builder/QueryBuilder.ts
true
200
1,641
import { FilterQuery, Query } from "mongoose"; class QueryBuilder { public modelQuery : Query<T[], T>; public query : Record<string, unknown>; constructor(modelQuery : Query<T[], T>, query : Record<string, unknown>){ this.modelQuery = modelQuery; this.query = query; } search(searc...
2
i-am-bee/bee-observe
4c4d5c4
src/trace/trace.service.ts
TypeScript
www.github.com/i-am-bee/bee-observe/tree/main/src/trace/trace.service.ts
https://raw.githubusercontent.com/i-am-bee/bee-observe/4c4d5c4/src/trace/trace.service.ts
i-am-bee/bee-observe 4c4d5c4 src/trace/trace.service.ts
true
200
5,512
/** * Copyright 2024 IBM Corp. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
3
danpercic86/ngrx-training
a0f7540
src/app/state/effects/items.effects.ts
TypeScript
www.github.com/danpercic86/ngrx-training/tree/main/src/app/state/effects/items.effects.ts
https://raw.githubusercontent.com/danpercic86/ngrx-training/a0f7540/src/app/state/effects/items.effects.ts
danpercic86/ngrx-training a0f7540 src/app/state/effects/items.effects.ts
true
200
855
import { Injectable } from '@angular/core'; import { Actions, createEffect, ofType } from '@ngrx/effects'; import { switchMap, tap } from 'rxjs'; import { map } from 'rxjs/operators'; import { deleteItem, loadItems, removeItem, setItems, } from '../actions'; import { ApiService } from '../../shared/services/api.servi...
6
muhammedt1207/e-tutor-server-
70f9330
chat-service/src/infrastructure/socket/index.ts
TypeScript
www.github.com/muhammedt1207/e-tutor-server-/tree/main/chat-service/src/infrastructure/socket/index.ts
https://raw.githubusercontent.com/muhammedt1207/e-tutor-server-/70f9330/chat-service/src/infrastructure/socket/index.ts
muhammedt1207/e-tutor-server- 70f9330 chat-service/src/infrastructure/socket/index.ts
true
200
4,655
import { Socket } from 'socket.io'; import { Server } from 'http'; import { setLastSeen } from '../database/mongo/repositories/setLastSeen'; import { messageSeen } from '../database/mongo/repositories/messageSeen'; const socketIo = require('socket.io'); const connectSocketIo = (server: Server) => { const io = socke...
5
iguatemigarin/sandbox
a9c4fe3
src/stage.ts
TypeScript
www.github.com/iguatemigarin/sandbox/tree/main/src/stage.ts
https://raw.githubusercontent.com/iguatemigarin/sandbox/a9c4fe3/src/stage.ts
iguatemigarin/sandbox a9c4fe3 src/stage.ts
true
200
1,199
import { canvas, ctx } from './canvas'; import { Point } from './point'; import { Renderable } from './renderable'; const parts = 100; const ratio = 1 / 2; export class Stage implements Renderable { unit: number = 1; width: number = canvas.width; height: number = canvas.height; origin: Point = [0, 0]; cons...
4
mi-gan-zi/FE-MiGanZi
857a4f5
src/hooks/useIntersectionObserver.ts
TypeScript
www.github.com/mi-gan-zi/FE-MiGanZi/tree/main/src/hooks/useIntersectionObserver.ts
https://raw.githubusercontent.com/mi-gan-zi/FE-MiGanZi/857a4f5/src/hooks/useIntersectionObserver.ts
mi-gan-zi/FE-MiGanZi 857a4f5 src/hooks/useIntersectionObserver.ts
true
200
723
import { useEffect, useRef, useCallback } from "react"; function useIntersectionObserver(onIntersect: any) { const ref = useRef(null); const handleIntersection = useCallback( ([entry]: any, observer: any) => { if (entry.isIntersecting) { observer.unobserve(entry.target); onIntersect(entr...
0
VAD37/ethernaut
ec379ee
scripts/20_denial.ts
TypeScript
www.github.com/VAD37/ethernaut/tree/main/scripts/20_denial.ts
https://raw.githubusercontent.com/VAD37/ethernaut/ec379ee/scripts/20_denial.ts
VAD37/ethernaut ec379ee scripts/20_denial.ts
true
200
857
// Runtime Environment's members available in the global scope. import { ethers } from 'ethers'; import { BigNumber, Signer, BytesLike } from "ethers"; import { getSigner } from "./signer"; import { DenialAttack__factory, Denial__factory } from "../typechain"; import { createLevel, submitLevel } from './utils'; async ...
7
jaques214/mvc-web-api
fc01413
client-side/src/app/components/dashboard/showrooms/form/showrooms-form.component.ts
TypeScript
www.github.com/jaques214/mvc-web-api/tree/main/client-side/src/app/components/dashboard/showrooms/form/showrooms-form.component.ts
https://raw.githubusercontent.com/jaques214/mvc-web-api/fc01413/client-side/src/app/components/dashboard/showrooms/form/showrooms-form.component.ts
jaques214/mvc-web-api fc01413 client-side/src/app/components/dashboard/showrooms/form/showrooms-form.component.ts
true
200
3,007
import { Component, OnInit } from '@angular/core'; import { Showroom } from '@models/showrooms'; import { RestService } from '@services/rest.service'; import { ActivatedRoute, Router } from '@angular/router'; import { Observable } from 'rxjs'; @Component({ selector: 'app-showrooms-form', templateUrl: './showrooms-...
1
felipefarnetti/ecommercefr
8dae598
app/api/product/wishlist/route.ts
TypeScript
www.github.com/felipefarnetti/ecommercefr/tree/main/app/api/product/wishlist/route.ts
https://raw.githubusercontent.com/felipefarnetti/ecommercefr/8dae598/app/api/product/wishlist/route.ts
felipefarnetti/ecommercefr 8dae598 app/api/product/wishlist/route.ts
true
200
1,506
// Importation des dépendances nécessaires import WishlistModel from "@models/wishlistModel"; import { auth } from "@/auth"; import { isValidObjectId } from "mongoose"; import { NextResponse } from "next/server"; export const POST = async (req: Request) => { const session = await auth(); // Vérification de l'auth...
2
bk1613/anime_series-character
d1a4bfe
src/app/subscrib/subscrib.component.spec.ts
TypeScript
www.github.com/bk1613/anime_series-character/tree/main/src/app/subscrib/subscrib.component.spec.ts
https://raw.githubusercontent.com/bk1613/anime_series-character/d1a4bfe/src/app/subscrib/subscrib.component.spec.ts
bk1613/anime_series-character d1a4bfe src/app/subscrib/subscrib.component.spec.ts
true
200
642
import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { SubscribComponent } from './subscrib.component'; describe('SubscribComponent', () => { let component: SubscribComponent; let fixture: ComponentFixture<SubscribComponent>; beforeEach(async(() => { TestBed.configureTestingModu...
3
viniciustvf/zerofila-backend
acf333f
src/fila/fila.controller.ts
TypeScript
www.github.com/viniciustvf/zerofila-backend/tree/main/src/fila/fila.controller.ts
https://raw.githubusercontent.com/viniciustvf/zerofila-backend/acf333f/src/fila/fila.controller.ts
viniciustvf/zerofila-backend acf333f src/fila/fila.controller.ts
true
200
6,970
import { Controller, Put, Get, Post, Body, Param, HttpStatus, Delete, BadRequestException, Query, } from '@nestjs/common'; import { FilaService } from './fila.service'; import { FilaUpdateDto } from './dto/fila-update.dto'; import { FilaDto } from './dto/fila.dto'; impo...
6
Joisci-Ferreira/TFC
6d3e05b
app/backend/src/controllers/LeaderboardController.ts
TypeScript
www.github.com/Joisci-Ferreira/TFC/tree/main/app/backend/src/controllers/LeaderboardController.ts
https://raw.githubusercontent.com/Joisci-Ferreira/TFC/6d3e05b/app/backend/src/controllers/LeaderboardController.ts
Joisci-Ferreira/TFC 6d3e05b app/backend/src/controllers/LeaderboardController.ts
true
200
447
import { Request, Response, NextFunction } from 'express'; import Leaderboard from '../services/LeaderboardService'; export default class LeaderboardController { static async getAll(req: Request, res: Response, next: NextFunction) { try { const { home } = req.params; const leaderboard = await Leaderb...
0
OscarGauss/vaquita-back
949ba06
src/app/group/route.ts
TypeScript
www.github.com/OscarGauss/vaquita-back/tree/main/src/app/group/route.ts
https://raw.githubusercontent.com/OscarGauss/vaquita-back/949ba06/src/app/group/route.ts
OscarGauss/vaquita-back 949ba06 src/app/group/route.ts
true
200
1,195
import { safeResponse } from 'helpers'; import type { API } from 'types'; import { __setTimestampGroup, archiveGroup, getAllGroups, getGroupData, postCreateGroup, postDepositGroup, postDisjoinGroup, postEnrollGroup, postJoinGroup, postScrollRegisterDeposit, postScrollRegisterWithdraw, postSetPos...
1
gerald023/Eulivy_strores
d3cfa36
src/service/implemetation/cartServiceImpl.impl.ts
TypeScript
www.github.com/gerald023/Eulivy_strores/tree/main/src/service/implemetation/cartServiceImpl.impl.ts
https://raw.githubusercontent.com/gerald023/Eulivy_strores/d3cfa36/src/service/implemetation/cartServiceImpl.impl.ts
gerald023/Eulivy_strores d3cfa36 src/service/implemetation/cartServiceImpl.impl.ts
true
200
3,594
import { Cart, CartItem } from "@prisma/client"; import { CartItemDTO, DisplayCartItemDTO } from "../../dto/export"; import { CartService } from "../exports"; import { db } from "../../utils/db.utils"; import { CustomError } from "../../error/customError.error"; import { ShopServiceImpl } from "./exports"; import Produ...
2
hua0512/charlie-vehicles
ffd6959
frontend/src/app/models/recharge.model.ts
TypeScript
www.github.com/hua0512/charlie-vehicles/tree/main/frontend/src/app/models/recharge.model.ts
https://raw.githubusercontent.com/hua0512/charlie-vehicles/ffd6959/frontend/src/app/models/recharge.model.ts
hua0512/charlie-vehicles ffd6959 frontend/src/app/models/recharge.model.ts
true
200
546
export interface Recharge { id: number | undefined, userId: number, vehicleId: number | string, chargerpointId: number | string, price: number, kw: number, status: RechargeStatus, payment: RechargePayment, dateStart: string | undefined dateEnd: string | undefined, } export enum RechargeStatus { ...
5
gitnorths/jointjs-plus
2668646
src/model/dto/signalGroup/controlGroup/ControlGroup.ts
TypeScript
www.github.com/gitnorths/jointjs-plus/tree/main/src/model/dto/signalGroup/controlGroup/ControlGroup.ts
https://raw.githubusercontent.com/gitnorths/jointjs-plus/2668646/src/model/dto/signalGroup/controlGroup/ControlGroup.ts
gitnorths/jointjs-plus 2668646 src/model/dto/signalGroup/controlGroup/ControlGroup.ts
true
200
1,055
import { TreeNode } from '@/model/dto/TreeNode' import { ControlGroupItem, SignalGroupConfig } from '@/model/dto' import { YesNoEnum } from '@/model/enum' export class ControlGroup extends TreeNode<SignalGroupConfig | ControlGroup, ControlGroup> { id!: string name!: 'CTRL_TABLE' | 'YK_TABLE' | 'YT_TABLE' | 'YM_TAB...
3
DhyonKeyllon/nest-clean
43c858c
src/domain/forum/application/use-cases/delete-question-comment.spec.ts
TypeScript
www.github.com/DhyonKeyllon/nest-clean/tree/main/src/domain/forum/application/use-cases/delete-question-comment.spec.ts
https://raw.githubusercontent.com/DhyonKeyllon/nest-clean/43c858c/src/domain/forum/application/use-cases/delete-question-comment.spec.ts
DhyonKeyllon/nest-clean 43c858c src/domain/forum/application/use-cases/delete-question-comment.spec.ts
true
200
1,904
import { makeQuestionComment } from 'test/factories/make-question-comment'; import { InMemoryQuestionCommentsRepository } from 'test/repositories/in-memory-question-comments-repository'; import { UniqueEntityID } from '@/core/entities/unique-entity-id'; import { NotAllowedError } from '@/core/errors/not-allowed-error'...
6
Caiuzu/task-api
ad06204
src/tasks/entities/task.entity.ts
TypeScript
www.github.com/Caiuzu/task-api/tree/main/src/tasks/entities/task.entity.ts
https://raw.githubusercontent.com/Caiuzu/task-api/ad06204/src/tasks/entities/task.entity.ts
Caiuzu/task-api ad06204 src/tasks/entities/task.entity.ts
true
200
316
import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose'; import { Document } from 'mongoose'; @Schema() export class Task extends Document { @Prop({ required: true }) description: string; @Prop({ default: false }) completed: boolean; } export const TaskSchema = SchemaFactory.createForClass(Task);
0
codewithdharmesh/Threds-graphql
c2cf4bc
src/index.ts
TypeScript
www.github.com/codewithdharmesh/Threds-graphql/tree/main/src/index.ts
https://raw.githubusercontent.com/codewithdharmesh/Threds-graphql/c2cf4bc/src/index.ts
codewithdharmesh/Threds-graphql c2cf4bc src/index.ts
true
200
635
import express from 'express'; import { expressMiddleware } from '@apollo/server/express4'; import cors from 'cors'; import axios from 'axios'; import createapolloserver from './graphql/index'; const app = express (); async function init (){ const PORT = process.env.PORT || 3000; app.use(express.json()); ...
1
vstgonavaram/ENGI9874-Group-14-Final-Project
80a034f
University-Admission-Management/src/app/components/login/login.component.ts
TypeScript
www.github.com/vstgonavaram/ENGI9874-Group-14-Final-Project/tree/main/University-Admission-Management/src/app/components/login/login.component.ts
https://raw.githubusercontent.com/vstgonavaram/ENGI9874-Group-14-Final-Project/80a034f/University-Admission-Management/src/app/components/login/login.component.ts
vstgonavaram/ENGI9874-Group-14-Final-Project 80a034f University-Admission-Management/src/app/components/login/login.component.ts
true
200
3,187
import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormGroup, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { AuthenticationService } from 'src/app/services/auth/authentication.service'; @Component({ selector: 'app-login', templateUrl: './login.component...
2
FrancoConci/auth-server
d57ccf8
src/index.ts
TypeScript
www.github.com/FrancoConci/auth-server/tree/main/src/index.ts
https://raw.githubusercontent.com/FrancoConci/auth-server/d57ccf8/src/index.ts
FrancoConci/auth-server d57ccf8 src/index.ts
true
200
275
import express from 'express'; import cors from 'cors'; express() .use(cors()) .get('/', (_, res) => { res.send(JSON.stringify({ AUTH: 'SERVER' })); }) .listen(process.env.PORT, () => { console.log(`Example app listening on port ${process.env.PORT}`); });
3
jannerymbf/Angular-YugiOhCards
ea8b02e
src/app/components/card/card.component.ts
TypeScript
www.github.com/jannerymbf/Angular-YugiOhCards/tree/main/src/app/components/card/card.component.ts
https://raw.githubusercontent.com/jannerymbf/Angular-YugiOhCards/ea8b02e/src/app/components/card/card.component.ts
jannerymbf/Angular-YugiOhCards ea8b02e src/app/components/card/card.component.ts
true
200
579
import { Component, Input, OnInit } from '@angular/core'; import { Router } from '@angular/router'; import { Card } from 'src/app/interfaces/card.interface'; @Component({ selector: 'app-card', templateUrl: './card.component.html', styleUrls: ['./card.component.scss'] }) export class CardComponent implements OnIn...
5
devGospel/Sanitrack-Version-II-backend
da9f734
src/utils/notification.ts
TypeScript
www.github.com/devGospel/Sanitrack-Version-II-backend/tree/main/src/utils/notification.ts
https://raw.githubusercontent.com/devGospel/Sanitrack-Version-II-backend/da9f734/src/utils/notification.ts
devGospel/Sanitrack-Version-II-backend da9f734 src/utils/notification.ts
true
200
1,299
import mongoose from "mongoose"; import NotificationModel from "../models/notification"; import { getCurrentDateInLosAngeles } from "./date"; //create the message to send export const createMessage = (roomName: String | undefined, workOrderId? : mongoose.Types.ObjectId) => { return `You have been assigned a work...
0
Danteee27/Online-Classroom-Server
24bca71
src/users/users.service.ts
TypeScript
www.github.com/Danteee27/Online-Classroom-Server/tree/main/src/users/users.service.ts
https://raw.githubusercontent.com/Danteee27/Online-Classroom-Server/24bca71/src/users/users.service.ts
Danteee27/Online-Classroom-Server 24bca71 src/users/users.service.ts
true
200
2,424
import { Injectable } from "@nestjs/common"; import { InjectRepository } from "@nestjs/typeorm"; import { EntityCondition } from "src/utils/types/entity-condition.type"; import { IPaginationOptions } from "src/utils/types/pagination-options"; import { DeepPartial, FindOptionsWhere, Repository } from "typeorm"; import {...
6
pubec929/Admin-Dashboard
8f5d1bc
src/app/right-sidebar/dialog-info/dialog-info.component.ts
TypeScript
www.github.com/pubec929/Admin-Dashboard/tree/main/src/app/right-sidebar/dialog-info/dialog-info.component.ts
https://raw.githubusercontent.com/pubec929/Admin-Dashboard/8f5d1bc/src/app/right-sidebar/dialog-info/dialog-info.component.ts
pubec929/Admin-Dashboard 8f5d1bc src/app/right-sidebar/dialog-info/dialog-info.component.ts
true
200
464
import {Component, Inject} from '@angular/core'; import {MAT_DIALOG_DATA} from '@angular/material/dialog'; @Component({ selector: 'app-dialog-info', templateUrl: './dialog-info.component.html', styleUrls: ['./dialog-info.component.css'] }) export class DialogInfoComponent { constructor(@Inject(MAT_DIALOG_DATA)...
1
paramountric/digitaltwincityviewer
1bc3094
packages/viewer/src/interaction-manager.ts
TypeScript
www.github.com/paramountric/digitaltwincityviewer/tree/main/packages/viewer/src/interaction-manager.ts
https://raw.githubusercontent.com/paramountric/digitaltwincityviewer/1bc3094/packages/viewer/src/interaction-manager.ts
paramountric/digitaltwincityviewer 1bc3094 packages/viewer/src/interaction-manager.ts
true
200
552
import { Viewer } from './viewer'; type InteractionManagerProps = { viewer: Viewer; }; export class InteractionManager { viewer: Viewer; constructor({ viewer }: InteractionManagerProps) { this.viewer = viewer; this.onInteractionStateChange = this.onInteractionStateChange.bind(this); } getCursor({ ...
2
korsun/roamus
6eb02de
server/src/controllers/routing.ts
TypeScript
www.github.com/korsun/roamus/tree/main/server/src/controllers/routing.ts
https://raw.githubusercontent.com/korsun/roamus/6eb02de/server/src/controllers/routing.ts
korsun/roamus 6eb02de server/src/controllers/routing.ts
true
200
2,624
import { Request, Response } from 'express'; import fetch from 'cross-fetch'; import asyncHandler from 'express-async-handler'; import { GraphHopperPayload, GraphHopperResponse, ORSPayload, ORSResponse, } from '@common/types'; /** * @desc Map routing between given points * @route POST /api/routing/ */ expor...
3
denysyen/PersonalRepo
5c46641
Finished Projects/votingApp/votingAppFrontend/poll-app/src/app/poll/poll.component.ts
TypeScript
www.github.com/denysyen/PersonalRepo/tree/main/Finished Projects/votingApp/votingAppFrontend/poll-app/src/app/poll/poll.component.ts
https://raw.githubusercontent.com/denysyen/PersonalRepo/5c46641/Finished%20Projects/votingApp/votingAppFrontend/poll-app/src/app/poll/poll.component.ts
denysyen/PersonalRepo 5c46641 Finished Projects/votingApp/votingAppFrontend/poll-app/src/app/poll/poll.component.ts
true
200
2,133
import { Component, OnInit } from '@angular/core'; import { PollService } from '../poll.service'; import { Poll } from '../poll.models'; import { CommonModule } from '@angular/common'; import { FormsModule } from '@angular/forms'; @Component({ selector: 'app-poll', imports: [CommonModule, FormsModule], templateU...
0
isaacg11/vivacity-backend
c287615
server.ts
TypeScript
www.github.com/isaacg11/vivacity-backend/tree/main/server.ts
https://raw.githubusercontent.com/isaacg11/vivacity-backend/c287615/server.ts
isaacg11/vivacity-backend c287615 server.ts
true
200
2,696
import express, { Request, Response } from 'express'; import { Pool } from 'pg'; const app = express(); const port = 3000; // Create a PostgreSQL pool const pool = new Pool({ user: 'your_username', host: 'localhost', database: 'your_database', password: 'your_password', port: 5432, }); app.use(express.json...
6
gurpreetsinghhh00/Payments-Bank
c6bf6d2
apps/user-app/app/lib/auth.ts
TypeScript
www.github.com/gurpreetsinghhh00/Payments-Bank/tree/main/apps/user-app/app/lib/auth.ts
https://raw.githubusercontent.com/gurpreetsinghhh00/Payments-Bank/c6bf6d2/apps/user-app/app/lib/auth.ts
gurpreetsinghhh00/Payments-Bank c6bf6d2 apps/user-app/app/lib/auth.ts
true
200
2,268
import CredentialsProvider from "next-auth/providers/credentials"; import bcrypt from "bcrypt" import client from "@repo/db/client" export const authOptions = { providers : [ CredentialsProvider({ name: "Credentials", credentials : { phone: { label: "Phone Number", t...
1
islamov-ildar/rxjs-course
da5a58d
src/index14.ts
TypeScript
www.github.com/islamov-ildar/rxjs-course/tree/main/src/index14.ts
https://raw.githubusercontent.com/islamov-ildar/rxjs-course/da5a58d/src/index14.ts
islamov-ildar/rxjs-course da5a58d src/index14.ts
true
200
361
import { fromEvent } from "rxjs"; import { map, debounceTime } from "rxjs/operators"; const sliderInput = document.querySelector("input#slider"); let count = 0; fromEvent(sliderInput, "input") .pipe( debounceTime(1000), map((event: any) => event.target["value"]) ) .subscribe((event) => { console.log...
2
VerzCar/vyf-web-app
9f4d32b
libs/component/src/lib/warning-dialog/warning-dialog.component.ts
TypeScript
www.github.com/VerzCar/vyf-web-app/tree/main/libs/component/src/lib/warning-dialog/warning-dialog.component.ts
https://raw.githubusercontent.com/VerzCar/vyf-web-app/9f4d32b/libs/component/src/lib/warning-dialog/warning-dialog.component.ts
VerzCar/vyf-web-app 9f4d32b libs/component/src/lib/warning-dialog/warning-dialog.component.ts
true
200
1,233
import { ChangeDetectionStrategy, Component, inject } from '@angular/core'; import { MatButtonModule } from '@angular/material/button'; import { MAT_DIALOG_DATA, MatDialogActions, MatDialogContent, MatDialogRef, MatDialogTitle } from '@angular/material/dialog'; export interface WarningDialogData { title: string; ...
3
HenrikSydow/BrowserRPG
b2651f5
src/gfx/animationConstants.ts
TypeScript
www.github.com/HenrikSydow/BrowserRPG/tree/main/src/gfx/animationConstants.ts
https://raw.githubusercontent.com/HenrikSydow/BrowserRPG/b2651f5/src/gfx/animationConstants.ts
HenrikSydow/BrowserRPG b2651f5 src/gfx/animationConstants.ts
true
200
1,674
/** * This namespace is reserved for all constants related to * the {@link Animation} and {@link AnimationHandler} classes. */ export namespace AnimationConstants { /** * The AnimationNames enum keeps track of all * the aliases / names of animations. These should be used to * identify {@link Ani...
5
stemyke/node-backend
3f55726
src/services/gallery-cache.ts
TypeScript
www.github.com/stemyke/node-backend/tree/main/src/services/gallery-cache.ts
https://raw.githubusercontent.com/stemyke/node-backend/3f55726/src/services/gallery-cache.ts
stemyke/node-backend 3f55726 src/services/gallery-cache.ts
true
200
861
import {injectable, Lifecycle, scoped} from "tsyringe"; import {IGalleryImage, IGalleryImageHandler, IGallerySize} from "../common-types"; import {GalleryImage} from "./gallery-image"; @injectable() @scoped(Lifecycle.ContainerScoped) export class GalleryCache { private readonly imgCache: { [id: string]: IGalleryI...
0
anibal-corral/angular-admpro
77a5a1f
src/app/pages/account-settings/account-settings.component.ts
TypeScript
www.github.com/anibal-corral/angular-admpro/tree/main/src/app/pages/account-settings/account-settings.component.ts
https://raw.githubusercontent.com/anibal-corral/angular-admpro/77a5a1f/src/app/pages/account-settings/account-settings.component.ts
anibal-corral/angular-admpro 77a5a1f src/app/pages/account-settings/account-settings.component.ts
true
200
515
import { Component, OnInit } from '@angular/core'; import { SettingsService } from '../../services/settings.service'; @Component({ selector: 'app-account-settings', templateUrl: './account-settings.component.html', styles: [ ] }) export class AccountSettingsComponent implements OnInit { constructor(pr...
6
manhbv001/freenance-api
5da07d1
src/modules/group/group.controller.ts
TypeScript
www.github.com/manhbv001/freenance-api/tree/main/src/modules/group/group.controller.ts
https://raw.githubusercontent.com/manhbv001/freenance-api/5da07d1/src/modules/group/group.controller.ts
manhbv001/freenance-api 5da07d1 src/modules/group/group.controller.ts
true
200
1,008
import { Body, Controller, Get, Post, UseGuards } from '@nestjs/common'; import { Roles } from 'src/common/decorators/role.decorator'; import { GetUser } from 'src/common/decorators/user.decorator'; import { JwtAuthGuard } from 'src/common/guards/jwt-auth.guard'; import { RoleGuard } from 'src/common/guards/role.guard'...
1
flirits/flux-branch-and-version
510336a
src/main.ts
TypeScript
www.github.com/flirits/flux-branch-and-version/tree/main/src/main.ts
https://raw.githubusercontent.com/flirits/flux-branch-and-version/510336a/src/main.ts
flirits/flux-branch-and-version 510336a src/main.ts
true
200
3,480
/** * Parses the override string * Example of an override string: server=hashOrTask;hybrid=task/something/some;streaming=... * Available overrides are * - server * - hybrid * - web * - streaming * - documentation * - gateway * - maps * - broker * - est * - certificates * - data * - plugins */ import * a...
2
ZachWatkins/game-typing-platformer
fbb0f25
src/controller/entity.ts
TypeScript
www.github.com/ZachWatkins/game-typing-platformer/tree/main/src/controller/entity.ts
https://raw.githubusercontent.com/ZachWatkins/game-typing-platformer/fbb0f25/src/controller/entity.ts
ZachWatkins/game-typing-platformer fbb0f25 src/controller/entity.ts
true
200
4,006
/** * Entity controller functions. * * @author Zachary K. Watkins */ import { MAP } from '../common/constants' import type { Entity } from '../model/entity' import { platforms } from '../model/environment' import { rectOverlapsRect } from './physics' export const running: RunningEntityController = { queue: {},...
3
omar-caiguan-ojeda/Ecommerce-Smart-Style
d640fb6
back/src/modules/auth/guards/roles.guard.ts
TypeScript
www.github.com/omar-caiguan-ojeda/Ecommerce-Smart-Style/tree/main/back/src/modules/auth/guards/roles.guard.ts
https://raw.githubusercontent.com/omar-caiguan-ojeda/Ecommerce-Smart-Style/d640fb6/back/src/modules/auth/guards/roles.guard.ts
omar-caiguan-ojeda/Ecommerce-Smart-Style d640fb6 back/src/modules/auth/guards/roles.guard.ts
true
200
972
import { Injectable, CanActivate, ExecutionContext, ForbiddenException } from '@nestjs/common'; import { Reflector } from '@nestjs/core'; import { Role } from '@prisma/client'; // Importa el enum Role desde Prisma @Injectable() export class RolesGuard implements CanActivate { constructor(private reflector: Reflector...
5
mrmaligi2007/-APC-
bec1f20
attached_assets/iconMapping.ts
TypeScript
www.github.com/mrmaligi2007/-APC-/tree/main/attached_assets/iconMapping.ts
https://raw.githubusercontent.com/mrmaligi2007/-APC-/bec1f20/attached_assets/iconMapping.ts
mrmaligi2007/-APC- bec1f20 attached_assets/iconMapping.ts
true
200
713
import { Platform } from 'react-native'; // This maps invalid or inconsistent icon names to valid ones // based on the @expo/vector-icons Ionicons set export const mapIoniconName = (name: string): string => { const iconMap: Record<string, string> = { // Common replacements for missing icons 'unlock-outline':...
0
tclauson/dv2022
022d480
dv-client-master/src/@dv/components/youtube-player/youtube-player.component.ts
TypeScript
www.github.com/tclauson/dv2022/tree/main/dv-client-master/src/@dv/components/youtube-player/youtube-player.component.ts
https://raw.githubusercontent.com/tclauson/dv2022/022d480/dv-client-master/src/%40dv/components/youtube-player/youtube-player.component.ts
tclauson/dv2022 022d480 dv-client-master/src/@dv/components/youtube-player/youtube-player.component.ts
true
200
698
import { Component, Input, OnInit, ViewEncapsulation } from '@angular/core'; import { ErrorHandlerService } from '../../services/error-handler.service'; @Component({ selector: 'youtube-player', templateUrl: './youtube-player.component.html', styleUrls: ['./youtube-player.component.scss'], encapsulation: ViewEn...
1
jcoh3n/podcast-AI
b36f451
src/theme/spacing.ts
TypeScript
www.github.com/jcoh3n/podcast-AI/tree/main/src/theme/spacing.ts
https://raw.githubusercontent.com/jcoh3n/podcast-AI/b36f451/src/theme/spacing.ts
jcoh3n/podcast-AI b36f451 src/theme/spacing.ts
true
200
297
// src/theme/spacing.ts import { Platform } from 'react-native'; export const spacing = { xs: 4, sm: 8, md: 16, lg: 24, xl: 32, xxl: 48, safe: { top: Platform.OS === 'ios' ? 50 : 30, bottom: Platform.OS === 'ios' ? 34 : 24, }, touchable: 44, // Minimum touchable area };
3
12vaishnavi9/Rest-API
ae4d191
src/user/user.service.ts
TypeScript
www.github.com/12vaishnavi9/Rest-API/tree/main/src/user/user.service.ts
https://raw.githubusercontent.com/12vaishnavi9/Rest-API/ae4d191/src/user/user.service.ts
12vaishnavi9/Rest-API ae4d191 src/user/user.service.ts
true
200
521
import { Injectable } from '@nestjs/common'; import { PrismaService } from '../prisma/prisma.service'; import { EditUserDto } from './dto'; @Injectable() export class UserService { constructor(private prisma:PrismaService){} async editUser(userId:number,dto:EditUserDto){ const user=await this.pris...
6
Viniciuxbento/OneBitCode
047b673
TypeScript/ex 1/tsc/index.ts
TypeScript
www.github.com/Viniciuxbento/OneBitCode/tree/main/TypeScript/ex 1/tsc/index.ts
https://raw.githubusercontent.com/Viniciuxbento/OneBitCode/047b673/TypeScript/ex%201/tsc/index.ts
Viniciuxbento/OneBitCode 047b673 TypeScript/ex 1/tsc/index.ts
true
200
1,035
function mandarNave(nome: string, capitao: string) { const nave = { nome, capitao, velocidade: 20, emMissao: true, tripulacao: [] } alert(`A nave ${nome} sob comando do capitão ${capitao} está saindo em missão`) return nave } function velocidadeAtribuir(velocidad...
5
luluulemon/clientSideFoundation
fe8d544
day38excercise/client/src/app/services/contact-repo.service.ts
TypeScript
www.github.com/luluulemon/clientSideFoundation/tree/main/day38excercise/client/src/app/services/contact-repo.service.ts
https://raw.githubusercontent.com/luluulemon/clientSideFoundation/fe8d544/day38excercise/client/src/app/services/contact-repo.service.ts
luluulemon/clientSideFoundation fe8d544 day38excercise/client/src/app/services/contact-repo.service.ts
true
200
774
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import Dexie from 'dexie'; import { lastValueFrom } from 'rxjs'; import { Contact } from '../models/contact'; @Injectable({ providedIn: 'root' }) export class ContactRepoService extends Dexie { contact!: Dexie.Table<Co...
2
danihp6/saving-box
6235de7
src/app/pages/home/home.component.ts
TypeScript
www.github.com/danihp6/saving-box/tree/main/src/app/pages/home/home.component.ts
https://raw.githubusercontent.com/danihp6/saving-box/6235de7/src/app/pages/home/home.component.ts
danihp6/saving-box 6235de7 src/app/pages/home/home.component.ts
true
200
1,640
import { Component } from '@angular/core'; import { Router } from '@angular/router'; import { Box } from 'src/app/core/models/SavingBox'; import { BoxesService } from 'src/app/core/services/boxes.service'; @Component({ selector: 'app-home', templateUrl: './home.component.html', styleUrls: ['./home.component.scss...
1
utu-protocol/utu-trust-token-listener
058a551
src/endorsements/endorsements.controller.ts
TypeScript
www.github.com/utu-protocol/utu-trust-token-listener/tree/main/src/endorsements/endorsements.controller.ts
https://raw.githubusercontent.com/utu-protocol/utu-trust-token-listener/058a551/src/endorsements/endorsements.controller.ts
utu-protocol/utu-trust-token-listener 058a551 src/endorsements/endorsements.controller.ts
true
200
450
import { Controller, Get, Query, } from '@nestjs/common'; import { EndorsementsService } from './endorsements.service'; import EndorsementDto from './dto/endorsement.dto'; @Controller('endorsements') export class EndorsementsController { constructor(private readonly endorsementsService: EndorsementsService) {}...
0
eldarknz/middle.messenger.praktikum.yandex
366da05
src/pages/profile/index.ts
TypeScript
www.github.com/eldarknz/middle.messenger.praktikum.yandex/tree/main/src/pages/profile/index.ts
https://raw.githubusercontent.com/eldarknz/middle.messenger.praktikum.yandex/366da05/src/pages/profile/index.ts
eldarknz/middle.messenger.praktikum.yandex 366da05 src/pages/profile/index.ts
true
200
6,148
// Core import { Block } from '@core/block'; import { renderDOM } from '@core/renderDom'; import { TState } from '@core/store'; import { connect } from '@core/store/connect'; import { AuthController } from '@core/controllers/authContorller'; import { UserController } from '@core/controllers/userController'; // Componen...
3
bcgov/fin-pay-transparency
2ebc1dc
backend/src/schedulers/delete-draft-service-scheduler.spec.ts
TypeScript
www.github.com/bcgov/fin-pay-transparency/tree/main/backend/src/schedulers/delete-draft-service-scheduler.spec.ts
https://raw.githubusercontent.com/bcgov/fin-pay-transparency/2ebc1dc/backend/src/schedulers/delete-draft-service-scheduler.spec.ts
bcgov/fin-pay-transparency 2ebc1dc backend/src/schedulers/delete-draft-service-scheduler.spec.ts
true
200
2,042
import waitFor from 'wait-for-expect'; import deleteDraftReportsJob from './delete-draft-service-scheduler'; jest.mock('../v1/services/utils-service', () => ({ utils: { delay: jest.fn(), }, })); const mock_deleteDraftReports = jest.fn(); jest.mock('../v1/services/scheduler-service', () => ({ schedulerServic...
6
kypexfly/learning
d73694e
basics/src/examples/GraphqlExample/characters/useCharacters.ts
TypeScript
www.github.com/kypexfly/learning/tree/main/basics/src/examples/GraphqlExample/characters/useCharacters.ts
https://raw.githubusercontent.com/kypexfly/learning/d73694e/basics/src/examples/GraphqlExample/characters/useCharacters.ts
kypexfly/learning d73694e basics/src/examples/GraphqlExample/characters/useCharacters.ts
true
200
462
import { useQuery } from "@apollo/client" import { GET_CHARACTERS } from "./character-queries" // Making this separation, in the future if I don't use apollo client // I can use fetch/react-query/redux/etc just changing a line of code // respecting the contract of {data, loading, error} const useCharacters = () => { ...
5
vdbongard/trakify
0cbb7ff
src/types/Http.ts
TypeScript
www.github.com/vdbongard/trakify/tree/main/src/types/Http.ts
https://raw.githubusercontent.com/vdbongard/trakify/0cbb7ff/src/types/Http.ts
vdbongard/trakify 0cbb7ff src/types/Http.ts
true
200
417
import { HttpContext, HttpHeaders, HttpParams } from '@angular/common/http'; export interface HttpOptions { headers?: HttpHeaders | Record<string, string | string[]>; context?: HttpContext; observe?: 'body'; params?: | HttpParams | Record<string, string | number | boolean | readonly (string | number | ...
2
AliJabbar034/Node-TypeScript-CRUD-APIS
52321da
src/middleware/errorHandler.middleware.ts
TypeScript
www.github.com/AliJabbar034/Node-TypeScript-CRUD-APIS/tree/main/src/middleware/errorHandler.middleware.ts
https://raw.githubusercontent.com/AliJabbar034/Node-TypeScript-CRUD-APIS/52321da/src/middleware/errorHandler.middleware.ts
AliJabbar034/Node-TypeScript-CRUD-APIS 52321da src/middleware/errorHandler.middleware.ts
true
200
592
import { Request, Response, NextFunction } from "express"; import AppError from "../utills/AppError"; import { z } from "zod"; import { StatusCodes } from "http-status-codes"; const errorHandler = ( err: AppError, req: Request, res: Response, next: NextFunction ) => { const statusCode = err.statusCode || 500;...
1
Philix27/rampage
437af39
apps/server/modules/beneficiary/routes.ts
TypeScript
www.github.com/Philix27/rampage/tree/main/apps/server/modules/beneficiary/routes.ts
https://raw.githubusercontent.com/Philix27/rampage/437af39/apps/server/modules/beneficiary/routes.ts
Philix27/rampage 437af39 apps/server/modules/beneficiary/routes.ts
true
200
1,503
import { updateSchema, createSchema, getAllSchema } from "./schema"; import { Hono } from "hono"; import { BeneficiaryService } from "./service"; import { BeneficiaryRepository } from "../../db"; const service = new BeneficiaryService(new BeneficiaryRepository()); export const beneficiaryRoutes = new Hono() .post("...
5
AESMatias/wittgenstein-bot
9404a9f
adminActions/actions.ts
TypeScript
www.github.com/AESMatias/wittgenstein-bot/tree/main/adminActions/actions.ts
https://raw.githubusercontent.com/AESMatias/wittgenstein-bot/9404a9f/adminActions/actions.ts
AESMatias/wittgenstein-bot 9404a9f adminActions/actions.ts
true
200
2,342
const fs = require('node:fs'); const path = require('node:path'); const { Message } = require('discord.js'); // const { path } = require('node:path'); // const JsonConfigPath = path.join(__dirname, '..', 'config', 'generalConfig.json'); const {configObject} = require(path.join(__dirname, '..', 'config', 'loadSettings.j...
0
morish000/alpinejs-form-validate-plugin
39f5e43
test/i18nextValidator.ts
TypeScript
www.github.com/morish000/alpinejs-form-validate-plugin/tree/main/test/i18nextValidator.ts
https://raw.githubusercontent.com/morish000/alpinejs-form-validate-plugin/39f5e43/test/i18nextValidator.ts
morish000/alpinejs-form-validate-plugin 39f5e43 test/i18nextValidator.ts
true
200
5,010
import { JSDOM } from "jsdom"; import { fireEvent } from "@testing-library/dom"; import i18next, { type InitOptions } from "i18next"; import i18nextFsBackend from "i18next-fs-backend"; import { createI18NextPlugin } from "../src/i18next/alpinejs_i18next_plugin"; import { createI18NextMessageResolver } from "../src/i18n...
3
ArchAngel776/straight-flush
e143397
src/core/helpers/query/array/has/QueryArrayHasExpression.ts
TypeScript
www.github.com/ArchAngel776/straight-flush/tree/main/src/core/helpers/query/array/has/QueryArrayHasExpression.ts
https://raw.githubusercontent.com/ArchAngel776/straight-flush/e143397/src/core/helpers/query/array/has/QueryArrayHasExpression.ts
ArchAngel776/straight-flush e143397 src/core/helpers/query/array/has/QueryArrayHasExpression.ts
true
200
592
import { Filter, FilterOperators } from "mongodb" import ModelSchema from "@data/interfaces/ModelSchema" import { ValueofModel } from "@data/types/ValueofModel" import QueryArrayValueExpression from "@foundations/query/QueryArrayValueExpression" export type QueryArrayHasExpressionValue<Schema extends ModelSchema> =...
2
hyanez-lightit/hackateam-3
3de89d4
frontend/src/api/diagnosis.api.ts
TypeScript
www.github.com/hyanez-lightit/hackateam-3/tree/main/frontend/src/api/diagnosis.api.ts
https://raw.githubusercontent.com/hyanez-lightit/hackateam-3/3de89d4/frontend/src/api/diagnosis.api.ts
hyanez-lightit/hackateam-3 3de89d4 frontend/src/api/diagnosis.api.ts
true
200
553
import { api } from './api'; type Diagnosis = { id: string; name: string; code: string; }; export type Response = { data: { patientId: string; diagnosesPredicted: Diagnosis[]; diagnosesMatched: Diagnosis[]; patientsBasedPrediction: Array<Record<string, unknown>>; openAiResponse: Record<str...
1
afzalmansuri786/incipient-assessment
7ba57a1
src/modules/roles/user-roles/user-role.controller.ts
TypeScript
www.github.com/afzalmansuri786/incipient-assessment/tree/main/src/modules/roles/user-roles/user-role.controller.ts
https://raw.githubusercontent.com/afzalmansuri786/incipient-assessment/7ba57a1/src/modules/roles/user-roles/user-role.controller.ts
afzalmansuri786/incipient-assessment 7ba57a1 src/modules/roles/user-roles/user-role.controller.ts
true
200
1,730
import { Request, Response } from 'express'; import { UserRoleService } from './user-role.service'; const userRoleService = new UserRoleService() export class UserRoleController { async createUserRole(req: Request, res: Response) { try { const userRoleData = req.body; const userRole = await userRol...
6
dkershner6/jest-coverage-commenter-action
1046287
src/tasks/postComment.ts
TypeScript
www.github.com/dkershner6/jest-coverage-commenter-action/tree/main/src/tasks/postComment.ts
https://raw.githubusercontent.com/dkershner6/jest-coverage-commenter-action/1046287/src/tasks/postComment.ts
dkershner6/jest-coverage-commenter-action 1046287 src/tasks/postComment.ts
true
200
2,441
/* istanbul ignore file */ import { error, setFailed, info } from "@actions/core"; import { getOctokit as getOctokitImport, context } from "@actions/github"; import { GitHub } from "@actions/github/lib/utils"; import { FormattedCoverage } from "./runJest"; export type PostComment = ( formattedCoverage: FormattedC...
7
Saveliy113/beta_quiz-client
3e06669
src/entities/groups/model/groups.service.ts
TypeScript
www.github.com/Saveliy113/beta_quiz-client/tree/main/src/entities/groups/model/groups.service.ts
https://raw.githubusercontent.com/Saveliy113/beta_quiz-client/3e06669/src/entities/groups/model/groups.service.ts
Saveliy113/beta_quiz-client 3e06669 src/entities/groups/model/groups.service.ts
true
200
333
import { $axios } from '@/shared/api'; import { GetGroupsDto } from './types'; class GroupsApi { async getGroups(dto: GetGroupsDto) { return $axios.post('/alfa_requests/groups/get_teacher_groups', { ...dto, teacher_id: dto.teacher, }); } } const TableService = new GroupsApi(); export default T...
5
PabloBonfante/Chaplin-Client
a57813b
src/app/Pages/servicio/servicio.component.ts
TypeScript
www.github.com/PabloBonfante/Chaplin-Client/tree/main/src/app/Pages/servicio/servicio.component.ts
https://raw.githubusercontent.com/PabloBonfante/Chaplin-Client/a57813b/src/app/Pages/servicio/servicio.component.ts
PabloBonfante/Chaplin-Client a57813b src/app/Pages/servicio/servicio.component.ts
true
200
4,509
import { Component, Inject, inject, OnInit, ViewChild } from '@angular/core'; import { FormsModule } from '@angular/forms'; // Models import { Servicio } from '../../Models/servicio'; // Services import { ServicioService } from '../../Service/servicio.service'; // Material import { MaterialModule } from '../../share...
0
priyanshij16/customer-bib-service
39fe07f
src/core/validators/peopleMovementValidator.ts
TypeScript
www.github.com/priyanshij16/customer-bib-service/tree/main/src/core/validators/peopleMovementValidator.ts
https://raw.githubusercontent.com/priyanshij16/customer-bib-service/39fe07f/src/core/validators/peopleMovementValidator.ts
priyanshij16/customer-bib-service 39fe07f src/core/validators/peopleMovementValidator.ts
true
200
2,720
//'use strict' import { check, query, param, oneOf, body } from 'express-validator' import { AuthController } from '../../controllers/AuthController' import { Validator } from './Validator' class PeopleMovementValidator extends Validator { constructor() { super({ key: [ body('key').custom((key) => ...
3
mendozang/petPalzWeb
1a2296b
src/app/guias/guias.component.ts
TypeScript
www.github.com/mendozang/petPalzWeb/tree/main/src/app/guias/guias.component.ts
https://raw.githubusercontent.com/mendozang/petPalzWeb/1a2296b/src/app/guias/guias.component.ts
mendozang/petPalzWeb 1a2296b src/app/guias/guias.component.ts
true
200
1,337
import { Component, signal, HostListener, OnInit } from '@angular/core'; import { SidebarComponent } from '../sidebar/sidebar.component'; import { CommonModule } from '@angular/common'; import { MatIconModule } from '@angular/material/icon'; import { RouterModule } from '@angular/router'; @Component({ selector: 'app...
4
jayalekshmir/sample-task-management
c23569a
src/pages/dashboard/dashboard.controller.ts
TypeScript
www.github.com/jayalekshmir/sample-task-management/tree/main/src/pages/dashboard/dashboard.controller.ts
https://raw.githubusercontent.com/jayalekshmir/sample-task-management/c23569a/src/pages/dashboard/dashboard.controller.ts
jayalekshmir/sample-task-management c23569a src/pages/dashboard/dashboard.controller.ts
true
200
6,045
import Board from "./board/board.controler"; import Issues from "./issues/issues.controller"; import {IssuesData} from "./issues/issues.mock"; import LogIn from "../login/login.controler"; class Dashboard { userInfo: HTMLElement = document.getElementById('userInfo'); constructor(private userName: string) { thi...
2
Dirosaki/magnum-bank
f30f713
src/lib/auth.ts
TypeScript
www.github.com/Dirosaki/magnum-bank/tree/main/src/lib/auth.ts
https://raw.githubusercontent.com/Dirosaki/magnum-bank/f30f713/src/lib/auth.ts
Dirosaki/magnum-bank f30f713 src/lib/auth.ts
true
200
671
import { JwtPayload, verify } from 'jsonwebtoken' import { cookies } from 'next/headers' import { env } from '@/config/env' import { db } from './db' async function verifyJwt() { const cookiesStore = await cookies() const accessToken = cookiesStore.get('accessToken')?.value if (!accessToken) return null tr...
1
AkashDesai22/HotelProject
85c916c
HotelProject/src/app/owner/owner-routing.module.ts
TypeScript
www.github.com/AkashDesai22/HotelProject/tree/main/HotelProject/src/app/owner/owner-routing.module.ts
https://raw.githubusercontent.com/AkashDesai22/HotelProject/85c916c/HotelProject/src/app/owner/owner-routing.module.ts
AkashDesai22/HotelProject 85c916c HotelProject/src/app/owner/owner-routing.module.ts
true
200
799
import { NgModule } from '@angular/core'; import { RouterModule, Routes } from '@angular/router'; import { OwnerhomeComponent } from './ownerhome/ownerhome.component'; import { OwnersignupComponent } from './ownersignup/ownersignup.component'; import { OwnersuccessComponent } from './ownersuccess/ownersuccess.component...
6
JonecoBoy/00academy
c794757
src/core/providers/courses-repository.interface.ts
TypeScript
www.github.com/JonecoBoy/00academy/tree/main/src/core/providers/courses-repository.interface.ts
https://raw.githubusercontent.com/JonecoBoy/00academy/c794757/src/core/providers/courses-repository.interface.ts
JonecoBoy/00academy c794757 src/core/providers/courses-repository.interface.ts
true
200
925
import { CourseEntity } from "../entities/course.entity"; export type CourseRespositorySearchParams = { id?: string; }; export type CourseRespositoryCreateParams = { name: string; slug: string; status: boolean; users?:string[]; lessons?:string[]; released_at?:string; }; export type CourseRespositoryUpd...
5
Nivash1112/Tweet-Front-End
3ccecdd
src/app/user-activity-container/show-tweets-page/show-tweets-page.component.ts
TypeScript
www.github.com/Nivash1112/Tweet-Front-End/tree/main/src/app/user-activity-container/show-tweets-page/show-tweets-page.component.ts
https://raw.githubusercontent.com/Nivash1112/Tweet-Front-End/3ccecdd/src/app/user-activity-container/show-tweets-page/show-tweets-page.component.ts
Nivash1112/Tweet-Front-End 3ccecdd src/app/user-activity-container/show-tweets-page/show-tweets-page.component.ts
true
200
6,242
import { formatDate, LocationStrategy } from '@angular/common'; import { Component, OnInit } from '@angular/core'; import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms'; import { Router } from '@angular/router'; import { CommentsList } from 'src/app/model/commentsList.model'; import { TweetRe...
0
joao1912/Book_Go
abd3338
src/interface/middlewares/ErrorHandler.ts
TypeScript
www.github.com/joao1912/Book_Go/tree/main/src/interface/middlewares/ErrorHandler.ts
https://raw.githubusercontent.com/joao1912/Book_Go/abd3338/src/interface/middlewares/ErrorHandler.ts
joao1912/Book_Go abd3338 src/interface/middlewares/ErrorHandler.ts
true
200
594
import { HttpNext, HttpRequest, HttpResponse } from "../../adapters/HTTPAdapter/protocol"; import { CustomError } from "../controllers/utils/CustomError"; import ServerResponse from "../controllers/utils/ServerResponse"; export default class ErrorHandler { public static execute(err: Error & Partial<CustomError>...
7
Zushah/Chalkboard
c2ca8fb
src/Chalkboard-quat.ts
TypeScript
www.github.com/Zushah/Chalkboard/tree/main/src/Chalkboard-quat.ts
https://raw.githubusercontent.com/Zushah/Chalkboard/c2ca8fb/src/Chalkboard-quat.ts
Zushah/Chalkboard c2ca8fb src/Chalkboard-quat.ts
true
200
16,373
/* The Chalkboard Library - Quaternion Namespace Version 2.1.0 Seki */ /// <reference path="Chalkboard.ts"/> namespace Chalkboard { /** * The quaternion namespace. * @namespace */ export namespace quat { /** * Calculates the absolute value of a quaternion. * @par...
3
juancampa/code-samples
120c9d2
membrane/mem/index.ts
TypeScript
www.github.com/juancampa/code-samples/tree/main/membrane/mem/index.ts
https://raw.githubusercontent.com/juancampa/code-samples/120c9d2/membrane/mem/index.ts
juancampa/code-samples 120c9d2 membrane/mem/index.ts
true
200
2,824
/** * A driver for the Membrane API itself. * * Note: this driver is a work-in-progress and it's still missing a lot of Membrane's API functionality. * */ import { root, state } from "membrane"; async function api( method: "GET" | "POST", path: string, query?: any, body?: any ) { if (query) { Object...
4
pyyupsk/messenger-webhooks
cc6d657
packages/messenger-webhooks/src/messaging/buttons/index.ts
TypeScript
www.github.com/pyyupsk/messenger-webhooks/tree/main/packages/messenger-webhooks/src/messaging/buttons/index.ts
https://raw.githubusercontent.com/pyyupsk/messenger-webhooks/cc6d657/packages/messenger-webhooks/src/messaging/buttons/index.ts
pyyupsk/messenger-webhooks cc6d657 packages/messenger-webhooks/src/messaging/buttons/index.ts
true
200
445
import type { CallButton } from './CallButton'; import type { PostbackButton } from './PostbackButton'; import type { URLButton } from './URLButton'; /** * Defines the types of buttons that can be used in a template. */ export type ButtonType = 'web_url' | 'postback' | 'phone_number'; export type Button = URLButton ...
2