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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
jeferreirajf/ufj-2023-1-ia | 825a8f4 | aula08/knapsack-problem/src/local-search.ts | TypeScript | www.github.com/jeferreirajf/ufj-2023-1-ia/tree/main/aula08/knapsack-problem/src/local-search.ts | https://raw.githubusercontent.com/jeferreirajf/ufj-2023-1-ia/825a8f4/aula08/knapsack-problem/src/local-search.ts | jeferreirajf/ufj-2023-1-ia 825a8f4 aula08/knapsack-problem/src/local-search.ts | true | 200 | 4,697 | import { Problem } from "./problem";
interface Solution {
bag: number[];
totalWeight: number;
totalValue: number;
}
export class LocalSearchSolver {
private problem: Problem;
private maxIterations: number;
constructor(aProblem: Problem, aMaxIterations: number = 1000) {
this.problem =... | 7 |
sarthakpande108/Admin-Pannel | b5c5b82 | Admin Client/src/app/app-routing.module.ts | TypeScript | www.github.com/sarthakpande108/Admin-Pannel/tree/main/Admin Client/src/app/app-routing.module.ts | https://raw.githubusercontent.com/sarthakpande108/Admin-Pannel/b5c5b82/Admin%20Client/src/app/app-routing.module.ts | sarthakpande108/Admin-Pannel b5c5b82 Admin Client/src/app/app-routing.module.ts | true | 200 | 2,032 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { MasterLayoutComponent } from './master-layout/master-layout.component';
import { DahboardComponent } from './pages/dahboard/dahboard.component';
import { AccessControlComponent } from './pages/access-control/acces... | 5 |
Andressavcon/api-catalogo-filmes-orm | 365424e | src/routes.ts | TypeScript | www.github.com/Andressavcon/api-catalogo-filmes-orm/tree/main/src/routes.ts | https://raw.githubusercontent.com/Andressavcon/api-catalogo-filmes-orm/365424e/src/routes.ts | Andressavcon/api-catalogo-filmes-orm 365424e src/routes.ts | true | 200 | 874 | import { Router, Request, Response } from 'express';
import { UserController } from './controllers/UserController';
import { FilmController } from './controllers/FilmController';
import { LoginController } from './controllers/LoginController';
import { authenticateMiddleware } from './middlewares/authenticateMiddleware... | 6 |
CSHepworth/Angular | d871df2 | weather-api-ngrx/src/app/actions/location.actions.ts | TypeScript | www.github.com/CSHepworth/Angular/tree/main/weather-api-ngrx/src/app/actions/location.actions.ts | https://raw.githubusercontent.com/CSHepworth/Angular/d871df2/weather-api-ngrx/src/app/actions/location.actions.ts | CSHepworth/Angular d871df2 weather-api-ngrx/src/app/actions/location.actions.ts | true | 200 | 529 | import { Action } from "@ngrx/store";
export enum LocationActionTypes {
AddLocation = '[Location] Add Location',
RemoveLocation = '[Location] Remove Location',
}
export class AddLocation implements Action {
readonly type = LocationActionTypes.AddLocation;
constructor(public location: string) { }
}
ex... | 2 |
Amorphous121/serverless-type-graphql | 8d8c311 | src/generated/models.ts | TypeScript | www.github.com/Amorphous121/serverless-type-graphql/tree/main/src/generated/models.ts | https://raw.githubusercontent.com/Amorphous121/serverless-type-graphql/8d8c311/src/generated/models.ts | Amorphous121/serverless-type-graphql 8d8c311 src/generated/models.ts | true | 200 | 888 | import { Table } from "@ginger.io/beyonce"
export const LibraryTable = new Table({
name: "Library",
partitionKeyName: "pk",
sortKeyName: "sk",
encryptionBlacklist: ["id", "author"]
})
export enum ModelType {
Author = "Author",
Book = "Book"
}
export interface Author {
model: ModelType.Author
authorId... | 0 |
Veikkosuhonen/veikkosuhonen | 94c126c | src/experiments/water/GeneratedGeometry.ts | TypeScript | www.github.com/Veikkosuhonen/veikkosuhonen/tree/main/src/experiments/water/GeneratedGeometry.ts | https://raw.githubusercontent.com/Veikkosuhonen/veikkosuhonen/94c126c/src/experiments/water/GeneratedGeometry.ts | Veikkosuhonen/veikkosuhonen 94c126c src/experiments/water/GeneratedGeometry.ts | true | 200 | 399 | import * as THREE from 'three';
import { SDFGeometryGenerator } from "three/examples/jsm/geometries/SDFGeometryGenerator"
import sdf from "../../glsl/sdf.glsl"
export const createGeometry = (renderer: THREE.WebGLRenderer) => {
const generator = new SDFGeometryGenerator( renderer );
const geometry = generator.gener... | 1 |
cd-dongzi/funblog | 4954489 | apps/server/src/modules/visitor/visitor.module.ts | TypeScript | www.github.com/cd-dongzi/funblog/tree/main/apps/server/src/modules/visitor/visitor.module.ts | https://raw.githubusercontent.com/cd-dongzi/funblog/4954489/apps/server/src/modules/visitor/visitor.module.ts | cd-dongzi/funblog 4954489 apps/server/src/modules/visitor/visitor.module.ts | true | 200 | 358 | import { Module } from '@nestjs/common';
import { VisitorController } from './visitor.controller';
import { VisitorPublicController } from './visitor.public.controller';
import { VisitorService } from './visitor.service';
@Module({
controllers: [VisitorController, VisitorPublicController],
providers: [VisitorServi... | 4 |
ugandhar-ramesh/Demo | 3a5b7f0 | src/app/auth/auth.module.ts | TypeScript | www.github.com/ugandhar-ramesh/Demo/tree/main/src/app/auth/auth.module.ts | https://raw.githubusercontent.com/ugandhar-ramesh/Demo/3a5b7f0/src/app/auth/auth.module.ts | ugandhar-ramesh/Demo 3a5b7f0 src/app/auth/auth.module.ts | true | 200 | 559 | import { SharedModule } from './../shared/shared.module';
import { NgModule } from '@angular/core';
import { FormsModule } from '@angular/forms';
import { RouterModule } from '@angular/router';
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
import { AuthComponent } from './auth.componen... | 3 |
expein/portfolio | e6f0d4e | src/hooks/Reviews/Reviews.ts | TypeScript | www.github.com/expein/portfolio/tree/main/src/hooks/Reviews/Reviews.ts | https://raw.githubusercontent.com/expein/portfolio/e6f0d4e/src/hooks/Reviews/Reviews.ts | expein/portfolio e6f0d4e src/hooks/Reviews/Reviews.ts | true | 200 | 450 | import { useState } from 'react';
const useToggleDisplay = (initialCount: number) => {
const [showAll, setShowAll] = useState(false);
const handleShowMore = () => {
setShowAll(true);
};
const handleShowLess = () => {
setShowAll(false);
};
const displayedCount = showAll ? Infi... | 7 |
Behind-Game-Group/MyBodyDateApp-Front | 584a2a7 | interfaces/UserInterface.ts | TypeScript | www.github.com/Behind-Game-Group/MyBodyDateApp-Front/tree/main/interfaces/UserInterface.ts | https://raw.githubusercontent.com/Behind-Game-Group/MyBodyDateApp-Front/584a2a7/interfaces/UserInterface.ts | Behind-Game-Group/MyBodyDateApp-Front 584a2a7 interfaces/UserInterface.ts | true | 200 | 499 | import {ImageSourcePropType} from 'react-native';
export interface User {
id: number;
name: string;
genre: string;
cercle: string[];
image1?: ImageSourcePropType;
image2?: ImageSourcePropType;
image3?: ImageSourcePropType;
image4?: ImageSourcePropType;
image5?: ImageSourcePropType;
image6?: ImageSo... | 5 |
xotjrOh/gameWeb | 8bac2b1 | src/pages/api/socket/handlers/horseGameHandler.ts | TypeScript | www.github.com/xotjrOh/gameWeb/tree/main/src/pages/api/socket/handlers/horseGameHandler.ts | https://raw.githubusercontent.com/xotjrOh/gameWeb/8bac2b1/src/pages/api/socket/handlers/horseGameHandler.ts | xotjrOh/gameWeb 8bac2b1 src/pages/api/socket/handlers/horseGameHandler.ts | true | 200 | 10,047 | import _ from 'lodash';
import { rooms, timers } from '../state/gameState';
import {
GAME_STATUS,
DEFAULT_GAME_DATA,
DEFAULT_PLAYER_DATA,
} from '../utils/constants';
import {
validateRoom,
validatePlayer,
validateAssignedByHorseGame,
validateChipsByHorseGame,
} from '../utils/validation';
import {
calc... | 6 |
Pesilian/grait-transcribe-frontend | 52f07f0 | src/app/api/proxy/route.ts | TypeScript | www.github.com/Pesilian/grait-transcribe-frontend/tree/main/src/app/api/proxy/route.ts | https://raw.githubusercontent.com/Pesilian/grait-transcribe-frontend/52f07f0/src/app/api/proxy/route.ts | Pesilian/grait-transcribe-frontend 52f07f0 src/app/api/proxy/route.ts | true | 200 | 805 | // app/api/proxy/route.ts
import { NextRequest, NextResponse } from 'next/server'
export async function POST(req: NextRequest): Promise<NextResponse> {
try {
const formData = await req.formData()
const file = formData.get('audio_file')
if (!file) {
return new NextResponse('No file uploaded', { sta... | 2 |
SD-0924/backend-final-2 | edac302 | src/services/cartServices.ts | TypeScript | www.github.com/SD-0924/backend-final-2/tree/main/src/services/cartServices.ts | https://raw.githubusercontent.com/SD-0924/backend-final-2/edac302/src/services/cartServices.ts | SD-0924/backend-final-2 edac302 src/services/cartServices.ts | true | 200 | 2,159 | import { CartItem } from "../models/CartItemModel";
import { Product } from "../models/ProductModel";
export default class CartService {
// Add item to the cart after checking stock
static async addItemToCart(
userId: number,
productId: number,
quantity: number
) {
// Find the product by ID
c... | 0 |
hbubley/excel-conversion | e5c1f3a | src/utils/functions.ts | TypeScript | www.github.com/hbubley/excel-conversion/tree/main/src/utils/functions.ts | https://raw.githubusercontent.com/hbubley/excel-conversion/e5c1f3a/src/utils/functions.ts | hbubley/excel-conversion e5c1f3a src/utils/functions.ts | true | 200 | 2,305 | import fs from "fs";
import moment from "moment";
import {
IConvertedPerson,
IName,
IOriginalPerson,
IRelative,
} from "@/utils/types";
import {
ErrorMessages,
ExpectedDateFormat,
PossibleRelatives,
} from "@/utils/constants";
export function convertPerson(
originalPerson: IOriginalPerson
): IConverted... | 4 |
pjflanagan/canvas | 75a2ffa | src/visuals/fireflies/Mountains.ts | TypeScript | www.github.com/pjflanagan/canvas/tree/main/src/visuals/fireflies/Mountains.ts | https://raw.githubusercontent.com/pjflanagan/canvas/75a2ffa/src/visuals/fireflies/Mountains.ts | pjflanagan/canvas 75a2ffa src/visuals/fireflies/Mountains.ts | true | 200 | 1,095 | import { Canvas } from '$lib/canvas';
import { Random, type Point } from '$lib/util';
import type { FireflyVisual } from './FireflyVisual';
export class Mountain {
visual: FireflyVisual;
peakPosition: Point;
baseWidth: number;
// branches: Branch[];
constructor(visual: FireflyVisual) {
this.visual = vi... | 3 |
MarioAngelLeon/NestTemplate | f0b2742 | src/main.ts | TypeScript | www.github.com/MarioAngelLeon/NestTemplate/tree/main/src/main.ts | https://raw.githubusercontent.com/MarioAngelLeon/NestTemplate/f0b2742/src/main.ts | MarioAngelLeon/NestTemplate f0b2742 src/main.ts | true | 200 | 968 | import { ValidationPipe } from '@nestjs/common';
import { ConfigService } from '@nestjs/config';
import { NestFactory } from '@nestjs/core';
import { DocumentBuilder, SwaggerModule } from '@nestjs/swagger';
import * as dotenv from 'dotenv';
import { AppModule } from './app.module';
dotenv.config({ path: '../.env' });... | 7 |
MD-TANVIR7462/Mongoose_practice | 378339f | src/server.ts | TypeScript | www.github.com/MD-TANVIR7462/Mongoose_practice/tree/main/src/server.ts | https://raw.githubusercontent.com/MD-TANVIR7462/Mongoose_practice/378339f/src/server.ts | MD-TANVIR7462/Mongoose_practice 378339f src/server.ts | true | 200 | 364 | import app from "./app";
require("dotenv").config();
import mongoose from "mongoose";
const port = process.env.port;
async function main() {
try {
await mongoose.connect(process.env.Db_url as string);
app.listen(port, () => {
console.log(`Example app listening on port ${port}`);
});
} catch (erro... | 5 |
Gustavoarevalo/pruebatecnicafrontend | 7d99f6d | src/store/obtenerdatos.ts | TypeScript | www.github.com/Gustavoarevalo/pruebatecnicafrontend/tree/main/src/store/obtenerdatos.ts | https://raw.githubusercontent.com/Gustavoarevalo/pruebatecnicafrontend/7d99f6d/src/store/obtenerdatos.ts | Gustavoarevalo/pruebatecnicafrontend 7d99f6d src/store/obtenerdatos.ts | true | 200 | 761 | import { create } from "zustand";
interface ObtenerDatos {
familiaproduct: any[];
setFamiliaProduct: (v: any[]) => void;
}
export const ObtenerDatosFP = create<ObtenerDatos>((set) => ({
familiaproduct: [],
setFamiliaProduct: (v) => set({ familiaproduct: v }),
}));
interface ObtenerDatosProductos {
product... | 6 |
codewithkyle/tabletopper | 6cfc795 | wss/src/globals.d.ts | TypeScript | www.github.com/codewithkyle/tabletopper/tree/main/wss/src/globals.d.ts | https://raw.githubusercontent.com/codewithkyle/tabletopper/6cfc795/wss/src/globals.d.ts | codewithkyle/tabletopper 6cfc795 wss/src/globals.d.ts | true | 200 | 829 | export type Socket = {
id: string,
room: string,
send: Function,
name: string,
image: string,
maxHP: number,
hp: number,
ac: number,
};
export type ExitReason = "UNKNOWN" | "KICKED" | "DC" | "QUIT";
export type Pawn = {
uid: string,
x: number,
y: number,
token?: string|... | 1 |
GabrielDantas-99/mvp-dearlivery | eb620af | client/src/app/shared/pipes/date-time.pipe.ts | TypeScript | www.github.com/GabrielDantas-99/mvp-dearlivery/tree/main/client/src/app/shared/pipes/date-time.pipe.ts | https://raw.githubusercontent.com/GabrielDantas-99/mvp-dearlivery/eb620af/client/src/app/shared/pipes/date-time.pipe.ts | GabrielDantas-99/mvp-dearlivery eb620af client/src/app/shared/pipes/date-time.pipe.ts | true | 200 | 664 | import { Pipe, PipeTransform } from "@angular/core";
@Pipe({
name: "dateTime",
})
export class DateTimePipe implements PipeTransform {
transform(value: unknown, ...args: unknown[]): unknown {
if (!value) {
return "";
}
const date = new Date(value as string | number | Date);
const day = date... | 2 |
jayesh-125/indchat | 1467a31 | src/services/auth.ts | TypeScript | www.github.com/jayesh-125/indchat/tree/main/src/services/auth.ts | https://raw.githubusercontent.com/jayesh-125/indchat/1467a31/src/services/auth.ts | jayesh-125/indchat 1467a31 src/services/auth.ts | true | 200 | 1,144 | import {
createUserWithEmailAndPassword,
signInWithEmailAndPassword,
signOut,
} from "firebase/auth";
import { auth } from "../configs/firebase";
export const CreateUserAuth = async (email: string, password: string) => {
try {
const res = await createUserWithEmailAndPassword(
auth,
... | 0 |
JafetEsauWerlybi/proyectos_Angular_16-19 | e572ed3 | esauApp/src/app/productos/productos.component.ts | TypeScript | www.github.com/JafetEsauWerlybi/proyectos_Angular_16-19/tree/main/esauApp/src/app/productos/productos.component.ts | https://raw.githubusercontent.com/JafetEsauWerlybi/proyectos_Angular_16-19/e572ed3/esauApp/src/app/productos/productos.component.ts | JafetEsauWerlybi/proyectos_Angular_16-19 e572ed3 esauApp/src/app/productos/productos.component.ts | true | 200 | 624 | import { Component, OnInit } from '@angular/core';
import { ProductList } from './productos.mock';
import { IProducto } from '../models/producto.modelo';
import { ApiService } from '../services/api.service';
@Component({
selector: 'app-productos',
templateUrl: './productos.component.html',
styleUrl: './productos... | 4 |
Z-hkk/Mimic-QQ-Chat | 8ef0f31 | QQChat-Electron/src/models/server_Configs/class_Server_Configs.ts | TypeScript | www.github.com/Z-hkk/Mimic-QQ-Chat/tree/main/QQChat-Electron/src/models/server_Configs/class_Server_Configs.ts | https://raw.githubusercontent.com/Z-hkk/Mimic-QQ-Chat/8ef0f31/QQChat-Electron/src/models/server_Configs/class_Server_Configs.ts | Z-hkk/Mimic-QQ-Chat 8ef0f31 QQChat-Electron/src/models/server_Configs/class_Server_Configs.ts | true | 200 | 355 | import { ref, type Ref } from "vue";
export class Server_Configs {
[key: string]: Ref<any>;
constructor(props: Server_Configs_Props) {
const defaultValues: Record<string, any> = props;
Object.entries(defaultValues).forEach(([propertyName, defaultValue]) => {
this[propertyName] = ref... | 3 |
Dipjana/mrcem-exam-prep | 199c6bf | src/app/store/auth/auth.reducer.ts | TypeScript | www.github.com/Dipjana/mrcem-exam-prep/tree/main/src/app/store/auth/auth.reducer.ts | https://raw.githubusercontent.com/Dipjana/mrcem-exam-prep/199c6bf/src/app/store/auth/auth.reducer.ts | Dipjana/mrcem-exam-prep 199c6bf src/app/store/auth/auth.reducer.ts | true | 200 | 713 | import { initialState } from "./auth.state";
import { createReducer, on } from '@ngrx/store';
import { loginFail, loginSucess, logOut } from "./auth.action";
import { setErrorMessage } from "../shared/shared.action";
const _authReducer = createReducer(initialState,
on(loginSucess, (state, action) => {
retu... | 7 |
Purnendu-1425/ANGULAR-EKART | 79ec0dd | src/app/product-list/search/search.component.ts | TypeScript | www.github.com/Purnendu-1425/ANGULAR-EKART/tree/main/src/app/product-list/search/search.component.ts | https://raw.githubusercontent.com/Purnendu-1425/ANGULAR-EKART/79ec0dd/src/app/product-list/search/search.component.ts | Purnendu-1425/ANGULAR-EKART 79ec0dd src/app/product-list/search/search.component.ts | true | 200 | 304 | import { Component } from '@angular/core';
@Component({
selector: 'app-search',
templateUrl: './search.component.html',
styleUrls: ['./search.component.css']
})
export class SearchComponent {
searchText: string = ' ';
updateSearchText(event: any) {
this.searchText = event.target.value;
}
}
| 5 |
Sooseki/Ticketing_api | 3122a30 | src/routes/user/UserController.ts | TypeScript | www.github.com/Sooseki/Ticketing_api/tree/main/src/routes/user/UserController.ts | https://raw.githubusercontent.com/Sooseki/Ticketing_api/3122a30/src/routes/user/UserController.ts | Sooseki/Ticketing_api 3122a30 src/routes/user/UserController.ts | true | 200 | 3,634 | import { Router } from "express"
import { ICreateJWTResponse, ICreateResponse } from "~/types/api/ICreateResponse"
import { Crud } from "../../classes/Crud"
import { IUser, IUserCreate } from "../../types/tables/user/IUser"
import { IIndexQuery, IIndexResponse } from "~/types/api/IIndexQuery"
import { authentication } ... | 6 |
amazon-biobank/torrente-payment-service | 7912a08 | src/config.ts | TypeScript | www.github.com/amazon-biobank/torrente-payment-service/tree/main/src/config.ts | https://raw.githubusercontent.com/amazon-biobank/torrente-payment-service/7912a08/src/config.ts | amazon-biobank/torrente-payment-service 7912a08 src/config.ts | true | 200 | 817 | import { HyperledgerPaymentService } from "./hyperledger/HyperledgerPaymentService";
import { PaymentServiceInterface } from "./payment/models/PaymentServiceInterface";
import { PlanocPaymentService } from "./planoc/PlanocPaymentService";
export const TORRENTE_NOTIFICATION_PORT = 7933;
export const PAYFLUXO_LISTENING_... | 2 |
ricardoaranha96/angular9-firebase-poc | b4320da | src/app/app.module.ts | TypeScript | www.github.com/ricardoaranha96/angular9-firebase-poc/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/ricardoaranha96/angular9-firebase-poc/b4320da/src/app/app.module.ts | ricardoaranha96/angular9-firebase-poc b4320da src/app/app.module.ts | true | 200 | 716 | import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { NgbModule } from '@ng-bootstrap/ng-bootstrap';
import { ReactiveFormsModule } from '@angular/forms';
i... | 1 |
danilosouza-dev/leadster-landing-page | 6d84c99 | src/styles/Pages/home.ts | TypeScript | www.github.com/danilosouza-dev/leadster-landing-page/tree/main/src/styles/Pages/home.ts | https://raw.githubusercontent.com/danilosouza-dev/leadster-landing-page/6d84c99/src/styles/Pages/home.ts | danilosouza-dev/leadster-landing-page 6d84c99 src/styles/Pages/home.ts | true | 200 | 6,979 | import { styled } from 'styled-components'
import img from '@/assets/asset-header.png'
const imgUrl = img.src
const wrapper = styled.div`
max-width: 1400px;
height: 600px;
display: flex;
`
const container = styled.section`
width: 100%;
display: flex;
align-items: center;
justify-content: center;
ov... | 0 |
AlvaroHCPess/blisBackEnd | 974c2a3 | src/controllers/userController.ts | TypeScript | www.github.com/AlvaroHCPess/blisBackEnd/tree/main/src/controllers/userController.ts | https://raw.githubusercontent.com/AlvaroHCPess/blisBackEnd/974c2a3/src/controllers/userController.ts | AlvaroHCPess/blisBackEnd 974c2a3 src/controllers/userController.ts | true | 200 | 747 | import { Request, Response } from 'express';
import { prisma } from '../prismaClient'; // Importando a instรขncia do Prisma
import bcrypt from 'bcryptjs';
export const createUser = async (req: Request, res: Response) => {
const { name, birthdate, email, password } = req.body;
// Verifique se o email jรก existe
co... | 7 |
singhAmandeep007/social-media-feed | 4c09402 | src/types/Post.ts | TypeScript | www.github.com/singhAmandeep007/social-media-feed/tree/main/src/types/Post.ts | https://raw.githubusercontent.com/singhAmandeep007/social-media-feed/4c09402/src/types/Post.ts | singhAmandeep007/social-media-feed 4c09402 src/types/Post.ts | true | 200 | 410 | export const POST_MEDIA_TYPE = {
VIDEO: "video",
IMAGE: "image",
} as const;
export type TPostMedia = {
type: (typeof POST_MEDIA_TYPE)[keyof typeof POST_MEDIA_TYPE];
data: string;
};
export type TPost = {
owner: string;
ownerProfileUrl: string;
likes: number;
timestamp: number;
title: string;
comm... | 3 |
Mustafaterzi2409/-devlerin-tamam- | cad6c46 | ocak3.ts | TypeScript | www.github.com/Mustafaterzi2409/-devlerin-tamam-/tree/main/ocak3.ts | https://raw.githubusercontent.com/Mustafaterzi2409/-devlerin-tamam-/cad6c46/ocak3.ts | Mustafaterzi2409/-devlerin-tamam- cad6c46 ocak3.ts | true | 200 | 1,107 | // 1. madde
// Number
let sayi: number = 42;
// String
let isim: string = "Mustafa";
// Boolean
let dogruMu: boolean = true;
// Array
let sayilar: number[] = [1, 2, 3, 4, 5];
// Tuple (Birden fazla tรผr iรงeren dizi)
let kisi: [string, number] = ["Ali", 25];
// Enum (Sabit deฤerler kรผmesi)
enum Renk { Kirmizi, Yesi... | 5 |
Decstor8/lesson-84 | 4b08a1e | api/router/users.ts | TypeScript | www.github.com/Decstor8/lesson-84/tree/main/api/router/users.ts | https://raw.githubusercontent.com/Decstor8/lesson-84/4b08a1e/api/router/users.ts | Decstor8/lesson-84 4b08a1e api/router/users.ts | true | 200 | 1,187 | import express from 'express';
import User from '../models/User';
import mongoose from 'mongoose';
const usersRouter = express.Router();
usersRouter.post('/', async (req, res, next) => {
try {
const user = new User({
username: req.body.username,
password: req.body.password,
... | 2 |
abdulbaseer102/My-CLI-Projects | 1a8c9c0 | Project6_studunt-mangment/node_modules/studuntm-prac7/index.ts | TypeScript | www.github.com/abdulbaseer102/My-CLI-Projects/tree/main/Project6_studunt-mangment/node_modules/studuntm-prac7/index.ts | https://raw.githubusercontent.com/abdulbaseer102/My-CLI-Projects/1a8c9c0/Project6_studunt-mangment/node_modules/studuntm-prac7/index.ts | abdulbaseer102/My-CLI-Projects 1a8c9c0 Project6_studunt-mangment/node_modules/studuntm-prac7/index.ts | true | 200 | 2,105 | class School {
name: string;
students: Student[] = [];
Teacher: Teacher[] = [];
courses: Course[] = [];
addstudent(stdobj: Student){
this.students.push(stdobj);
}
addTeacher(tobj: Teacher){
this.Teacher.push(tobj);
}
addcourses(tobj: Teacher){
this.courses.push(tobj... | 6 |
sg-i/netflix-next | 38c237e | pages/api/email/send-verification-code.ts | TypeScript | www.github.com/sg-i/netflix-next/tree/main/pages/api/email/send-verification-code.ts | https://raw.githubusercontent.com/sg-i/netflix-next/38c237e/pages/api/email/send-verification-code.ts | sg-i/netflix-next 38c237e pages/api/email/send-verification-code.ts | true | 200 | 2,028 | import bcrypt from 'bcrypt'
import {NextApiRequest, NextApiResponse} from 'next'
import prismadb from '../../../lib/prismadb'
import crypto from 'crypto'
import { sendMail } from '../../../lib/nodemailer';
function generateCode() {
let buf = new Uint8Array(6);
crypto.getRandomValues(buf);
const str = `${b... | 4 |
AndrewLosseff/leetcode-typescript-solutions | 03b7d1e | src/leetcodeExplore/arrays101/02-FindNumberswithEvenNumberofDigits/solution.ts | TypeScript | www.github.com/AndrewLosseff/leetcode-typescript-solutions/tree/main/src/leetcodeExplore/arrays101/02-FindNumberswithEvenNumberofDigits/solution.ts | https://raw.githubusercontent.com/AndrewLosseff/leetcode-typescript-solutions/03b7d1e/src/leetcodeExplore/arrays101/02-FindNumberswithEvenNumberofDigits/solution.ts | AndrewLosseff/leetcode-typescript-solutions 03b7d1e src/leetcodeExplore/arrays101/02-FindNumberswithEvenNumberofDigits/solution.ts | true | 200 | 264 | export function findNumbers(nums: number[]): number {
let counter = 0
for (let i = 0; i < nums.length; i++) {
const num = nums[i];
if(String(num).length % 2 === 0) counter++
}
return counter
};
/*
Time: O(N)
Space: O(1)
*/ | 7 |
luthfi-satria/merchants_api | b5bbfaa | src/query/filter/query/location.query.ts | TypeScript | www.github.com/luthfi-satria/merchants_api/tree/main/src/query/filter/query/location.query.ts | https://raw.githubusercontent.com/luthfi-satria/merchants_api/b5bbfaa/src/query/filter/query/location.query.ts | luthfi-satria/merchants_api b5bbfaa src/query/filter/query/location.query.ts | true | 200 | 833 | import { FilterQueryInterface } from '../helper/interface/filter-query.interface';
import { SelectQueryBuilder } from 'typeorm';
import { StoreDocument } from '../../../database/entities/store.entity';
export class LocationQuery implements FilterQueryInterface {
constructor(
public query: SelectQueryBuilder<Stor... | 3 |
seawavetech/autotest | 7137c2a | server/src/module/goodsNotsellCheck/base.ts | TypeScript | www.github.com/seawavetech/autotest/tree/main/server/src/module/goodsNotsellCheck/base.ts | https://raw.githubusercontent.com/seawavetech/autotest/7137c2a/server/src/module/goodsNotsellCheck/base.ts | seawavetech/autotest 7137c2a server/src/module/goodsNotsellCheck/base.ts | true | 200 | 3,116 | // import puppeteer, { KnownDevices } from 'puppeteer';
import { sleep } from '../../../utils'
import moment from 'moment';
import { ResultDataType, TestClassOptions } from '../@type/prodRemoveCheck';
const iPhoneUA = {
viewport: {
width: 430,
height: 932,
},
userAgent: 'Mozilla/5.0 (iPhon... | 5 |
EdwardduPlesses/ubuntu-warriors-system-developer | acf0cbe | src/app/components/customerorders/update-order-dialog/update-order-dialog.component.ts | TypeScript | www.github.com/EdwardduPlesses/ubuntu-warriors-system-developer/tree/main/src/app/components/customerorders/update-order-dialog/update-order-dialog.component.ts | https://raw.githubusercontent.com/EdwardduPlesses/ubuntu-warriors-system-developer/acf0cbe/src/app/components/customerorders/update-order-dialog/update-order-dialog.component.ts | EdwardduPlesses/ubuntu-warriors-system-developer acf0cbe src/app/components/customerorders/update-order-dialog/update-order-dialog.component.ts | true | 200 | 4,708 | import { Component, OnInit } from '@angular/core';
import { FormControl, Validators, FormGroup } from '@angular/forms';
import { MatDialogRef } from '@angular/material/dialog';
import { SnackbarService } from 'src/app/services/snackbar.service';
import { OrderInfoService } from '../../../services/order-info.service';
i... | 0 |
soundarrajan/MSAL | c1bc447 | v2/shiptech/libs/core/src/lib/ui/components/designsystem-v2/footer-v2/footer-v2.component.ts | TypeScript | www.github.com/soundarrajan/MSAL/tree/main/v2/shiptech/libs/core/src/lib/ui/components/designsystem-v2/footer-v2/footer-v2.component.ts | https://raw.githubusercontent.com/soundarrajan/MSAL/c1bc447/v2/shiptech/libs/core/src/lib/ui/components/designsystem-v2/footer-v2/footer-v2.component.ts | soundarrajan/MSAL c1bc447 v2/shiptech/libs/core/src/lib/ui/components/designsystem-v2/footer-v2/footer-v2.component.ts | true | 200 | 1,214 | import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
import { MatIconRegistry } from '@angular/material/icon';
import { DomSanitizer } from '@angular/platform-browser';
@Component({
selector: 'app-footer-v2',
templateUrl: './footer-v2.component.html',
styleUrls: ['./footer-v2.co... | 2 |
huseyincangunduz/nginx-ip-blocker | 5d529a1 | src/ip-operator.ts | TypeScript | www.github.com/huseyincangunduz/nginx-ip-blocker/tree/main/src/ip-operator.ts | https://raw.githubusercontent.com/huseyincangunduz/nginx-ip-blocker/5d529a1/src/ip-operator.ts | huseyincangunduz/nginx-ip-blocker 5d529a1 src/ip-operator.ts | true | 200 | 4,765 | import exp = require('constants');
import { readToMap, saveToFile } from './map-utils';
import { ObservingIp } from './observing-ip';
import { Subject } from 'rxjs';
import setToHappen from './set-to-happen';
export class IpOperator {
private bannedUrlsMap!: Map<String, ObservingIp>;
private _initialized = false;
... | 6 |
tomnemec/gate-client | 80e4d9e | src/app/components/stepper/stepper.component.ts | TypeScript | www.github.com/tomnemec/gate-client/tree/main/src/app/components/stepper/stepper.component.ts | https://raw.githubusercontent.com/tomnemec/gate-client/80e4d9e/src/app/components/stepper/stepper.component.ts | tomnemec/gate-client 80e4d9e src/app/components/stepper/stepper.component.ts | true | 200 | 309 | import { Component, Input, OnInit } from '@angular/core';
@Component({
selector: 'stepper',
templateUrl: './stepper.component.html',
styleUrls: ['./stepper.component.css'],
})
export class StepperComponent implements OnInit {
@Input() slide: number = 1;
constructor() {}
ngOnInit(): void {}
}
| 4 |
rayankzi/connect-you | 766d157 | src/app/api/profile/route.ts | TypeScript | www.github.com/rayankzi/connect-you/tree/main/src/app/api/profile/route.ts | https://raw.githubusercontent.com/rayankzi/connect-you/766d157/src/app/api/profile/route.ts | rayankzi/connect-you 766d157 src/app/api/profile/route.ts | true | 200 | 2,580 | import { getCurrentUser } from "@/lib/auth"
import { db } from "@/lib/db"
import { NextRequest, NextResponse } from "next/server"
import * as z from "zod"
const PostReqBodySchema = z.object({
name: z.string().min(2, {
message: "Name must be at least 2 characters",
}),
email: z.string().email(),
bio: z.stri... | 7 |
Piyushroy1/Quiz-App-MERN-SOCKET | e8fd6c6 | app/app.ts | TypeScript | www.github.com/Piyushroy1/Quiz-App-MERN-SOCKET/tree/main/app/app.ts | https://raw.githubusercontent.com/Piyushroy1/Quiz-App-MERN-SOCKET/e8fd6c6/app/app.ts | Piyushroy1/Quiz-App-MERN-SOCKET e8fd6c6 app/app.ts | true | 200 | 755 | import express from "express";
import { databaseConnection } from "./modules/configurations/connection";
import { registerRoutes } from "./modules/routes/routes.register";
import http from 'http';
import { socketServer } from "./modules/configurations/socket.io.connection";
import { socketHandler } from "./modules/comm... | 3 |
lulucasalves/znap-back | 2b33457 | src/services/products/products.service.ts | TypeScript | www.github.com/lulucasalves/znap-back/tree/main/src/services/products/products.service.ts | https://raw.githubusercontent.com/lulucasalves/znap-back/2b33457/src/services/products/products.service.ts | lulucasalves/znap-back 2b33457 src/services/products/products.service.ts | true | 200 | 2,653 | import { In, getRepository } from "typeorm";
import {
IChangeProduct,
ICreateProduct,
IGetProduct,
IGetProducts,
} from "./interfaces";
import { Orders, Products } from "../../models";
export async function getProductsService({
limit,
order,
page,
sort,
categories,
}: IGetProducts) {
const limitInt... | 5 |
Shupermokey/TypeScriptTraining | 5b22e03 | 04-classes/05-modules/Customer.ts | TypeScript | www.github.com/Shupermokey/TypeScriptTraining/tree/main/04-classes/05-modules/Customer.ts | https://raw.githubusercontent.com/Shupermokey/TypeScriptTraining/5b22e03/04-classes/05-modules/Customer.ts | Shupermokey/TypeScriptTraining 5b22e03 04-classes/05-modules/Customer.ts | true | 200 | 422 | export class CustomerFive{
constructor(private _firstName: string, private _lastName:string)
{
}
public get firstName(): string {
return this._firstName;
}
public set firstName(value:string) {
this._firstName = value;
}
public get lastName(): string {
return t... | 0 |
alphaherd-ai/alphaherd-webapp | b956ffe | src/app/api/database/clients/getAll/route.ts | TypeScript | www.github.com/alphaherd-ai/alphaherd-webapp/tree/main/src/app/api/database/clients/getAll/route.ts | https://raw.githubusercontent.com/alphaherd-ai/alphaherd-webapp/b956ffe/src/app/api/database/clients/getAll/route.ts | alphaherd-ai/alphaherd-webapp b956ffe src/app/api/database/clients/getAll/route.ts | true | 200 | 948 | import prismaClient from '../../../../../../prisma';
import { fetchDatabaseId } from '@/utils/fetchBranchDetails';
import { NextRequest } from 'next/server';
export const GET=async (req: NextRequest)=> {
if (req.method !== 'GET') {
return new Response('Method not allowed',{status:405});
}
try {
const... | 2 |
UkiDelly/guelmaru | 17b3969 | model/chat_gpt_response.ts | TypeScript | www.github.com/UkiDelly/guelmaru/tree/main/model/chat_gpt_response.ts | https://raw.githubusercontent.com/UkiDelly/guelmaru/17b3969/model/chat_gpt_response.ts | UkiDelly/guelmaru 17b3969 model/chat_gpt_response.ts | true | 200 | 1,110 | import { AssistantModel } from "./role_model.js";
interface Choice {
finish_reason: string;
index: number;
message: Message;
}
interface Message {
content: string;
role: string;
}
interface UseAge {
completion_tokens: number;
prompt_tokens: number;
total_tokens: number;
}
export interface ChatGptRes... | 6 |
Botinhood/Botinhood-Web-Backend | 9b690b3 | botinhood/src/stock/stock.controller.ts | TypeScript | www.github.com/Botinhood/Botinhood-Web-Backend/tree/main/botinhood/src/stock/stock.controller.ts | https://raw.githubusercontent.com/Botinhood/Botinhood-Web-Backend/9b690b3/botinhood/src/stock/stock.controller.ts | Botinhood/Botinhood-Web-Backend 9b690b3 botinhood/src/stock/stock.controller.ts | true | 200 | 2,142 |
/*
* Author: Alexander Berryhill
*
* This file defines the routes for the stock controller.
* This is a simple NestJS controller that defines several HTTP endpoints
* to interact with a StockService. It defines an HTTP GET endpoint to get
* the long and short stocks, an HTTP GET endpoint to get the long stock... | 4 |
arfeo/Balderdoush | dab61c4 | src/components/Game/render/avatar.ts | TypeScript | www.github.com/arfeo/Balderdoush/tree/main/src/components/Game/render/avatar.ts | https://raw.githubusercontent.com/arfeo/Balderdoush/dab61c4/src/components/Game/render/avatar.ts | arfeo/Balderdoush dab61c4 src/components/Game/render/avatar.ts | true | 200 | 1,177 | import { drawImage } from '../../../core/utils/drawing';
import { clearCells } from '../helpers';
import { ImageProps } from '../../../core/components/types';
function renderAvatar(x: number, y: number, animationState: number, context?: CanvasRenderingContext2D): void {
const ctx: CanvasRenderingContext2D = context... | 7 |
Kwwezz/prz-java-project-1 | 9c3a22a | frontend/src/app/layout/component/app.menu.ts | TypeScript | www.github.com/Kwwezz/prz-java-project-1/tree/main/frontend/src/app/layout/component/app.menu.ts | https://raw.githubusercontent.com/Kwwezz/prz-java-project-1/9c3a22a/frontend/src/app/layout/component/app.menu.ts | Kwwezz/prz-java-project-1 9c3a22a frontend/src/app/layout/component/app.menu.ts | true | 200 | 1,831 | import { Component } from '@angular/core';
import { CommonModule } from '@angular/common';
import { RouterModule } from '@angular/router';
import { MenuItem } from 'primeng/api';
import { AppMenuitem } from './app.menuitem';
@Component({
selector: 'app-menu',
standalone: true,
imports: [CommonModule, AppMe... | 3 |
hrvojecukman/nest-js-starter | 63831cf | src/admin/admin.service.ts | TypeScript | www.github.com/hrvojecukman/nest-js-starter/tree/main/src/admin/admin.service.ts | https://raw.githubusercontent.com/hrvojecukman/nest-js-starter/63831cf/src/admin/admin.service.ts | hrvojecukman/nest-js-starter 63831cf src/admin/admin.service.ts | true | 200 | 578 | import { Injectable, NotFoundException } from '@nestjs/common';
import { PrismaService } from '../prisma/prisma.service';
import { Role } from '@prisma/client';
@Injectable()
export class AdminService {
constructor(private prisma: PrismaService) {}
async getUsersByRole(role: Role) {
const users = await this.p... | 5 |
CaioCesarPS/eclipse-tecnical-test | 5876dfb | src/application/controllers/offers/offer.module.ts | TypeScript | www.github.com/CaioCesarPS/eclipse-tecnical-test/tree/main/src/application/controllers/offers/offer.module.ts | https://raw.githubusercontent.com/CaioCesarPS/eclipse-tecnical-test/5876dfb/src/application/controllers/offers/offer.module.ts | CaioCesarPS/eclipse-tecnical-test 5876dfb src/application/controllers/offers/offer.module.ts | true | 200 | 1,159 | import { OfferController } from './offer.controller';
import { Module } from '@nestjs/common';
import { ClientFavoriteOfferUseCase } from 'src/domain/use-cases/add-client-favorite-offer.usecase';
import { BuyOfferUseCase } from 'src/domain/use-cases/buy-offer.usecase';
import { CreateNewOfferUseCase } from 'src/domain/... | 0 |
Diluks93/notes-app-master | a7b5abb | src/server/notes/notes.repository.ts | TypeScript | www.github.com/Diluks93/notes-app-master/tree/main/src/server/notes/notes.repository.ts | https://raw.githubusercontent.com/Diluks93/notes-app-master/a7b5abb/src/server/notes/notes.repository.ts | Diluks93/notes-app-master a7b5abb src/server/notes/notes.repository.ts | true | 200 | 3,654 | import { Repository, DataSource, type DeleteResult } from 'typeorm';
import { Injectable, Logger, NotFoundException } from '@nestjs/common';
import { COLORS, type TValueColor } from '../../shared';
import { PaginationQueryDto, GetFilterDto } from '../common';
import { Note, Tag } from './entities';
import {
UpdateN... | 2 |
ymkz/tabma | 2b034b0 | src/domain/tabma.ts | TypeScript | www.github.com/ymkz/tabma/tree/main/src/domain/tabma.ts | https://raw.githubusercontent.com/ymkz/tabma/2b034b0/src/domain/tabma.ts | ymkz/tabma 2b034b0 src/domain/tabma.ts | true | 200 | 368 | import type { uuidv7 } from 'uuidv7'
import { storage } from 'wxt/storage'
export type TabmaKey = ReturnType<typeof uuidv7>
export type TabmaItem = { id: number; url: string; title: string; favicon: string }
export type TabmaStore = Record<TabmaKey, { items: TabmaItem[] }>
export const store = storage.defineItem<Tabm... | 6 |
eduams/postit | 19c7fe1 | postit/src/app/pages/login/login.page.ts | TypeScript | www.github.com/eduams/postit/tree/main/postit/src/app/pages/login/login.page.ts | https://raw.githubusercontent.com/eduams/postit/19c7fe1/postit/src/app/pages/login/login.page.ts | eduams/postit 19c7fe1 postit/src/app/pages/login/login.page.ts | true | 200 | 1,381 | import { HelperService } from './../../services/helper.service';
import { Component } from '@angular/core';
import { AlertController, ToastController } from '@ionic/angular';
export interface LoginPayload{
email: string;
password: string;
}
@Component({
selector: 'app-login',
templateUrl: './login.page.html',... | 7 |
fernando-mf/kalejdoskop | 3e7a30b | src/lib/analyzer/analyzer.ts | TypeScript | www.github.com/fernando-mf/kalejdoskop/tree/main/src/lib/analyzer/analyzer.ts | https://raw.githubusercontent.com/fernando-mf/kalejdoskop/3e7a30b/src/lib/analyzer/analyzer.ts | fernando-mf/kalejdoskop 3e7a30b src/lib/analyzer/analyzer.ts | true | 200 | 2,898 | import { CamelotKey, Camelot, camelotKeyToMajor, camelotKeyToMinor, camelotKeyAdd } from "./camelot";
type EnergyIntensity = {
low: CamelotKey[];
moderate: CamelotKey[];
high: CamelotKey[];
};
export type AnalyzerResult = {
perfectMatch: CamelotKey[];
moodChange: CamelotKey;
energyBoost: EnergyIntensity;
... | 3 |
latitudegames/thoth | f007c3d | packages/core/src/components/components.ts | TypeScript | www.github.com/latitudegames/thoth/tree/main/packages/core/src/components/components.ts | https://raw.githubusercontent.com/latitudegames/thoth/f007c3d/packages/core/src/components/components.ts | latitudegames/thoth f007c3d packages/core/src/components/components.ts | true | 200 | 3,466 | import { ActionTypeComponent } from './deprecated/ActionType'
import { Alert } from './utility/AlertMessage'
import { BooleanGate } from './BooleanGate'
import { InRange } from './InRange'
import { Code } from './Code'
import { InputFieldComponent } from './deprecated/InputField'
import { ModuleInput } from './deprecat... | 5 |
gustavolira8813/tudo-angular | 635c86d | src/app/dashboard/card-todo/card-todo.component.ts | TypeScript | www.github.com/gustavolira8813/tudo-angular/tree/main/src/app/dashboard/card-todo/card-todo.component.ts | https://raw.githubusercontent.com/gustavolira8813/tudo-angular/635c86d/src/app/dashboard/card-todo/card-todo.component.ts | gustavolira8813/tudo-angular 635c86d src/app/dashboard/card-todo/card-todo.component.ts | true | 200 | 429 | import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
@Component({
selector: 'tudu-card-todo',
templateUrl: './card-todo.component.html',
styleUrls: ['./card-todo.component.css']
})
export class CardTodoComponent implements OnInit {
@Input() tasks: any
@Output() open = new EventEmit... | 0 |
seelentov/cardscore-native | 1bd9164 | src/core/store/api/parser.api.ts | TypeScript | www.github.com/seelentov/cardscore-native/tree/main/src/core/store/api/parser.api.ts | https://raw.githubusercontent.com/seelentov/cardscore-native/1bd9164/src/core/store/api/parser.api.ts | seelentov/cardscore-native 1bd9164 src/core/store/api/parser.api.ts | true | 200 | 1,361 |
import { Game } from '../../types/game';
import { League, LeagueIncludeGames } from '../../types/league';
import { Player } from '../../types/player';
import { api, Response } from './api'
export const parserApi = api.injectEndpoints({
endpoints: (builder) => ({
getLeagues: builder.query<League[], void>({... | 2 |
epmt6528/leetcode-notes | b960890 | 57_insert_interval/20230920.ts | TypeScript | www.github.com/epmt6528/leetcode-notes/tree/main/57_insert_interval/20230920.ts | https://raw.githubusercontent.com/epmt6528/leetcode-notes/b960890/57_insert_interval/20230920.ts | epmt6528/leetcode-notes b960890 57_insert_interval/20230920.ts | true | 200 | 522 | /**
* @param {number[][]} intervals
* @param {number[]} newInterval
* @return {number[][]}
*/
var insert = function (intervals, newInterval) {
let [start, end] = newInterval;
let left = [];
let right = [];
for (const interval of intervals) {
const [first, last] = interval;
if (last < start) left.pu... | 6 |
bishoyrafat/My-Store_Nanodegree | e9d1359 | myStore/src/app/shared/shared.service.ts | TypeScript | www.github.com/bishoyrafat/My-Store_Nanodegree/tree/main/myStore/src/app/shared/shared.service.ts | https://raw.githubusercontent.com/bishoyrafat/My-Store_Nanodegree/e9d1359/myStore/src/app/shared/shared.service.ts | bishoyrafat/My-Store_Nanodegree e9d1359 myStore/src/app/shared/shared.service.ts | true | 200 | 303 | import { Injectable } from '@angular/core';
import { BehaviorSubject } from 'rxjs';
@Injectable({
providedIn: 'root'
})
export class SharedService {
data = new BehaviorSubject<any>('')
currentData=this.data.asObservable()
constructor() {
}
saveProduct(data:any){
this.data.next(data)
}
}
| 7 |
roshanramangiri/quantichat-builder | 5eaa4c3 | src/features/folders/api/router.ts | TypeScript | www.github.com/roshanramangiri/quantichat-builder/tree/main/src/features/folders/api/router.ts | https://raw.githubusercontent.com/roshanramangiri/quantichat-builder/5eaa4c3/src/features/folders/api/router.ts | roshanramangiri/quantichat-builder 5eaa4c3 src/features/folders/api/router.ts | true | 200 | 393 | import { router } from "@/helpers/server/trpc";
import { createFolder } from "./createFolder";
import { deleteFolder } from "./deleteFolder";
import { getFolder } from "./getFolder";
import { listFolders } from "./listFolders";
import { updateFolder } from "./updateFolder";
export const folderRouter = router({
getFo... | 3 |
mjviana/will-on-the-blockchain | 50c1986 | src/will-on-the-blockchain-smart-contract/test/BlockchainWill.ts | TypeScript | www.github.com/mjviana/will-on-the-blockchain/tree/main/src/will-on-the-blockchain-smart-contract/test/BlockchainWill.ts | https://raw.githubusercontent.com/mjviana/will-on-the-blockchain/50c1986/src/will-on-the-blockchain-smart-contract/test/BlockchainWill.ts | mjviana/will-on-the-blockchain 50c1986 src/will-on-the-blockchain-smart-contract/test/BlockchainWill.ts | true | 200 | 3,632 | import {expect} from "chai";
import {ethers} from "hardhat";
import {BlockchainWill} from "../typechain-types";
describe("BlockChainWill", function () {
// Arrange
let blockchainWill: BlockchainWill;
let dummyTestator: BlockchainWill.PersonStruct = {
name: "John ",
citizenshipCardId: "111111111",
bi... | 5 |
CarlaVictorio/Minim1_BackEnd | 7077957 | src/models/Event.ts | TypeScript | www.github.com/CarlaVictorio/Minim1_BackEnd/tree/main/src/models/Event.ts | https://raw.githubusercontent.com/CarlaVictorio/Minim1_BackEnd/7077957/src/models/Event.ts | CarlaVictorio/Minim1_BackEnd 7077957 src/models/Event.ts | true | 200 | 1,355 | import mongoose, { Document, Schema } from 'mongoose';
import { IUser } from './User';
import { ICategory } from './Category';
export interface IEvent {
coordinates: [number, number];
eventName: string;
idCategory: ICategory;
date: Date;
idUser: IUser;
description: string;
assistants: strin... | 0 |
mariusbadanau/protractor_homeWork | 68347df | Test/homepage.spec.ts | TypeScript | www.github.com/mariusbadanau/protractor_homeWork/tree/main/Test/homepage.spec.ts | https://raw.githubusercontent.com/mariusbadanau/protractor_homeWork/68347df/Test/homepage.spec.ts | mariusbadanau/protractor_homeWork 68347df Test/homepage.spec.ts | true | 200 | 848 | import { browser } from 'protractor';
import { Homepage } from '../Pages/Homepage/homepage.po';
import { BrowserUtilities } from '../Common/Utilities/browser-utilities';
describe('Start app', () =>{
const homepageGet = new Homepage;
const browserUtili = new BrowserUtilities;
const checkUrl = 'angular';
it('S... | 2 |
JamesStandbridge/wift-app | 32857d5 | client/src/theme/oswald-fonts.ts | TypeScript | www.github.com/JamesStandbridge/wift-app/tree/main/client/src/theme/oswald-fonts.ts | https://raw.githubusercontent.com/JamesStandbridge/wift-app/32857d5/client/src/theme/oswald-fonts.ts | JamesStandbridge/wift-app 32857d5 client/src/theme/oswald-fonts.ts | true | 200 | 1,122 | // OswaldFonts.ts
import { createGlobalStyle } from 'styled-components';
export const OswaldFonts = createGlobalStyle`
@font-face {
font-family: 'Oswald';
font-style: normal;
font-weight: 200;
src: url('/Oswald/Oswald-ExtraLight.ttf') format('truetype');
}
@font-face {
font-family: 'Oswald';... | 6 |
Jy0042/dururu | d875d78 | src/hooks/useFetchData.ts | TypeScript | www.github.com/Jy0042/dururu/tree/main/src/hooks/useFetchData.ts | https://raw.githubusercontent.com/Jy0042/dururu/d875d78/src/hooks/useFetchData.ts | Jy0042/dururu d875d78 src/hooks/useFetchData.ts | true | 200 | 789 | import { useState, useEffect } from 'react';
export const useFetchData = <T>(url: string): [T | null, boolean, any] => {
const [data, setData] = useState<T | null>(null);
const [loading, setLoading] = useState<boolean>(true);
const [error, setError] = useState<any>(null);
useEffect(() => {
const fetchData... | 7 |
JRParreno/farmers_hub_mobile | 75d3166 | models/Profile.ts | TypeScript | www.github.com/JRParreno/farmers_hub_mobile/tree/main/models/Profile.ts | https://raw.githubusercontent.com/JRParreno/farmers_hub_mobile/75d3166/models/Profile.ts | JRParreno/farmers_hub_mobile 75d3166 models/Profile.ts | true | 200 | 734 | export default class Profile {
pk: number;
username: string;
email: string;
firstName: string;
lastName: string;
getFullName: string;
mobileNumber: string;
profilePhoto?: string;
constructor(
pk: number,
username: string,
email: string,
firstName: str... | 5 |
visumehta/ngrxApp | b4a461a | src/app/common/util/theme/theme.facade.ts | TypeScript | www.github.com/visumehta/ngrxApp/tree/main/src/app/common/util/theme/theme.facade.ts | https://raw.githubusercontent.com/visumehta/ngrxApp/b4a461a/src/app/common/util/theme/theme.facade.ts | visumehta/ngrxApp b4a461a src/app/common/util/theme/theme.facade.ts | true | 200 | 431 | import { Injectable, inject } from "@angular/core";
import { Store } from "@ngrx/store";
import { Observable } from "rxjs";
import { selectCurrentTheme } from "./theme.selector";
import { theme } from "./theme.actions";
@Injectable({
providedIn: "root",
})
export class themeFacade {
store = inject(Store);
theme$... | 0 |
marinavyatk/octoweb | cd91b6f | src/components/ui/loader/loader.stories.ts | TypeScript | www.github.com/marinavyatk/octoweb/tree/main/src/components/ui/loader/loader.stories.ts | https://raw.githubusercontent.com/marinavyatk/octoweb/cd91b6f/src/components/ui/loader/loader.stories.ts | marinavyatk/octoweb cd91b6f src/components/ui/loader/loader.stories.ts | true | 200 | 322 | import type { Meta, StoryObj } from "@storybook/react";
import { Loader } from "@/components/ui/loader/loader";
const meta = {
title: "UI/Loader",
component: Loader,
tags: ["autodocs"],
} satisfies Meta<typeof Loader>;
export default meta;
type Story = StoryObj<typeof meta>;
export const Primary: Story = {
};... | 2 |
HnKnA/ReactJS-Intensive-Assignment | 3348d56 | src/services/apis/product.ts | TypeScript | www.github.com/HnKnA/ReactJS-Intensive-Assignment/tree/main/src/services/apis/product.ts | https://raw.githubusercontent.com/HnKnA/ReactJS-Intensive-Assignment/3348d56/src/services/apis/product.ts | HnKnA/ReactJS-Intensive-Assignment 3348d56 src/services/apis/product.ts | true | 200 | 2,694 | import { createApi } from "@reduxjs/toolkit/query/react";
import baseQueryWithAuth from "../query/query.configuration";
export interface Category {
name: string;
img?: string;
code?: string;
categoryId: string;
id?: string;
category?: string;
in_stock?: number;
sold?: number;
regular_pric... | 6 |
erufan/erfanTodo | e7095a5 | serverAction/mutations/deleteToDo.ts | TypeScript | www.github.com/erufan/erfanTodo/tree/main/serverAction/mutations/deleteToDo.ts | https://raw.githubusercontent.com/erufan/erfanTodo/e7095a5/serverAction/mutations/deleteToDo.ts | erufan/erfanTodo e7095a5 serverAction/mutations/deleteToDo.ts | true | 200 | 878 | "use server";
import { verifyAuth } from "@/lib/auth";
import { revalidateTag } from "next/cache";
async function deleteToDo(toDoId: number) {
try {
const resultVerify = await verifyAuth();
const response = await fetch(
`${process.env.SITE_URL}/api/protectedApi/todo-mutation/${toDoId}`,
{
... | 3 |
rociobcn/Marvel-app | 0a55bef | src/app/app-routing.module.ts | TypeScript | www.github.com/rociobcn/Marvel-app/tree/main/src/app/app-routing.module.ts | https://raw.githubusercontent.com/rociobcn/Marvel-app/0a55bef/src/app/app-routing.module.ts | rociobcn/Marvel-app 0a55bef src/app/app-routing.module.ts | true | 200 | 1,131 | import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';
import { HomeComponent } from './components/home/home.component';
import { ListaComponent } from './components/lista/lista.component';
import { MyPersonajeComponent } from './components/my-personaje/my-personaje.component'... | 7 |
PoulaHelmy/FINDME-FrontEnd | b552bc3 | src/app/modules/dashboard/incoming-requests/pages/inc-requests-details/inc-requests-details.component.ts | TypeScript | www.github.com/PoulaHelmy/FINDME-FrontEnd/tree/main/src/app/modules/dashboard/incoming-requests/pages/inc-requests-details/inc-requests-details.component.ts | https://raw.githubusercontent.com/PoulaHelmy/FINDME-FrontEnd/b552bc3/src/app/modules/dashboard/incoming-requests/pages/inc-requests-details/inc-requests-details.component.ts | PoulaHelmy/FINDME-FrontEnd b552bc3 src/app/modules/dashboard/incoming-requests/pages/inc-requests-details/inc-requests-details.component.ts | true | 200 | 2,261 | import {Component, OnInit, OnDestroy} from '@angular/core';
import {ActivatedRoute, Router} from '@angular/router';
import {SnackbarService} from '@@shared/pages/snackbar/snackbar.service';
import {ConfirmDialogService} from '@@shared/pages/dialogs/confirm-dialog/confirm.service';
import {RequestsService} from '@@core/... | 5 |
eatcz/znyw | 566bf55 | src/main.ts | TypeScript | www.github.com/eatcz/znyw/tree/main/src/main.ts | https://raw.githubusercontent.com/eatcz/znyw/566bf55/src/main.ts | eatcz/znyw 566bf55 src/main.ts | true | 200 | 713 | import { createApp } from 'vue'
import './style.css'
import 'reset.css'
import './styles/index.scss'
import 'element-plus/dist/index.css'
import ElementPlus from 'element-plus'
import BaiduMap from 'vue-baidu-map-3x'
import Card from './components/Card.vue'
import Dialog from './components/Dialog.vue'
import App from '... | 0 |
SamJheng/ipassport | 86a7edf | sso-client/src/app/auth/signin/signin.component.ts | TypeScript | www.github.com/SamJheng/ipassport/tree/main/sso-client/src/app/auth/signin/signin.component.ts | https://raw.githubusercontent.com/SamJheng/ipassport/86a7edf/sso-client/src/app/auth/signin/signin.component.ts | SamJheng/ipassport 86a7edf sso-client/src/app/auth/signin/signin.component.ts | true | 200 | 3,179 | import { Component, OnInit } from '@angular/core';
import { ZorroModule } from '../../shared/ng-zorro-antd.module';
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
import { inject } from '@angular/core';
import { ReactiveFormsModule } from '@angular/forms';
import { CommonModule } from '@angular/co... | 2 |
hakanurtimur/3d-solar-system-modelling | 526d19a | src/constants/planetList.ts | TypeScript | www.github.com/hakanurtimur/3d-solar-system-modelling/tree/main/src/constants/planetList.ts | https://raw.githubusercontent.com/hakanurtimur/3d-solar-system-modelling/526d19a/src/constants/planetList.ts | hakanurtimur/3d-solar-system-modelling 526d19a src/constants/planetList.ts | true | 200 | 1,791 | import { PlanetModel } from "@/models/planetModel";
export const planetList: PlanetModel[] = [
{
name: "Mercury",
scaledDistance: 52.89,
scaledRadius: 1.6936,
orbitalAngularSpeed: 0.0946,
rotationSpeed: 0.004, // Kendi ekseni etrafฤฑndaki dรถnรผล hฤฑzฤฑ
initialAngle: 7, // Baลlangฤฑรง aรงฤฑsฤฑ
imag... | 6 |
KinderDerTotenStadt/LightControl | e040d4c | src/new/Device.ts | TypeScript | www.github.com/KinderDerTotenStadt/LightControl/tree/main/src/new/Device.ts | https://raw.githubusercontent.com/KinderDerTotenStadt/LightControl/e040d4c/src/new/Device.ts | KinderDerTotenStadt/LightControl e040d4c src/new/Device.ts | true | 200 | 4,590 | import { EventEmitter } from "events";
import Project from "./Project";
import ProjectConfig from "./ProjectConfig";
import DeviceElement from "./DeviceElement";
import ProjectElement from "./ProjectElement";
interface Channel<K extends (number | boolean) = any> {
name?: string | Array<string>;
default: K | Ar... | 3 |
0131LWG/nest-study | e1b7d3e | typeorm-relation-mapping/src/data-source.ts | TypeScript | www.github.com/0131LWG/nest-study/tree/main/typeorm-relation-mapping/src/data-source.ts | https://raw.githubusercontent.com/0131LWG/nest-study/e1b7d3e/typeorm-relation-mapping/src/data-source.ts | 0131LWG/nest-study e1b7d3e typeorm-relation-mapping/src/data-source.ts | true | 200 | 513 | import "reflect-metadata"
import { DataSource } from "typeorm"
import { User } from "./entity/User"
import { IdCard } from "./entity/IdCard"
export const AppDataSource = new DataSource({
type: "mysql",
host: "localhost",
port: 3306,
username: "root",
password: "guan1024",
database: "typeorm_test",
synchr... | 7 |
emigrek/mindgame | 0c6f64d | src/events/guildCreate.ts | TypeScript | www.github.com/emigrek/mindgame/tree/main/src/events/guildCreate.ts | https://raw.githubusercontent.com/emigrek/mindgame/0c6f64d/src/events/guildCreate.ts | emigrek/mindgame 0c6f64d src/events/guildCreate.ts | true | 200 | 2,265 | import ExtendedClient from "@/client/ExtendedClient";
import i18n from "@/client/i18n";
import {Event} from "@/interfaces";
import {setDefaultChannelId} from "@/modules/guild";
import {createGuild} from "@/modules/guild/";
import {InformationEmbed} from "@/modules/messages/embeds";
import {assignLevelRolesInGuild} from... | 5 |
jondpenton/typegraphql-awilix | fcd80d4 | src/index.ts | TypeScript | www.github.com/jondpenton/typegraphql-awilix/tree/main/src/index.ts | https://raw.githubusercontent.com/jondpenton/typegraphql-awilix/fcd80d4/src/index.ts | jondpenton/typegraphql-awilix fcd80d4 src/index.ts | true | 200 | 2,459 | import 'reflect-metadata'
import { ApolloServer } from '@apollo/server'
import { startStandaloneServer } from '@apollo/server/standalone'
import { buildSchema, ResolverData } from 'type-graphql'
import { Awilix } from './lib/awilix'
import { Logger } from './logger'
import { RecipeResolver } from './recipe/recipe.resol... | 0 |
attrix182/donde-compro | bd684b1 | src/app/models/models.ts | TypeScript | www.github.com/attrix182/donde-compro/tree/main/src/app/models/models.ts | https://raw.githubusercontent.com/attrix182/donde-compro/bd684b1/src/app/models/models.ts | attrix182/donde-compro bd684b1 src/app/models/models.ts | true | 200 | 1,839 | export interface Product {
marca: string;
id: string;
precioMax: number;
precioMin: number;
nombre: string;
presentacion: string;
cantSucursalesDisponible: number;
}
export interface searchProductResponse {
status: number;
total: number;
maxLimitPermitido: number;
maxCantSucursalesPermitido: numb... | 2 |
galmsx/fake-blog-api | 9799cf5 | packages/common-lib/src/config/config.module.ts | TypeScript | www.github.com/galmsx/fake-blog-api/tree/main/packages/common-lib/src/config/config.module.ts | https://raw.githubusercontent.com/galmsx/fake-blog-api/9799cf5/packages/common-lib/src/config/config.module.ts | galmsx/fake-blog-api 9799cf5 packages/common-lib/src/config/config.module.ts | true | 200 | 370 | import { Global, Module } from '@nestjs/common';
import { ConfigDetector } from './services/config.detector';
import { ConfigService } from './services/config.service';
import { ConfigValidator } from './services/validator';
@Global()
@Module({
providers: [ConfigValidator, ConfigDetector, ConfigService],
exports:... | 6 |
bbonkr/git-tag-check-action | 379bee7 | src/version.ts | TypeScript | www.github.com/bbonkr/git-tag-check-action/tree/main/src/version.ts | https://raw.githubusercontent.com/bbonkr/git-tag-check-action/379bee7/src/version.ts | bbonkr/git-tag-check-action 379bee7 src/version.ts | true | 200 | 950 | export type Version = {
major: number
minor: number
patch: number
preRelease?: string
build?: string
}
export const parseVersion = (v: string): Version => {
// https://semver.org/
// https://en.wikipedia.org/wiki/Software_versioning
const rexVersion =
/^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:... | 7 |
easyBSB/easyBSB | 6b02071 | apps/web/src/app/pages/dashboard/dashboard-routing.module.ts | TypeScript | www.github.com/easyBSB/easyBSB/tree/main/apps/web/src/app/pages/dashboard/dashboard-routing.module.ts | https://raw.githubusercontent.com/easyBSB/easyBSB/6b02071/apps/web/src/app/pages/dashboard/dashboard-routing.module.ts | easyBSB/easyBSB 6b02071 apps/web/src/app/pages/dashboard/dashboard-routing.module.ts | true | 200 | 367 | import { NgModule } from "@angular/core";
import { CommonModule } from "@angular/common";
import { RouterModule } from "@angular/router";
import { DashboardRoutes } from "./constants/routes";
@NgModule({
declarations: [],
imports: [CommonModule, RouterModule.forChild(DashboardRoutes)],
exports: [],
providers:... | 1 |
BrenoAlberto/NestRabbitDockerChallenge | b7a73c6 | src/users/schema/user.schema.ts | TypeScript | www.github.com/BrenoAlberto/NestRabbitDockerChallenge/tree/main/src/users/schema/user.schema.ts | https://raw.githubusercontent.com/BrenoAlberto/NestRabbitDockerChallenge/b7a73c6/src/users/schema/user.schema.ts | BrenoAlberto/NestRabbitDockerChallenge b7a73c6 src/users/schema/user.schema.ts | true | 200 | 343 | import { Prop, Schema, SchemaFactory } from '@nestjs/mongoose';
@Schema()
export class User {
@Prop({
required: true,
unique: true,
})
id: number;
@Prop()
email: string;
@Prop()
first_name: string;
@Prop()
last_name: string;
@Prop()
avatar: string;
}
export const UserSchema = SchemaFactory... | 0 |
ThisBrunoMoreira/ci | 74eff63 | src/user/application/use_case/signup.service.spec.int-spec.ts | TypeScript | www.github.com/ThisBrunoMoreira/ci/tree/main/src/user/application/use_case/signup.service.spec.int-spec.ts | https://raw.githubusercontent.com/ThisBrunoMoreira/ci/74eff63/src/user/application/use_case/signup.service.spec.int-spec.ts | ThisBrunoMoreira/ci 74eff63 src/user/application/use_case/signup.service.spec.int-spec.ts | true | 200 | 1,647 | import { Test, TestingModule } from '@nestjs/testing';
import { PrismaClient } from '@prisma/client';
import { HashingService } from '../../../shared/application/provider/hash-provider';
import { DatabaseModule } from '../../../shared/infrastructure/database/database.module';
import { setupPrismaTest } from '../../../s... | 5 |
saliman1281/KhanAirTravel | bcbd26c | src/app/app.module.ts | TypeScript | www.github.com/saliman1281/KhanAirTravel/tree/main/src/app/app.module.ts | https://raw.githubusercontent.com/saliman1281/KhanAirTravel/bcbd26c/src/app/app.module.ts | saliman1281/KhanAirTravel bcbd26c src/app/app.module.ts | true | 200 | 3,848 | import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { DashboardComponent } from './components/dashboard/dashboard.component';
import { SidebarComponent } from ... | 2 |
axone-protocol/hub-backend | 7e8320d | src/modules/token/token.controller.ts | TypeScript | www.github.com/axone-protocol/hub-backend/tree/main/src/modules/token/token.controller.ts | https://raw.githubusercontent.com/axone-protocol/hub-backend/7e8320d/src/modules/token/token.controller.ts | axone-protocol/hub-backend 7e8320d src/modules/token/token.controller.ts | true | 200 | 868 | import { Routes } from "@core/enums/routes.enum";
import { Controller, Get, Query } from "@nestjs/common";
import { TokenCache } from "./services/token.cache";
import { TokenEndpoint } from "./enums/token-endpoint.enum";
import { QueryParam } from "@core/enums/query-param.enum";
import { SchemaValidatePipe } from "@cor... | 6 |
ManuelSenatore/Week-10 | edf99ad | D4/D4/src/app/profili-inattivi/profili-inattivi.component.ts | TypeScript | www.github.com/ManuelSenatore/Week-10/tree/main/D4/D4/src/app/profili-inattivi/profili-inattivi.component.ts | https://raw.githubusercontent.com/ManuelSenatore/Week-10/edf99ad/D4/D4/src/app/profili-inattivi/profili-inattivi.component.ts | ManuelSenatore/Week-10 edf99ad D4/D4/src/app/profili-inattivi/profili-inattivi.component.ts | true | 200 | 555 | import { Component, OnInit } from '@angular/core';
import { Post } from '../post';
import { ServiceService } from '../service.service';
@Component({
selector: 'app-profili-inattivi',
templateUrl: './profili-inattivi.component.html',
styleUrls: ['./profili-inattivi.component.scss']
})
export class ProfiliInattivi... | 1 |
tahseentajmal/ng-breadCrumb | 2348ca1 | src/app/short-code/short-code.component.ts | TypeScript | www.github.com/tahseentajmal/ng-breadCrumb/tree/main/src/app/short-code/short-code.component.ts | https://raw.githubusercontent.com/tahseentajmal/ng-breadCrumb/2348ca1/src/app/short-code/short-code.component.ts | tahseentajmal/ng-breadCrumb 2348ca1 src/app/short-code/short-code.component.ts | true | 200 | 981 | import { AfterViewInit, Component, EventEmitter, OnInit, Output } from '@angular/core';
import { ShortCodeService } from '../short-code.service';
import { Router } from '@angular/router';
@Component({
selector: 'app-short-code',
templateUrl: './short-code.component.html',
styleUrls: ['./short-code.component.css'... | 5 |
gabrielguti/fontes-front | dac738a | src/styles/modal.ts | TypeScript | www.github.com/gabrielguti/fontes-front/tree/main/src/styles/modal.ts | https://raw.githubusercontent.com/gabrielguti/fontes-front/dac738a/src/styles/modal.ts | gabrielguti/fontes-front dac738a src/styles/modal.ts | true | 200 | 294 | export const ModalStyle = {
position: 'absolute' as 'absolute',
top: '50%',
left: '50%',
transform: 'translate(-50%, -50%)',
width: 400,
bgcolor: 'background.paper',
boxShadow: 24,
p: 4,
alignItems: 'center',
borderRadius: '10px',
border: '0px'
}; | 7 |
arslanjameel/frontend-pos | 2a0b63e | src/store/apis/orderSlice.ts | TypeScript | www.github.com/arslanjameel/frontend-pos/tree/main/src/store/apis/orderSlice.ts | https://raw.githubusercontent.com/arslanjameel/frontend-pos/2a0b63e/src/store/apis/orderSlice.ts | arslanjameel/frontend-pos 2a0b63e src/store/apis/orderSlice.ts | true | 200 | 2,173 | import {
createApi,
fetchBaseQuery,
} from '@reduxjs/toolkit/query/react'
import { getUrl } from 'src/services/http.service'
import { validateStatus } from '../utils/validateStatus'
import { prepareHeaders } from '../utils/prepareHeaders'
import { IPaginatedData } from 'src/models/shared/IPaginatedData'
import { I... | 6 |
nextuser/lets-solana | 7e970e1 | client/1.token_create_mint.ts | TypeScript | www.github.com/nextuser/lets-solana/tree/main/client/1.token_create_mint.ts | https://raw.githubusercontent.com/nextuser/lets-solana/7e970e1/client/1.token_create_mint.ts | nextuser/lets-solana 7e970e1 client/1.token_create_mint.ts | true | 200 | 2,285 | import {
createMint,
getMint,
mintTo,
getOrCreateAssociatedTokenAccount,
getAccount
} from '@solana/spl-token'
import { Keypair ,PublicKey,Connection} from '@solana/web3.js'
import {get_pg,PlayGround,query_balance} from './utils'
async function create_token() : Promise<[PlayGround, Keypair,PublicK... | 1 |
leonnuxy/leonnuxy.github.io | d2963d8 | blog-project/src/controllers/state.ts | TypeScript | www.github.com/leonnuxy/leonnuxy.github.io/tree/main/blog-project/src/controllers/state.ts | https://raw.githubusercontent.com/leonnuxy/leonnuxy.github.io/d2963d8/blog-project/src/controllers/state.ts | leonnuxy/leonnuxy.github.io d2963d8 blog-project/src/controllers/state.ts | true | 200 | 510 | import { BlogPostData } from '../../shared/types';
export interface AdminState {
currentPage: number;
postsPerPage: number;
totalPages: number;
posts: BlogPostData[];
loading: boolean;
searchTerm: string;
sortBy: 'newest' | 'oldest' | 'title' | 'likes';
initialized: boolean;
}
export c... | 2 |
moussafia/TaskFlow_ngrx | 43391e7 | src/app/auth/auth.service.ts | TypeScript | www.github.com/moussafia/TaskFlow_ngrx/tree/main/src/app/auth/auth.service.ts | https://raw.githubusercontent.com/moussafia/TaskFlow_ngrx/43391e7/src/app/auth/auth.service.ts | moussafia/TaskFlow_ngrx 43391e7 src/app/auth/auth.service.ts | true | 200 | 1,357 | import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable, tap } from 'rxjs';
import { AuthUser, TokenDecoced } from '../dto/auth';
import { environment } from 'src/environments/environment';
import { jwtDecode } from 'jwt-decode';
@Injectable({
providedIn: 'r... | 5 |
Elalfy74/tweets-t3 | a920892 | src/server/api/routers/tweets/tweets.service.ts | TypeScript | www.github.com/Elalfy74/tweets-t3/tree/main/src/server/api/routers/tweets/tweets.service.ts | https://raw.githubusercontent.com/Elalfy74/tweets-t3/a920892/src/server/api/routers/tweets/tweets.service.ts | Elalfy74/tweets-t3 a920892 src/server/api/routers/tweets/tweets.service.ts | true | 200 | 819 | import { prisma } from '@/server/db';
import { type CreateTweetSchema } from './schemas';
export class TweetsService {
create(createTweetSchema: CreateTweetSchema) {
return prisma.tweet.create({
data: createTweetSchema,
});
}
findOne(id: string) {
return prisma.tweet.findUnique({
where:... | 6 |
Juan-Script/elevage | a2c5584 | src/background/background.ts | TypeScript | www.github.com/Juan-Script/elevage/tree/main/src/background/background.ts | https://raw.githubusercontent.com/Juan-Script/elevage/a2c5584/src/background/background.ts | Juan-Script/elevage a2c5584 src/background/background.ts | true | 200 | 1,564 | import { TextMessage } from "../shared/utils/Types/TextMessageTypes";
import { LocalStorageService } from '../shared/services/localStorage.service';
chrome.runtime.onInstalled.addListener(() => {
chrome.contextMenus.create({
id: 'explain-with-elevage',
title: 'Explicar con Elevage',
contex... | 7 |
uni-fs/core | b037c3d | src/errors/file-system-error/built-in/create-entity-is-not-a-directory-file-system-error.ts | TypeScript | www.github.com/uni-fs/core/tree/main/src/errors/file-system-error/built-in/create-entity-is-not-a-directory-file-system-error.ts | https://raw.githubusercontent.com/uni-fs/core/b037c3d/src/errors/file-system-error/built-in/create-entity-is-not-a-directory-file-system-error.ts | uni-fs/core b037c3d src/errors/file-system-error/built-in/create-entity-is-not-a-directory-file-system-error.ts | true | 200 | 349 | import { createFileSystemError } from '../create-file-system-error';
import { IFileSystemError } from '../file-system-error.type';
export function createEntityIsNotADirectoryFileSystemError(
url: string,
): IFileSystemError {
return createFileSystemError({
code: 'ENTITY_IS_NOT_A_DIRECTORY',
url,
reason... | 1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.