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
clement-amat/MarcheGrandLyon
ef81fc4
src/components/shared/MarketDetails/styles.ts
TypeScript
www.github.com/clement-amat/MarcheGrandLyon/tree/main/src/components/shared/MarketDetails/styles.ts
https://raw.githubusercontent.com/clement-amat/MarcheGrandLyon/ef81fc4/src/components/shared/MarketDetails/styles.ts
clement-amat/MarcheGrandLyon ef81fc4 src/components/shared/MarketDetails/styles.ts
true
200
588
import { StyleSheet } from 'react-native'; import { DefaultTheme } from '../../../styles/default-theme'; export const style = StyleSheet.create({ container: { flex: 1, paddingHorizontal: 20, paddingVertical: 16, fontFamily: 'NotoSans_400Regular', }, header: { marginBottom: 8, }, headerAdd...
1
lequangquochung/construction-vehicle-fe
4ee9a5b
src/app/views/pages/client-page/nav-footer/nav-footer.component.ts
TypeScript
www.github.com/lequangquochung/construction-vehicle-fe/tree/main/src/app/views/pages/client-page/nav-footer/nav-footer.component.ts
https://raw.githubusercontent.com/lequangquochung/construction-vehicle-fe/4ee9a5b/src/app/views/pages/client-page/nav-footer/nav-footer.component.ts
lequangquochung/construction-vehicle-fe 4ee9a5b src/app/views/pages/client-page/nav-footer/nav-footer.component.ts
true
200
419
import { UpperCasePipe } from '@angular/common'; import { Component } from '@angular/core'; import { TranslateModule } from '@ngx-translate/core'; @Component({ selector: 'app-nav-footer', templateUrl: './nav-footer.component.html', styleUrl: 'nav-footer.component.scss', standalone: true, imports : [Translate...
3
SirBob01/Horror-Server
9e7d2cf
src/Game/Player.ts
TypeScript
www.github.com/SirBob01/Horror-Server/tree/main/src/Game/Player.ts
https://raw.githubusercontent.com/SirBob01/Horror-Server/9e7d2cf/src/Game/Player.ts
SirBob01/Horror-Server 9e7d2cf src/Game/Player.ts
true
200
1,627
import { Game } from './Game'; import { NetworkChannels, ClientToServerEvents, ServerToClientEvents, Controllable, Entity, InputEvent, World, } from 'horror-simulation'; import Connection from 'dynamojs-net'; /** * Generate a random name from the name word bank * * @returns new name */ function gener...
4
fng3r/haxbotron
2db9f5f
core/game/model/CircularArray.ts
TypeScript
www.github.com/fng3r/haxbotron/tree/main/core/game/model/CircularArray.ts
https://raw.githubusercontent.com/fng3r/haxbotron/2db9f5f/core/game/model/CircularArray.ts
fng3r/haxbotron 2db9f5f core/game/model/CircularArray.ts
true
200
1,040
/** Array with a maximum length shifting items when full. */ export default class CircularArray<T> { public capacity: number; private array: Array<T>; constructor (capacity: number) { this.checkCapacity(capacity); this.capacity = capacity; this.array = []; } public push(it...
2
AllPein/telehire
0f5e8de
telehire-client/src/store/feed/FeedReducers.ts
TypeScript
www.github.com/AllPein/telehire/tree/main/telehire-client/src/store/feed/FeedReducers.ts
https://raw.githubusercontent.com/AllPein/telehire/0f5e8de/telehire-client/src/store/feed/FeedReducers.ts
AllPein/telehire 0f5e8de telehire-client/src/store/feed/FeedReducers.ts
true
200
715
import { reducerWithInitialState } from 'typescript-fsa-reducers'; import { Resume } from '@/models/Resume'; import { ShortVacancy } from '@/models/Vacancy'; import { FeedAction, FeedStore } from '@/store/feed/FeedActions'; export const FeedStoreInitialState: FeedStore = { vacancies: null, candidates: null, }; e...
7
pronounceA/shishiapps-remake
f52d9a0
src/themes/Default/colors.ts
TypeScript
www.github.com/pronounceA/shishiapps-remake/tree/main/src/themes/Default/colors.ts
https://raw.githubusercontent.com/pronounceA/shishiapps-remake/f52d9a0/src/themes/Default/colors.ts
pronounceA/shishiapps-remake f52d9a0 src/themes/Default/colors.ts
true
200
926
export const text = { primary: '#111111', secondary: '#666666', disabled: '#999999', // divider: 'rgba(0, 0, 0, 0.12)', } export const primary = { main: '#4797E7', light: '#7BC4FF', dark: '#1565C0', } export const secondary = { main: '#9C27B0', light: '#7B1FA2', dark: '#BA68C8', // light: '#EF5...
6
Mporsi/nestjs-graphql-interface-resolver-problem
a5591f3
graphql-interface-test-single-service/src/entry/entities/entry.entity.ts
TypeScript
www.github.com/Mporsi/nestjs-graphql-interface-resolver-problem/tree/main/graphql-interface-test-single-service/src/entry/entities/entry.entity.ts
https://raw.githubusercontent.com/Mporsi/nestjs-graphql-interface-resolver-problem/a5591f3/graphql-interface-test-single-service/src/entry/entities/entry.entity.ts
Mporsi/nestjs-graphql-interface-resolver-problem a5591f3 graphql-interface-test-single-service/src/entry/entities/entry.entity.ts
true
200
319
import { ObjectType, Field, Int } from '@nestjs/graphql'; import {IVoteable} from "../../vote/interfaces/voteable.interface"; @ObjectType({ implements:[IVoteable] }) export class Entry implements IVoteable { @Field(() => Int, { description: 'Example field (placeholder)' }) exampleField: number; id: string; }
5
RP1103/Tradepro-App
fcb688c
celestradepro/src/app/bill/bill.page.ts
TypeScript
www.github.com/RP1103/Tradepro-App/tree/main/celestradepro/src/app/bill/bill.page.ts
https://raw.githubusercontent.com/RP1103/Tradepro-App/fcb688c/celestradepro/src/app/bill/bill.page.ts
RP1103/Tradepro-App fcb688c celestradepro/src/app/bill/bill.page.ts
true
200
5,253
import { Component, OnInit, ViewChild, ElementRef } from '@angular/core'; import { StockService } from '../services/stock.service'; import * as Plotly from 'plotly.js/dist/plotly.js'; import moment from 'moment'; interface StockData { Date: string; Open: number; High: number; Low: number; Close: number; Vo...
0
AbrarUr-Rahman/Manobik-App-Angular
c2b4c92
src/app/Pages/fivew-form/fivew-dasboard/fivew-form.component.ts
TypeScript
www.github.com/AbrarUr-Rahman/Manobik-App-Angular/tree/main/src/app/Pages/fivew-form/fivew-dasboard/fivew-form.component.ts
https://raw.githubusercontent.com/AbrarUr-Rahman/Manobik-App-Angular/c2b4c92/src/app/Pages/fivew-form/fivew-dasboard/fivew-form.component.ts
AbrarUr-Rahman/Manobik-App-Angular c2b4c92 src/app/Pages/fivew-form/fivew-dasboard/fivew-form.component.ts
true
200
4,213
import { Component } from '@angular/core'; import { CommonModule, NgFor } from '@angular/common'; import { Router } from '@angular/router'; import { FormsModule } from '@angular/forms'; @Component({ selector: 'app-fivew-form', standalone: true, imports: [CommonModule,FormsModule], templateUrl: './fivew-form.com...
3
Pendulumm/ng_init
dc84a36
code/Base_/base_proj/src/app/blog-child-photo/blog-child-photo.component.ts
TypeScript
www.github.com/Pendulumm/ng_init/tree/main/code/Base_/base_proj/src/app/blog-child-photo/blog-child-photo.component.ts
https://raw.githubusercontent.com/Pendulumm/ng_init/dc84a36/code/Base_/base_proj/src/app/blog-child-photo/blog-child-photo.component.ts
Pendulumm/ng_init dc84a36 code/Base_/base_proj/src/app/blog-child-photo/blog-child-photo.component.ts
true
200
836
import { Component, Input } from '@angular/core'; @Component({ selector: 'app-blog-child-photo', templateUrl: './blog-child-photo.component.html', styleUrls: ['./blog-child-photo.component.css'] }) export class BlogChildPhotoComponent { // 普通属性不能被父组件传值 // child2Name = ''; // // 输入型属性:父组件可以利用这种属性传值进来 ...
4
kaepie/Rumue-front-end-project
9d4798c
app/api/upload/route.ts
TypeScript
www.github.com/kaepie/Rumue-front-end-project/tree/main/app/api/upload/route.ts
https://raw.githubusercontent.com/kaepie/Rumue-front-end-project/9d4798c/app/api/upload/route.ts
kaepie/Rumue-front-end-project 9d4798c app/api/upload/route.ts
true
200
762
import { NextResponse } from "next/server"; import { revalidatePath } from "next/cache"; import fs from "node:fs/promises"; export async function POST(req: Request) { try { const formData = await req.formData(); const file = formData.get("file") as File; const arrayBuffer = await file.arrayBuffer(); ...
1
Mikasha0/prod-cat-crud-client
f8ac703
app/utils/formUtils.ts
TypeScript
www.github.com/Mikasha0/prod-cat-crud-client/tree/main/app/utils/formUtils.ts
https://raw.githubusercontent.com/Mikasha0/prod-cat-crud-client/f8ac703/app/utils/formUtils.ts
Mikasha0/prod-cat-crud-client f8ac703 app/utils/formUtils.ts
true
200
490
export function getProductFormData(form: FormData){ return{ categoryId : form.get("categoryId") as string, name : form.get("name") as string, description : form.get("description") as string, highlight : form.get("highlight") as string, status : form.get("status")as string, ...
2
overbye87/reactNativeFirebase
1925773
src/store/app/appSlice.ts
TypeScript
www.github.com/overbye87/reactNativeFirebase/tree/main/src/store/app/appSlice.ts
https://raw.githubusercontent.com/overbye87/reactNativeFirebase/1925773/src/store/app/appSlice.ts
overbye87/reactNativeFirebase 1925773 src/store/app/appSlice.ts
true
200
896
import { createSlice, PayloadAction } from '@reduxjs/toolkit'; import { FirebaseAuthTypes } from '@react-native-firebase/auth'; import { RootState } from '../store'; interface IInitial { loading: boolean; user: FirebaseAuthTypes.User | null } const initialState: IInitial = { loading: false, user: null, }; e...
7
JeremyGendre/react-custom-hooks
dd878d3
src/hooks/usePrevious.ts
TypeScript
www.github.com/JeremyGendre/react-custom-hooks/tree/main/src/hooks/usePrevious.ts
https://raw.githubusercontent.com/JeremyGendre/react-custom-hooks/dd878d3/src/hooks/usePrevious.ts
JeremyGendre/react-custom-hooks dd878d3 src/hooks/usePrevious.ts
true
200
331
import { useEffect, useRef } from 'react'; export default function usePrevious(value: any) { const ref = useRef<any>(); useEffect(() => { ref.current = value; // assign the value of ref to the argument },[value]); // will run when the value of 'value' changes return ref.current; // return the current r...
6
MuhammadShohagIslam/pokemon
192a0ec
graphql/fragments/pokemon.fragment.ts
TypeScript
www.github.com/MuhammadShohagIslam/pokemon/tree/main/graphql/fragments/pokemon.fragment.ts
https://raw.githubusercontent.com/MuhammadShohagIslam/pokemon/192a0ec/graphql/fragments/pokemon.fragment.ts
MuhammadShohagIslam/pokemon 192a0ec graphql/fragments/pokemon.fragment.ts
true
200
433
import { gql } from "@apollo/client"; export const POKEMON_FIELDS = gql` fragment CorePokemonFields on Pokemon { id number name weight { minimum maximum } height { minimum maximum } classification ...
0
meetpatelesb/sequelize-typescript
451e003
src/models/index.ts
TypeScript
www.github.com/meetpatelesb/sequelize-typescript/tree/main/src/models/index.ts
https://raw.githubusercontent.com/meetpatelesb/sequelize-typescript/451e003/src/models/index.ts
meetpatelesb/sequelize-typescript 451e003 src/models/index.ts
true
200
1,028
import fs from "fs"; import path from "path"; import { ModelCtor, Sequelize } from "sequelize-typescript"; import { DATABASE_URL, NODE_ENV } from "../config"; let db: Sequelize; const initSequelize = () => { const _basename = path.basename(module.filename); const sequelize = new Sequelize( "mysql://root:root@l...
4
Vetal-Smyrnov/Smyrnov_project
817656d
src/app/common-ui/profile-card/profile-card.component.ts
TypeScript
www.github.com/Vetal-Smyrnov/Smyrnov_project/tree/main/src/app/common-ui/profile-card/profile-card.component.ts
https://raw.githubusercontent.com/Vetal-Smyrnov/Smyrnov_project/817656d/src/app/common-ui/profile-card/profile-card.component.ts
Vetal-Smyrnov/Smyrnov_project 817656d src/app/common-ui/profile-card/profile-card.component.ts
true
200
563
import { Component, Input } from '@angular/core'; import { Profile } from '../../data/interfaces/profile.interface'; import { ImgUrlPipe } from '../../helpers/pipes/img-url.pipe'; import { AsyncPipe, NgIf, NgFor } from '@angular/common'; @Component({ selector: 'app-profile-card', standalone: true, imports: [ImgU...
3
EliasGabriel1/store-custom-angular
4329562
src/app/about/about.component.ts
TypeScript
www.github.com/EliasGabriel1/store-custom-angular/tree/main/src/app/about/about.component.ts
https://raw.githubusercontent.com/EliasGabriel1/store-custom-angular/4329562/src/app/about/about.component.ts
EliasGabriel1/store-custom-angular 4329562 src/app/about/about.component.ts
true
200
478
import { Component } from '@angular/core'; // import { ServiceblogService } from '../blog/blog-service.service'; import { FooterModule } from '../shared/footer/footer.module'; @Component({ selector: 'app-about', standalone: true, imports: [FooterModule], templateUrl: './about.component.html', styleUrl: './...
1
P4t4m8n/svgImgWebScanDownload
dc40aa5
fetchImages.ts
TypeScript
www.github.com/P4t4m8n/svgImgWebScanDownload/tree/main/fetchImages.ts
https://raw.githubusercontent.com/P4t4m8n/svgImgWebScanDownload/dc40aa5/fetchImages.ts
P4t4m8n/svgImgWebScanDownload dc40aa5 fetchImages.ts
true
200
2,796
import axios from "axios"; import { load } from "cheerio"; import { createWriteStream } from "fs"; import { mkdir, writeFile } from "fs/promises"; import { basename, resolve } from "path"; // Function to download images directly from imageUrl found in the HTML content async function downloadImagesFromHTMLContent( ur...
2
victor-souza-dev/StartDb2022-TypescriptVersion
428bc34
Angular/src/app/services/SwitchThemeService/switch-theme.service.ts
TypeScript
www.github.com/victor-souza-dev/StartDb2022-TypescriptVersion/tree/main/Angular/src/app/services/SwitchThemeService/switch-theme.service.ts
https://raw.githubusercontent.com/victor-souza-dev/StartDb2022-TypescriptVersion/428bc34/Angular/src/app/services/SwitchThemeService/switch-theme.service.ts
victor-souza-dev/StartDb2022-TypescriptVersion 428bc34 Angular/src/app/services/SwitchThemeService/switch-theme.service.ts
true
200
363
import { Injectable } from '@angular/core'; import { BehaviorSubject } from 'rxjs'; @Injectable({ providedIn: 'root', }) export class SwitchThemeService { private isSwitchTheme = new BehaviorSubject<boolean>(false); toggleTheme(): void { this.isSwitchTheme.next(!this.isSwitchTheme.value); } isSwitchThe...
5
IlyaChubko/NgTemplate
4362d20
src/app/app.module.ts
TypeScript
www.github.com/IlyaChubko/NgTemplate/tree/main/src/app/app.module.ts
https://raw.githubusercontent.com/IlyaChubko/NgTemplate/4362d20/src/app/app.module.ts
IlyaChubko/NgTemplate 4362d20 src/app/app.module.ts
true
200
908
import {importProvidersFrom, NgModule} from '@angular/core'; import {BrowserModule} from "@angular/platform-browser"; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; import {AppComponent} from "./app.component"; import { provideHttpClient } from "@angular/common/http"; import {HttpClientIn...
7
abduganii/aboi
07e8f59
src/server.ts
TypeScript
www.github.com/abduganii/aboi/tree/main/src/server.ts
https://raw.githubusercontent.com/abduganii/aboi/07e8f59/src/server.ts
abduganii/aboi 07e8f59 src/server.ts
true
200
586
import * as dotenv from 'dotenv' dotenv.config() import express from "express"; import cors from 'cors'; import mongoose from "mongoose"; import router from "./routes"; const app = express(); const mongodb: any = process.env.MONGO_ULR mongoose .connect(mongodb) .then(() => console.log("mongodb connected")) ...
6
govuk-one-login/data-analytics-platform
f000ff2
tests/regression-tests/f2f_cri_vc_issued_data_validation.spec.ts
TypeScript
www.github.com/govuk-one-login/data-analytics-platform/tree/main/tests/regression-tests/f2f_cri_vc_issued_data_validation.spec.ts
https://raw.githubusercontent.com/govuk-one-login/data-analytics-platform/f000ff2/tests/regression-tests/f2f_cri_vc_issued_data_validation.spec.ts
govuk-one-login/data-analytics-platform f000ff2 tests/regression-tests/f2f_cri_vc_issued_data_validation.spec.ts
true
200
8,004
import { faker } from '@faker-js/faker'; import { getQueryResults, redshiftRunQuery } from '../helpers/db-helpers'; import { GET_EVENT_ID, IPV_CRI_F2F_DATA, IPV_CRI_F2F_CONFORMED, extensionsandrestrictionnotnullquery, } from '../helpers/query-constant'; import { txmaProcessingWorkGroupName, txmaRawDatabaseName,...
0
Tavish-Bhardwaj/Cohort-Classes
7658ff6
Postgres/src/insert.ts
TypeScript
www.github.com/Tavish-Bhardwaj/Cohort-Classes/tree/main/Postgres/src/insert.ts
https://raw.githubusercontent.com/Tavish-Bhardwaj/Cohort-Classes/7658ff6/Postgres/src/insert.ts
Tavish-Bhardwaj/Cohort-Classes 7658ff6 Postgres/src/insert.ts
true
200
912
import { Client } from 'pg'; // Async function to insert data into a table async function insertData(username: string, email: string, password: string) { const client = new Client({ host: 'localhost', port: 5432, database: 'postgres', user: 'postgres', password: 'mysecretpassword', }); try {...
3
Jybium/hbb-client
81ac201
src/schema/auth/signup.ts
TypeScript
www.github.com/Jybium/hbb-client/tree/main/src/schema/auth/signup.ts
https://raw.githubusercontent.com/Jybium/hbb-client/81ac201/src/schema/auth/signup.ts
Jybium/hbb-client 81ac201 src/schema/auth/signup.ts
true
200
613
import * as z from "zod"; export const signUpSchema = z.object({ email: z.string().email({ message: "Invalid email address.", }), phone: z .string() .min(10, { message: "Phone number must be at least 10 digits.", }) .regex(/^\+?[1-9]\d{1,14}$/, { message: "Invalid phone number fo...
4
ozbeyahmet1/blockchain-dashboard
3ed2bd5
src/helpers/interfaces/api.ts
TypeScript
www.github.com/ozbeyahmet1/blockchain-dashboard/tree/main/src/helpers/interfaces/api.ts
https://raw.githubusercontent.com/ozbeyahmet1/blockchain-dashboard/3ed2bd5/src/helpers/interfaces/api.ts
ozbeyahmet1/blockchain-dashboard 3ed2bd5 src/helpers/interfaces/api.ts
true
200
411
export interface SupportedChain { id: SupportedChains; symbol: string; name: string; categories: string[]; description: { en: string }; image: { thumb: string; small: string; large: string; }; web_slug: string; } export type SupportedChains = | "ethereum" | "avalanche" | "bsc" | "ma...
1
genSouza/mei-facil-clone
ca6d0ec
src/styles/pages/index.ts
TypeScript
www.github.com/genSouza/mei-facil-clone/tree/main/src/styles/pages/index.ts
https://raw.githubusercontent.com/genSouza/mei-facil-clone/ca6d0ec/src/styles/pages/index.ts
genSouza/mei-facil-clone ca6d0ec src/styles/pages/index.ts
true
200
1,069
import { styled } from "@/styles/index"; export const SiteHeader = styled("div", { minHeight: "40rem", background: "$gray200", display: "grid", gridTemplateColumns: "1fr 2fr 2fr", alignItems: "center", }); export const HeaderContentFirst = styled("div", { marginTop: "auto", }); export const HeaderConten...
2
martins-vds/poc-react-aspnetcore-starter-template
9bc2af9
app/Contoso.UI/src/utils/storageUtils.ts
TypeScript
www.github.com/martins-vds/poc-react-aspnetcore-starter-template/tree/main/app/Contoso.UI/src/utils/storageUtils.ts
https://raw.githubusercontent.com/martins-vds/poc-react-aspnetcore-starter-template/9bc2af9/app/Contoso.UI/src/utils/storageUtils.ts
martins-vds/poc-react-aspnetcore-starter-template 9bc2af9 app/Contoso.UI/src/utils/storageUtils.ts
true
200
995
import { AccountInfo } from "@azure/msal-browser"; import { msalConfig } from "../authConfig"; /** * This method stores the claims to the sessionStorage in the browser to be used when acquiring a token * @param {String} claimsChallenge */ export const addClaimsToStorage = ( claimsChallengeId: string, claims: s...
5
MiaMia-Li/Job-Insight
01493c2
app/api/files/[id]/content/route.ts
TypeScript
www.github.com/MiaMia-Li/Job-Insight/tree/main/app/api/files/[id]/content/route.ts
https://raw.githubusercontent.com/MiaMia-Li/Job-Insight/01493c2/app/api/files/%5Bid%5D/content/route.ts
MiaMia-Li/Job-Insight 01493c2 app/api/files/[id]/content/route.ts
true
200
2,426
// app/api/files/[id]/content/route.ts import { NextRequest, NextResponse } from "next/server"; import { prisma } from "@/lib/prisma"; export async function GET( request: NextRequest, { params }: { params: { id: string } } ) { const id = params.id; try { // 从数据库获取文件信息 const fileInfo = await prisma.fil...
7
swatchie-1/rpm-tm-boltnew
06ca2f3
src/hooks/useRPMHandlers.ts
TypeScript
www.github.com/swatchie-1/rpm-tm-boltnew/tree/main/src/hooks/useRPMHandlers.ts
https://raw.githubusercontent.com/swatchie-1/rpm-tm-boltnew/06ca2f3/src/hooks/useRPMHandlers.ts
swatchie-1/rpm-tm-boltnew 06ca2f3 src/hooks/useRPMHandlers.ts
true
200
2,656
import { useState } from 'react'; import { RPMData, TodoItem, Goal } from '../types'; export function useRPMHandlers(date: Date, data: RPMData, updateData: (data: RPMData) => void) { const [draggedItem, setDraggedItem] = useState<TodoItem | null>(null); const handleHomeClick = () => { const today = new Date()...
6
michael-lowe-nz/community-ordering
fbae3e1
infrastructure/src/main.ts
TypeScript
www.github.com/michael-lowe-nz/community-ordering/tree/main/infrastructure/src/main.ts
https://raw.githubusercontent.com/michael-lowe-nz/community-ordering/fbae3e1/infrastructure/src/main.ts
michael-lowe-nz/community-ordering fbae3e1 infrastructure/src/main.ts
true
200
5,738
import { App, aws_certificatemanager, aws_ec2, aws_ecs, aws_ecs_patterns, aws_elasticloadbalancingv2, // aws_efs, aws_iam, aws_route53, aws_route53_targets, aws_secretsmanager, Duration, Stack, StackProps } from 'aws-cdk-lib'; import { Construct } from 'constructs'; import path from 'path'; import {...
0
haruhikonyan/shisankanri
b87ed37
pages/api/scrape.ts
TypeScript
www.github.com/haruhikonyan/shisankanri/tree/main/pages/api/scrape.ts
https://raw.githubusercontent.com/haruhikonyan/shisankanri/b87ed37/pages/api/scrape.ts
haruhikonyan/shisankanri b87ed37 pages/api/scrape.ts
true
200
1,272
// Next.js API route support: https://nextjs.org/docs/api-routes/introduction import type { NextApiRequest, NextApiResponse } from "next"; import { gotoPage } from "../../lib/puppeteer"; type Data = { name: string; }; export default async function handler( req: NextApiRequest, res: NextApiResponse<Data> ) { c...
3
dalvagon/Traceify
5e0dd99
src/app/data/service/ipfs.service.ts
TypeScript
www.github.com/dalvagon/Traceify/tree/main/src/app/data/service/ipfs.service.ts
https://raw.githubusercontent.com/dalvagon/Traceify/5e0dd99/src/app/data/service/ipfs.service.ts
dalvagon/Traceify 5e0dd99 src/app/data/service/ipfs.service.ts
true
200
1,494
import { Injectable } from '@angular/core'; import { create } from 'ipfs-http-client'; import { environment } from 'src/environments/environment'; import { Buffer } from 'buffer'; @Injectable({ providedIn: 'root', }) export class IpfsService { client: any constructor() { this.createClient(); } /** *...
4
Georgy27/E-Commerce-React-Context-Typescript-
959dee0
src/components/featuredProducts/FeaturedProducts.styles.ts
TypeScript
www.github.com/Georgy27/E-Commerce-React-Context-Typescript-/tree/main/src/components/featuredProducts/FeaturedProducts.styles.ts
https://raw.githubusercontent.com/Georgy27/E-Commerce-React-Context-Typescript-/959dee0/src/components/featuredProducts/FeaturedProducts.styles.ts
Georgy27/E-Commerce-React-Context-Typescript- 959dee0 src/components/featuredProducts/FeaturedProducts.styles.ts
true
200
464
import styled from "styled-components"; const Wrapper = styled.section` background: var(--clr-grey-7); .featured { margin: 4rem auto; display: grid; gap: 2.5rem; img { height: 225px; } } .btn { display: block; width: 148px; margin: 0 auto; text-align: center; } @me...
1
dinamuh/octane
8ae66da
src/app.module.ts
TypeScript
www.github.com/dinamuh/octane/tree/main/src/app.module.ts
https://raw.githubusercontent.com/dinamuh/octane/8ae66da/src/app.module.ts
dinamuh/octane 8ae66da src/app.module.ts
true
200
1,091
import { Module } from '@nestjs/common'; import { TypeOrmModule } from '@nestjs/typeorm'; import { AppController } from './app.controller'; import { ConfigModule, ConfigService } from '@nestjs/config'; import { BookModule } from './book/book.module'; import { RecommendationModule } from './recommendation/recommendation...
2
vargbalazs/ibp
839c271
src/app/features/admin/components/user/permissions/permissions.module.ts
TypeScript
www.github.com/vargbalazs/ibp/tree/main/src/app/features/admin/components/user/permissions/permissions.module.ts
https://raw.githubusercontent.com/vargbalazs/ibp/839c271/src/app/features/admin/components/user/permissions/permissions.module.ts
vargbalazs/ibp 839c271 src/app/features/admin/components/user/permissions/permissions.module.ts
true
200
389
import { NgModule } from '@angular/core'; import { CommonModule } from '@angular/common'; import { GridModule } from '@progress/kendo-angular-grid'; import { UserPermissionsComponent } from './permissions.component'; @NgModule({ declarations: [UserPermissionsComponent], imports: [CommonModule, GridModule], expor...
7
DevKor-github/team-sprint-blccu-frontend
7c6d996
components/ui-experimental/responsive-masonry/hooks/@toss/react/use-preserved-callback.ts
TypeScript
www.github.com/DevKor-github/team-sprint-blccu-frontend/tree/main/components/ui-experimental/responsive-masonry/hooks/@toss/react/use-preserved-callback.ts
https://raw.githubusercontent.com/DevKor-github/team-sprint-blccu-frontend/7c6d996/components/ui-experimental/responsive-masonry/hooks/%40toss/react/use-preserved-callback.ts
DevKor-github/team-sprint-blccu-frontend 7c6d996 components/ui-experimental/responsive-masonry/hooks/@toss/react/use-preserved-callback.ts
true
200
548
import { useCallback, useEffect, useRef } from 'react'; /** * @reference * https://github.com/toss/slash/blob/main/packages/react/react/src/hooks/usePreservedCallback.ts */ const usePreservedCallback = <Callback extends (...args: any[]) => any>( callback: Callback, ) => { const callbackRef = useRef<Callback>(ca...
5
DanielHeld/social-media-platform-angular
2909b89
src/app/components/comments/comments.component.ts
TypeScript
www.github.com/DanielHeld/social-media-platform-angular/tree/main/src/app/components/comments/comments.component.ts
https://raw.githubusercontent.com/DanielHeld/social-media-platform-angular/2909b89/src/app/components/comments/comments.component.ts
DanielHeld/social-media-platform-angular 2909b89 src/app/components/comments/comments.component.ts
true
200
1,044
import {Component, Input, OnInit} from '@angular/core'; import {CommentService} from '../../services/comment.service'; import {Comments} from '../../model/comments'; @Component({ selector: 'app-comments', templateUrl: './comments.component.html', styleUrls: ['./comments.component.css'] }) export class CommentsCo...
3
mirarnau/Visual_Kestrel_API
2fd063b
src/routes/airplanesRoute.ts
TypeScript
www.github.com/mirarnau/Visual_Kestrel_API/tree/main/src/routes/airplanesRoute.ts
https://raw.githubusercontent.com/mirarnau/Visual_Kestrel_API/2fd063b/src/routes/airplanesRoute.ts
mirarnau/Visual_Kestrel_API 2fd063b src/routes/airplanesRoute.ts
true
200
4,868
import {Request, response, Response, Router} from 'express'; import {authJwt} from '../middlewares/index'; import Airplane from '../models/Airplane'; class AirplaneRoutes { public router: Router; constructor() { this.router = Router(); this.routes(); } public async getAllAirplanes(...
0
Jairth/E-commerce
e361186
src/app/forms/ui/layout/layout.component.ts
TypeScript
www.github.com/Jairth/E-commerce/tree/main/src/app/forms/ui/layout/layout.component.ts
https://raw.githubusercontent.com/Jairth/E-commerce/e361186/src/app/forms/ui/layout/layout.component.ts
Jairth/E-commerce e361186 src/app/forms/ui/layout/layout.component.ts
true
200
560
import { ChangeDetectionStrategy, Component } from '@angular/core'; import { FooterComponent, HeaderComponent, RecentPostComponent, TitleComponent } from '../../../shared'; import { CheckoutComponent } from '../checkout'; @Component({ selector: 'app-layout', standalone: true, imports: [HeaderComponent, FooterCom...
1
Sergej96/TestStore
e644b17
src/app/model/product.model.ts
TypeScript
www.github.com/Sergej96/TestStore/tree/main/src/app/model/product.model.ts
https://raw.githubusercontent.com/Sergej96/TestStore/e644b17/src/app/model/product.model.ts
Sergej96/TestStore e644b17 src/app/model/product.model.ts
true
200
486
export interface SimpleProduct{ ID: number, NAME: string, SORT: number, TYPE: string, WEIGHT?: number, PICTURE: string, PART?: number, PRICE?: number } export interface CompositeProduct extends SimpleProduct{ COLOR_CODE?: string, COLOR_SAMPLE?: string, COVER_SIDE?: string, WIDTH: string, STOC...
4
Farhan559/TypeScript_Project
8d55946
src/services/user.service.ts
TypeScript
www.github.com/Farhan559/TypeScript_Project/tree/main/src/services/user.service.ts
https://raw.githubusercontent.com/Farhan559/TypeScript_Project/8d55946/src/services/user.service.ts
Farhan559/TypeScript_Project 8d55946 src/services/user.service.ts
true
200
783
import User, { IUser } from '../models/user.model'; import { CreateUserDto } from '../dtos/createUser.dto'; class UserService { public async createUser(createUserDto: CreateUserDto): Promise<IUser> { const newUser = new User(createUserDto); return newUser.save(); } public async getUsers(): Promise<IUser...
2
HristoP96/angular-watermark
58e11e8
src/ig/igniteui-grids/TemplateSectionHeaderCellUpdatingEventArgs.ts
TypeScript
www.github.com/HristoP96/angular-watermark/tree/main/src/ig/igniteui-grids/TemplateSectionHeaderCellUpdatingEventArgs.ts
https://raw.githubusercontent.com/HristoP96/angular-watermark/58e11e8/src/ig/igniteui-grids/TemplateSectionHeaderCellUpdatingEventArgs.ts
HristoP96/angular-watermark 58e11e8 src/ig/igniteui-grids/TemplateSectionHeaderCellUpdatingEventArgs.ts
true
200
1,249
/* THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE: https://www.infragistics.com/legal/license/igultimate-la https://www.infragistics.com/legal/license/igultimate-eula GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING I...
7
hungpham1912/Haris-Plugin
f39bd18
src/module/plugin/plugin.module.ts
TypeScript
www.github.com/hungpham1912/Haris-Plugin/tree/main/src/module/plugin/plugin.module.ts
https://raw.githubusercontent.com/hungpham1912/Haris-Plugin/f39bd18/src/module/plugin/plugin.module.ts
hungpham1912/Haris-Plugin f39bd18 src/module/plugin/plugin.module.ts
true
200
712
import { Module } from '@nestjs/common'; import { PluginAuthController } from './merchants/auth/controllers/auth.controller'; import { PluginAuthModule } from './merchants/auth/auth.module'; import { PluginMerchantController } from './merchants/merchant.controller'; import { PluginMerchantModule } from './merchants/mer...
6
jwrunge/Scaffold
8d6de5f
cli/getFile.ts
TypeScript
www.github.com/jwrunge/Scaffold/tree/main/cli/getFile.ts
https://raw.githubusercontent.com/jwrunge/Scaffold/8d6de5f/cli/getFile.ts
jwrunge/Scaffold 8d6de5f cli/getFile.ts
true
200
1,086
import fs from "fs" import path from "path" export function checkFile(fpath: string): boolean { return fs.existsSync(fpath) } export function ensureDir(dpath: string) { if(!fs.existsSync(dpath)){ fs.mkdirSync(dpath, { recursive: true }); } } export function getFile(fpath: string, noExist?: Functi...
5
UKGovernmentBEIS/mets
fdc5c31
uk-pmrv-app-web/src/app/aviation/request-action/aer/ukets/tasks/compliance-monitoring/compliance-monitoring.component.spec.ts
TypeScript
www.github.com/UKGovernmentBEIS/mets/tree/main/uk-pmrv-app-web/src/app/aviation/request-action/aer/ukets/tasks/compliance-monitoring/compliance-monitoring.component.spec.ts
https://raw.githubusercontent.com/UKGovernmentBEIS/mets/fdc5c31/uk-pmrv-app-web/src/app/aviation/request-action/aer/ukets/tasks/compliance-monitoring/compliance-monitoring.component.spec.ts
UKGovernmentBEIS/mets fdc5c31 uk-pmrv-app-web/src/app/aviation/request-action/aer/ukets/tasks/compliance-monitoring/compliance-monitoring.component.spec.ts
true
200
3,221
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ActivatedRoute } from '@angular/router'; import { RequestActionTaskComponent } from '@aviation/request-action/shared/components/request-action-task/request-action-task.component'; import { AerRequestActionPayload, RequestActionStore } from '@a...
1
Syldriem/LMS_FE_React
fcbb4f7
src/utils/requests.ts
TypeScript
www.github.com/Syldriem/LMS_FE_React/tree/main/src/utils/requests.ts
https://raw.githubusercontent.com/Syldriem/LMS_FE_React/fcbb4f7/src/utils/requests.ts
Syldriem/LMS_FE_React fcbb4f7 src/utils/requests.ts
true
200
1,565
import { BASE_URL, CustomError, ITokens } from "."; export async function loginReq( username: string, password: string ): Promise<ITokens | CustomError> { const url = `${BASE_URL}/authentication/login`; const response: Response = await fetch(url, { method: "POST", headers: { "Content-Type": "app...
4
Zerchito/algoExpert
35e7438
src/algorithm-practice/gale-shapley.ts
TypeScript
www.github.com/Zerchito/algoExpert/tree/main/src/algorithm-practice/gale-shapley.ts
https://raw.githubusercontent.com/Zerchito/algoExpert/35e7438/src/algorithm-practice/gale-shapley.ts
Zerchito/algoExpert 35e7438 src/algorithm-practice/gale-shapley.ts
true
200
785
export function stableInternships(interns: number[][], teams: number[][]) { const available = new Array(interns.length).fill(true); const matchings = new Array(teams.length).fill(null); while(available.some(i => i)) { for (let intern = 0; intern < interns.length; intern++) { if(!available[intern]) { ...
0
feng3d-labs/webgl
ab3e219
examples/src/regl-examples/mikolalysenko/resl.ts
TypeScript
www.github.com/feng3d-labs/webgl/tree/main/examples/src/regl-examples/mikolalysenko/resl.ts
https://raw.githubusercontent.com/feng3d-labs/webgl/ab3e219/examples/src/regl-examples/mikolalysenko/resl.ts
feng3d-labs/webgl ab3e219 examples/src/regl-examples/mikolalysenko/resl.ts
true
200
13,650
// @see https://github.com/mikolalysenko/resl /* global XMLHttpRequest */ const configParameters = [ "manifest", "onDone", "onProgress", "onError" ]; const manifestParameters = [ "type", "src", "stream", "credentials", "parser" ]; const parserParameters = [ "onData", "onDo...
3
Tosho4real/angular_material
cc54fa3
src/app/users-table/services/user.service.ts
TypeScript
www.github.com/Tosho4real/angular_material/tree/main/src/app/users-table/services/user.service.ts
https://raw.githubusercontent.com/Tosho4real/angular_material/cc54fa3/src/app/users-table/services/user.service.ts
Tosho4real/angular_material cc54fa3 src/app/users-table/services/user.service.ts
true
200
597
import { HttpClient, HttpParams } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable } from 'rxjs'; import { UserInterface } from '../types/user.interface'; import { Sort } from '@angular/material/sort'; @Injectable() export class UserService { constructor(private http: Http...
2
Nimble-Meet/client
12ddf71
src/query-hooks/useUser/index.ts
TypeScript
www.github.com/Nimble-Meet/client/tree/main/src/query-hooks/useUser/index.ts
https://raw.githubusercontent.com/Nimble-Meet/client/12ddf71/src/query-hooks/useUser/index.ts
Nimble-Meet/client 12ddf71 src/query-hooks/useUser/index.ts
true
200
1,760
import { AxiosError } from 'axios'; import { useMutation } from '@tanstack/react-query'; // apis import { getUserInfo, checkLoginStatus, createNewUser } from './api'; // query key import { userKey } from './key'; // utils import { handleError } from '@/utils/Error/handleError'; // lib utils import renderToast from '...
7
joseberna/blockpmo-backend
ff0b384
src/config/db.ts
TypeScript
www.github.com/joseberna/blockpmo-backend/tree/main/src/config/db.ts
https://raw.githubusercontent.com/joseberna/blockpmo-backend/ff0b384/src/config/db.ts
joseberna/blockpmo-backend ff0b384 src/config/db.ts
true
200
307
import mongoose from "mongoose"; export const connectDB = async () => { try { await mongoose.connect("mongodb://127.0.0.1:27017/blockpmo"); console.log("✅ MongoDB conectado correctamente"); } catch (err) { console.error("❌ Error al conectar MongoDB:", err); process.exit(1); } };
6
evertonccarvalho/RDO-Online-BDC-API
8cc0f2f
src/modules/WORKS/services/subServiceCategory/useCases/getById/GetByIdController.ts
TypeScript
www.github.com/evertonccarvalho/RDO-Online-BDC-API/tree/main/src/modules/WORKS/services/subServiceCategory/useCases/getById/GetByIdController.ts
https://raw.githubusercontent.com/evertonccarvalho/RDO-Online-BDC-API/8cc0f2f/src/modules/WORKS/services/subServiceCategory/useCases/getById/GetByIdController.ts
evertonccarvalho/RDO-Online-BDC-API 8cc0f2f src/modules/WORKS/services/subServiceCategory/useCases/getById/GetByIdController.ts
true
200
799
import { Request, Response } from 'express'; import { GetByIdUseCase } from './GetByIdUseCase'; import { SubServiceCategoryRepository } from '../../repositories/SubServiceCategoryRepository'; class GetByIdController { async handle(req: Request, res: Response): Promise<Response> { try { const { id } = req....
5
VictorYuzoBR/node-js-api
4533fb3
src/service/carro/ListCarroService.ts
TypeScript
www.github.com/VictorYuzoBR/node-js-api/tree/main/src/service/carro/ListCarroService.ts
https://raw.githubusercontent.com/VictorYuzoBR/node-js-api/4533fb3/src/service/carro/ListCarroService.ts
VictorYuzoBR/node-js-api 4533fb3 src/service/carro/ListCarroService.ts
true
200
389
import { json } from "express"; import { getCustomRepository } from "typeorm"; import { CarroRepositories } from "../../repositories/CarroRepositories"; class ListCarroService { async executar() { const carrorepository = getCustomRepository(CarroRepositories); const carros = await carrorepositor...
0
0xneves/uniswap
76cb0fc
test/uniswap/pool-creator.ts
TypeScript
www.github.com/0xneves/uniswap/tree/main/test/uniswap/pool-creator.ts
https://raw.githubusercontent.com/0xneves/uniswap/76cb0fc/test/uniswap/pool-creator.ts
0xneves/uniswap 76cb0fc test/uniswap/pool-creator.ts
true
200
3,025
import { ethers } from 'hardhat' import { Pool } from '@uniswap/v3-sdk' import { Token } from '@uniswap/sdk-core' import { abi as IUniswapV3PoolABI } from '@uniswap/v3-core/artifacts/contracts/interfaces/IUniswapV3Pool.sol/IUniswapV3Pool.json' import { expect } from 'chai' interface Immutables { factory: string to...
4
Aditya81016/OpenChat
9ec3200
frontend/src/lib/modules/store.ts
TypeScript
www.github.com/Aditya81016/OpenChat/tree/main/frontend/src/lib/modules/store.ts
https://raw.githubusercontent.com/Aditya81016/OpenChat/9ec3200/frontend/src/lib/modules/store.ts
Aditya81016/OpenChat 9ec3200 frontend/src/lib/modules/store.ts
true
200
522
import { Action, createStore } from "redux"; import { Theme } from "./types"; // Redux theme store function themeHandler( state = { theme: Theme.light, icon: "sun" }, action: Action ) { switch (action.type) { case Theme.light: return { theme: Theme.light, icon: "sun" }; case Theme.dark: retur...
1
0xdead-e0f/SOW-App
95d7eb9
sdk/evm/ens.ts
TypeScript
www.github.com/0xdead-e0f/SOW-App/tree/main/sdk/evm/ens.ts
https://raw.githubusercontent.com/0xdead-e0f/SOW-App/95d7eb9/sdk/evm/ens.ts
0xdead-e0f/SOW-App 95d7eb9 sdk/evm/ens.ts
true
200
622
import { ENS } from "@ensdomains/ensjs"; import { ethers } from "ethers"; export async function getAddressENS(domainName: string, providerUrl: string) { try { const provider = new ethers.providers.JsonRpcProvider(providerUrl); const address = await provider.resolveName(domainName); return address; } ca...
3
SyPham/EvseProject
4bd05c8
App/src/app/views/pig-farm/breedings/lib/sow-pregnancy-test/sow-pregnancy-test.component.spec.ts
TypeScript
www.github.com/SyPham/EvseProject/tree/main/App/src/app/views/pig-farm/breedings/lib/sow-pregnancy-test/sow-pregnancy-test.component.spec.ts
https://raw.githubusercontent.com/SyPham/EvseProject/4bd05c8/App/src/app/views/pig-farm/breedings/lib/sow-pregnancy-test/sow-pregnancy-test.component.spec.ts
SyPham/EvseProject 4bd05c8 App/src/app/views/pig-farm/breedings/lib/sow-pregnancy-test/sow-pregnancy-test.component.spec.ts
true
200
834
/* tslint:disable:no-unused-variable */ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; import { By } from '@angular/platform-browser'; import { DebugElement } from '@angular/core'; import { SowPregnancyTestComponent } from './sow-pregnancy-test.component'; describe('SowPregnancyTestComponen...
6
ReneFGJr/Brapci3.1
ee0bb56
angular/BRP/src/app/001_auth/service/local-storage.service.ts
TypeScript
www.github.com/ReneFGJr/Brapci3.1/tree/main/angular/BRP/src/app/001_auth/service/local-storage.service.ts
https://raw.githubusercontent.com/ReneFGJr/Brapci3.1/ee0bb56/angular/BRP/src/app/001_auth/service/local-storage.service.ts
ReneFGJr/Brapci3.1 ee0bb56 angular/BRP/src/app/001_auth/service/local-storage.service.ts
true
200
934
import { Injectable } from '@angular/core'; @Injectable({ providedIn: 'root', }) export class LocalStorageService { private storage: Storage; public user:Array<any> | any constructor() { this.storage = window.localStorage; } set(key: string, value: any): boolean { if (this.storage) { this.s...
5
AlmamyHaidara/social
16ca20f
src/app/pages/plugins/scroll-hint/scroll-hint.component.spec.ts
TypeScript
www.github.com/AlmamyHaidara/social/tree/main/src/app/pages/plugins/scroll-hint/scroll-hint.component.spec.ts
https://raw.githubusercontent.com/AlmamyHaidara/social/16ca20f/src/app/pages/plugins/scroll-hint/scroll-hint.component.spec.ts
AlmamyHaidara/social 16ca20f src/app/pages/plugins/scroll-hint/scroll-hint.component.spec.ts
true
200
648
import { ComponentFixture, TestBed } from '@angular/core/testing'; import { ScrollHintComponent } from './scroll-hint.component'; describe('ScrollHintComponent', () => { let component: ScrollHintComponent; let fixture: ComponentFixture<ScrollHintComponent>; beforeEach(async () => { await TestBed.c...
7
st-longngo/FE-React-Ngo-Dac-Quoc-Long-ST0057
473f80d
src/app/pages/Cart/cart.reducers.ts
TypeScript
www.github.com/st-longngo/FE-React-Ngo-Dac-Quoc-Long-ST0057/tree/main/src/app/pages/Cart/cart.reducers.ts
https://raw.githubusercontent.com/st-longngo/FE-React-Ngo-Dac-Quoc-Long-ST0057/473f80d/src/app/pages/Cart/cart.reducers.ts
st-longngo/FE-React-Ngo-Dac-Quoc-Long-ST0057 473f80d src/app/pages/Cart/cart.reducers.ts
true
200
1,590
import * as TYPES from '../../shared/constant/types'; import { ICart } from './../../shared/interfaces/cart'; import { IAction , IRootState } from '../../shared/interfaces/reducer'; import { getData, setData } from './../../shared/common/common'; const intitalStateCart = { cart: getData('cart', []) }; const cartRed...
4
Samayasser29/e-commerce-3
c0b2b15
src/app/features/pages/wishlist/wishlist.component.ts
TypeScript
www.github.com/Samayasser29/e-commerce-3/tree/main/src/app/features/pages/wishlist/wishlist.component.ts
https://raw.githubusercontent.com/Samayasser29/e-commerce-3/c0b2b15/src/app/features/pages/wishlist/wishlist.component.ts
Samayasser29/e-commerce-3 c0b2b15 src/app/features/pages/wishlist/wishlist.component.ts
true
200
1,950
import { Component, inject, Input, OnInit, Output } from '@angular/core'; import { WishlistService } from '../../../shared/services/wishlist/wishlist.service'; import { RouterLink } from '@angular/router'; import { Product } from '../../../shared/interfaces/cart'; import { Wishlist } from '../../../shared/interfaces/wi...
0
Developer-Square/Analytics-Web-App
2fc9043
pages/api/users/[userId].ts
TypeScript
www.github.com/Developer-Square/Analytics-Web-App/tree/main/pages/api/users/[userId].ts
https://raw.githubusercontent.com/Developer-Square/Analytics-Web-App/2fc9043/pages/api/users/%5BuserId%5D.ts
Developer-Square/Analytics-Web-App 2fc9043 pages/api/users/[userId].ts
true
200
1,164
import type { NextApiRequest, NextApiResponse } from 'next'; import httpStatus from 'http-status'; import User from '@/modules/users/user.services'; import catchAPIError from '@/modules/errors/catchAPIError'; import ApiError from '@/modules/errors/ApiError'; import connectToDatabase from '@/modules/database/database'; ...
1
VasistaP/My-AI
936dc62
frontend/src/app/tic-tac-toe/tic-tac-toe-board/tic-tac-toe-board.component.ts
TypeScript
www.github.com/VasistaP/My-AI/tree/main/frontend/src/app/tic-tac-toe/tic-tac-toe-board/tic-tac-toe-board.component.ts
https://raw.githubusercontent.com/VasistaP/My-AI/936dc62/frontend/src/app/tic-tac-toe/tic-tac-toe-board/tic-tac-toe-board.component.ts
VasistaP/My-AI 936dc62 frontend/src/app/tic-tac-toe/tic-tac-toe-board/tic-tac-toe-board.component.ts
true
200
2,288
import { AfterViewInit, Component, ElementRef, ViewChild } from '@angular/core'; import { TicTacToeAppService } from '../tic-tac-toe-app.service'; @Component({ selector: 'app-tic-tac-toe-board', template: ` <div #board> <div *ngFor="let i of indices" class="board-row"> <div *ngFor="let ...
3
lamtanng/2hand_web_FE
c44f4ce
src/pages/ProductDetail/useProductDetail.ts
TypeScript
www.github.com/lamtanng/2hand_web_FE/tree/main/src/pages/ProductDetail/useProductDetail.ts
https://raw.githubusercontent.com/lamtanng/2hand_web_FE/c44f4ce/src/pages/ProductDetail/useProductDetail.ts
lamtanng/2hand_web_FE c44f4ce src/pages/ProductDetail/useProductDetail.ts
true
200
4,741
import { useEffect, useState } from 'react'; import { productAPIs } from '../../apis/product.api'; import { useNavigate, useParams } from 'react-router-dom'; import { ProductProps } from '../../types/product.type'; import { handleError } from '../../utils/handleError'; import { cartAPIs } from '../../apis/cart.api'; im...
6
opedrodev/cashflowr-server
51b7328
src/middlewares/AuthMiddleware.ts
TypeScript
www.github.com/opedrodev/cashflowr-server/tree/main/src/middlewares/AuthMiddleware.ts
https://raw.githubusercontent.com/opedrodev/cashflowr-server/51b7328/src/middlewares/AuthMiddleware.ts
opedrodev/cashflowr-server 51b7328 src/middlewares/AuthMiddleware.ts
true
200
1,275
import { NextFunction, Request, Response } from 'express'; import { z } from 'zod'; import ErrorHandler from '../helpers/ErrorHandler'; import ErrorType from '../helpers/ErrorType'; class AuthMiddleware { public static async signUpCredentials(req: Request, res: Response, next: NextFunction) { const schema ...
2
JohnMadakin/mhealth
98685fa
src/datasets/create_rules.ts
TypeScript
www.github.com/JohnMadakin/mhealth/tree/main/src/datasets/create_rules.ts
https://raw.githubusercontent.com/JohnMadakin/mhealth/98685fa/src/datasets/create_rules.ts
JohnMadakin/mhealth 98685fa src/datasets/create_rules.ts
true
200
1,619
import fs from 'fs'; import csv from 'csv-parser'; import Rules from '../modules/inferenceEngine/models/rules'; import sequelize from '../database/sequelize'; interface Rule { if: { disease: string; symptoms: string[]; }; then: { track: string[]; }; } function generateIfThenRules(filePath: strin...
7
Mathss18/sew-sweet-api
565a07e
src/users/users.service.ts
TypeScript
www.github.com/Mathss18/sew-sweet-api/tree/main/src/users/users.service.ts
https://raw.githubusercontent.com/Mathss18/sew-sweet-api/565a07e/src/users/users.service.ts
Mathss18/sew-sweet-api 565a07e src/users/users.service.ts
true
200
2,261
import { Injectable } from '@nestjs/common'; import { Users } from '@prisma/client'; import { CreateUserDto } from './dto/create-user.dto'; import { UpdateUserDto } from './dto/update-user.dto'; import * as bcrypt from 'bcrypt'; import { PrismaService } from '../database/prisma.service'; import { applyDefaultOrder } fr...
5
JAVOHIRQAYUMOV14050725/six_november_project_online_sales_platformine_
7f511ef
src/payment_statuses/payment_statuses.controller.spec.ts
TypeScript
www.github.com/JAVOHIRQAYUMOV14050725/six_november_project_online_sales_platformine_/tree/main/src/payment_statuses/payment_statuses.controller.spec.ts
https://raw.githubusercontent.com/JAVOHIRQAYUMOV14050725/six_november_project_online_sales_platformine_/7f511ef/src/payment_statuses/payment_statuses.controller.spec.ts
JAVOHIRQAYUMOV14050725/six_november_project_online_sales_platformine_ 7f511ef src/payment_statuses/payment_statuses.controller.spec.ts
true
200
668
import { Test, TestingModule } from '@nestjs/testing'; import { PaymentStatusesController } from './payment_statuses.controller'; import { PaymentStatusesService } from './payment_statuses.service'; describe('PaymentStatusesController', () => { let controller: PaymentStatusesController; beforeEach(async () => { ...
3
YusufsDesigns/Threads
8372b35
app/api/webhook/clerk/route.ts
TypeScript
www.github.com/YusufsDesigns/Threads/tree/main/app/api/webhook/clerk/route.ts
https://raw.githubusercontent.com/YusufsDesigns/Threads/8372b35/app/api/webhook/clerk/route.ts
YusufsDesigns/Threads 8372b35 app/api/webhook/clerk/route.ts
true
200
6,747
/* eslint-disable camelcase */ // Resource: https://clerk.com/docs/users/sync-data-to-your-backend // Above article shows why we need webhooks i.e., to sync data to our backend // Resource: https://docs.svix.com/receiving/verifying-payloads/why // It's a good practice to verify webhooks. Above article shows why we sho...
1
Jaspero/jms-plugins
ad5f23d
projects/github-issues/src/lib/github-issues.module.ts
TypeScript
www.github.com/Jaspero/jms-plugins/tree/main/projects/github-issues/src/lib/github-issues.module.ts
https://raw.githubusercontent.com/Jaspero/jms-plugins/ad5f23d/projects/github-issues/src/lib/github-issues.module.ts
Jaspero/jms-plugins ad5f23d projects/github-issues/src/lib/github-issues.module.ts
true
200
1,681
import { CommonModule } from '@angular/common'; import { ModuleWithProviders, NgModule } from '@angular/core'; import { MatButtonModule } from '@angular/material/button'; import { MatDialogModule } from '@angular/material/dialog'; import { MatIconModule } from '@angular/material/icon'; import { MatTooltipModule } from ...
4
holygeek00/shensi-app
b7f072e
app/api/bd/users/methods.ts
TypeScript
www.github.com/holygeek00/shensi-app/tree/main/app/api/bd/users/methods.ts
https://raw.githubusercontent.com/holygeek00/shensi-app/b7f072e/app/api/bd/users/methods.ts
holygeek00/shensi-app b7f072e app/api/bd/users/methods.ts
true
200
1,879
import {connect} from "../../lib/db"; import bcrypt from 'bcrypt' // 注册新用户 export async function register(username, password, email) { const client = connect(); try { // 检查用户名和电子邮件是否已经存在 const userCheckQuery = 'SELECT * FROM backend_users WHERE username = $1 OR email = $2'; const userC...
0
mohanshenoy/user-behavior-tracking-app
bfd126c
src/app/tracking/change-tracking.directive.ts
TypeScript
www.github.com/mohanshenoy/user-behavior-tracking-app/tree/main/src/app/tracking/change-tracking.directive.ts
https://raw.githubusercontent.com/mohanshenoy/user-behavior-tracking-app/bfd126c/src/app/tracking/change-tracking.directive.ts
mohanshenoy/user-behavior-tracking-app bfd126c src/app/tracking/change-tracking.directive.ts
true
200
2,051
import { Directive, HostListener } from '@angular/core'; import { TrackData } from './track-data.model'; /* to track all change events in specified elements */ @Directive({ selector: ` input[type="text"] , input[type="number"], input[type="password"], input[type="tel"], inp...
2
Axel77g/clean-architecture-typescript
0725f6f
src/domain/maintenance/events/garage/UpdateGarageEvent.ts
TypeScript
www.github.com/Axel77g/clean-architecture-typescript/tree/main/src/domain/maintenance/events/garage/UpdateGarageEvent.ts
https://raw.githubusercontent.com/Axel77g/clean-architecture-typescript/0725f6f/src/domain/maintenance/events/garage/UpdateGarageEvent.ts
Axel77g/clean-architecture-typescript 0725f6f src/domain/maintenance/events/garage/UpdateGarageEvent.ts
true
200
537
import { AbstractEvent } from "@shared/AbstractEvent"; export interface UpdateGarageEventPayload { siret: string, name: string, phoneNumber: string } export class UpdateGarageEvent extends AbstractEvent { static type = "GARAGE_UPDATED" readonly type = UpdateGarageEvent.type readonly streamId:...
7
espinozadf/test-acceso
3d63753
src/app/shared/services/registro.service.ts
TypeScript
www.github.com/espinozadf/test-acceso/tree/main/src/app/shared/services/registro.service.ts
https://raw.githubusercontent.com/espinozadf/test-acceso/3d63753/src/app/shared/services/registro.service.ts
espinozadf/test-acceso 3d63753 src/app/shared/services/registro.service.ts
true
200
1,468
import { HttpClient } from '@angular/common/http'; import { Injectable } from '@angular/core'; import { Observable, Subject } from 'rxjs'; import { environment } from 'src/environments/environments'; import { Registro } from '../models'; @Injectable({ providedIn: 'root' }) export class RegistroService { // Escucha p...
5
doichev-kostia/elevators
f4e9808
vite.config.ts
TypeScript
www.github.com/doichev-kostia/elevators/tree/main/vite.config.ts
https://raw.githubusercontent.com/doichev-kostia/elevators/f4e9808/vite.config.ts
doichev-kostia/elevators f4e9808 vite.config.ts
true
200
407
import autoprefixer from "autoprefixer"; import tailwindcss from "tailwindcss"; import { defineConfig } from "vite"; import tsconfigPaths from "vite-tsconfig-paths"; import solidPlugin from "vite-plugin-solid"; export default defineConfig({ css: { postcss: { plugins: [tailwindcss, autoprefixer], }, }...
1
Maximauve/Solitaire
bce2f7b
src/utils/GameUtils.ts
TypeScript
www.github.com/Maximauve/Solitaire/tree/main/src/utils/GameUtils.ts
https://raw.githubusercontent.com/Maximauve/Solitaire/bce2f7b/src/utils/GameUtils.ts
Maximauve/Solitaire bce2f7b src/utils/GameUtils.ts
true
200
2,276
import { type CardType, Symbol } from '@/types/Card'; import { CardValue } from '@/constants/Card'; export const initGame = () => { const cards = getCards(); const shuffledCards = shuffle(cards); return shuffledCards; } // export const initGame = () => { // const cards = getCards(); // return cards; // } ...
3
SPex-team/AppFrontend
7b94bb1
src/api/service.ts
TypeScript
www.github.com/SPex-team/AppFrontend/tree/main/src/api/service.ts
https://raw.githubusercontent.com/SPex-team/AppFrontend/7b94bb1/src/api/service.ts
SPex-team/AppFrontend 7b94bb1 src/api/service.ts
true
200
1,445
import axios, { AxiosRequestConfig, Method } from 'axios' interface PendingType { url: string | undefined method: Method | undefined params: object data: object cancel: Function } const pending: Array<PendingType> = [] const CancelToken = axios.CancelToken const service = axios.create({ withCredentials: ...
6
PhilaniNcube/aspire
0c22130
sanity/schemas/doc-schema.ts
TypeScript
www.github.com/PhilaniNcube/aspire/tree/main/sanity/schemas/doc-schema.ts
https://raw.githubusercontent.com/PhilaniNcube/aspire/0c22130/sanity/schemas/doc-schema.ts
PhilaniNcube/aspire 0c22130 sanity/schemas/doc-schema.ts
true
200
1,371
const doc = { name: 'doc', title: 'Docs', type: 'document', fields: [ { name: 'title', title: 'Title', type: 'string', }, { name: 'slug', title: 'Slug', type: 'slug', options: { source: 'title', } }, ...
0
allsides2/serie-c-futebol-simulado
db252e3
src/utils/playerUtils.ts
TypeScript
www.github.com/allsides2/serie-c-futebol-simulado/tree/main/src/utils/playerUtils.ts
https://raw.githubusercontent.com/allsides2/serie-c-futebol-simulado/db252e3/src/utils/playerUtils.ts
allsides2/serie-c-futebol-simulado db252e3 src/utils/playerUtils.ts
true
200
3,013
import { Player, Position, Formation } from '@/pages/LineupBuilder'; export const groupPlayersByPosition = (players: Player[]) => { const grouped: Record<Position, Player[]> = { 'GOL': [], 'ZAG': [], 'LAD': [], 'LAE': [], 'VOL': [], 'MEI': [], 'ATA': [] }; players.forEach(player => {...
4
huflit-blockchain-certification/frontend
71a5689
src/components/common/Toast/response.component.ts
TypeScript
www.github.com/huflit-blockchain-certification/frontend/tree/main/src/components/common/Toast/response.component.ts
https://raw.githubusercontent.com/huflit-blockchain-certification/frontend/71a5689/src/components/common/Toast/response.component.ts
huflit-blockchain-certification/frontend 71a5689 src/components/common/Toast/response.component.ts
true
200
335
import Swal from 'sweetalert2' const Toast = Swal.mixin({ toast: true, position: 'bottom-end', showConfirmButton: false, timer: 2000, timerProgressBar: true, didOpen: (toast) => { toast.addEventListener('mouseenter', Swal.stopTimer) toast.addEventListener('mouseleave', Swal.resumeTimer) }, }) ex...
2
shahnewaj12008044/tech-tips-backend
fcf3129
src/app/modules/auth/auth.controller.ts
TypeScript
www.github.com/shahnewaj12008044/tech-tips-backend/tree/main/src/app/modules/auth/auth.controller.ts
https://raw.githubusercontent.com/shahnewaj12008044/tech-tips-backend/fcf3129/src/app/modules/auth/auth.controller.ts
shahnewaj12008044/tech-tips-backend fcf3129 src/app/modules/auth/auth.controller.ts
true
200
1,406
import httpStatus from 'http-status'; import catchAsync from '../../utils/catchAsync'; import sendResponse from '../../utils/sendResponse'; import { AuthServices } from './auth.service'; const register = catchAsync(async (req, res) => { const result = await AuthServices.registerUser(req.body); sendResponse(res, {...
7
thabo-lebelo/wso2ei-integrator
2be3ee0
lib/wso2ei-integrator-stack.ts
TypeScript
www.github.com/thabo-lebelo/wso2ei-integrator/tree/main/lib/wso2ei-integrator-stack.ts
https://raw.githubusercontent.com/thabo-lebelo/wso2ei-integrator/2be3ee0/lib/wso2ei-integrator-stack.ts
thabo-lebelo/wso2ei-integrator 2be3ee0 lib/wso2ei-integrator-stack.ts
true
200
4,767
import { Stack, StackProps, Duration } from 'aws-cdk-lib'; import { Construct } from 'constructs'; import * as ecr from "aws-cdk-lib/aws-ecr"; import * as ecs from 'aws-cdk-lib/aws-ecs'; import * as ec2 from 'aws-cdk-lib/aws-ec2' import * as route53 from 'aws-cdk-lib/aws-route53'; import * as route53Targets from 'aws-c...
1
stdyum/web-core
5d80502
src/services/icons.service.ts
TypeScript
www.github.com/stdyum/web-core/tree/main/src/services/icons.service.ts
https://raw.githubusercontent.com/stdyum/web-core/5d80502/src/services/icons.service.ts
stdyum/web-core 5d80502 src/services/icons.service.ts
true
200
706
import { inject, Injectable } from '@angular/core'; import { MatIconRegistry, SafeResourceUrlWithIconOptions } from '@angular/material/icon'; import { SafeResourceUrl, DomSanitizer } from '@angular/platform-browser'; @Injectable({ providedIn: 'root', }) export class IconsService { private matIconRegistry = inject(...
5
hy-3/42_get_next_line
a494c3c
get_next_line_utils_bonus.c
C
www.github.com/hy-3/42_get_next_line/tree/main/get_next_line_utils_bonus.c
https://raw.githubusercontent.com/hy-3/42_get_next_line/a494c3c/get_next_line_utils_bonus.c
hy-3/42_get_next_line a494c3c get_next_line_utils_bonus.c
true
200
2,062
/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* get_next_line_utils_bonus.c :+: :+: :+: ...
3
dharaninaradasu/codemind-c
f2534ab
Average_of_the_array.c
C
www.github.com/dharaninaradasu/codemind-c/tree/main/Average_of_the_array.c
https://raw.githubusercontent.com/dharaninaradasu/codemind-c/f2534ab/Average_of_the_array.c
dharaninaradasu/codemind-c f2534ab Average_of_the_array.c
true
200
210
#include<stdio.h> int main() { int i,n; float sum=0; scanf("%d",&n); int arr[n]; for(i=0;i<n;i++) { scanf("%d",&arr[i]); sum=sum+arr[i]; } printf("%.2f",sum/n); }
6
akankshadeo/C
ac0654f
program33.c
C
www.github.com/akankshadeo/C/tree/main/program33.c
https://raw.githubusercontent.com/akankshadeo/C/ac0654f/program33.c
akankshadeo/C ac0654f program33.c
true
200
316
#include<stdio.h> void Display(int iNo) { int iCnt = 0; iCnt = 1; while(iCnt <= iNo) { printf("%d \t",iCnt); iCnt++; } } int main() { int iValue = 0; printf("Enter Number : \n"); scanf("%d",&iValue); Display(iValue); return 0; }
4
danitrapero10/DAM
d341634
Programación/Prácticas/P1/SumaFloat.c
C
www.github.com/danitrapero10/DAM/tree/main/Programación/Prácticas/P1/SumaFloat.c
https://raw.githubusercontent.com/danitrapero10/DAM/d341634/Programaci%C3%B3n/Pr%C3%A1cticas/P1/SumaFloat.c
danitrapero10/DAM d341634 Programación/Prácticas/P1/SumaFloat.c
true
200
935
#include <stdio.h> #include <stdlib.h> int main() { // Declaración de variables. A la vez // o en líneas separadas. float num1,num2; float resultado_suma; float resultado_resta; float resultado_multiplicacion; float resultado_division; /** * COMIENZA LA LÓGICA DEL PROGRAMA */ printf("Introduce un númer...
0
ValerioMax/Uni-Sapienza
c0af43e
Complementi Di Programmazione/Esercitazione12/albero_binario.c
C
www.github.com/ValerioMax/Uni-Sapienza/tree/main/Complementi Di Programmazione/Esercitazione12/albero_binario.c
https://raw.githubusercontent.com/ValerioMax/Uni-Sapienza/c0af43e/Complementi%20Di%20Programmazione/Esercitazione12/albero_binario.c
ValerioMax/Uni-Sapienza c0af43e Complementi Di Programmazione/Esercitazione12/albero_binario.c
true
200
1,415
#include <stdio.h> #include <stdlib.h> #include "albero_binario.h" // Valore di errore TipoInfoAlbero ERRORE_InfoAlbBin='*'; // Implementazioni del tipo astratto TipoAlbero albBinVuoto() { return NULL; } TipoAlbero creaAlbBin(TipoInfoAlbero info, TipoAlbero sx, TipoAlbero dx) { TipoAlbero a = (TipoAlbero) ma...
7
monakassem99/alx-low_level_programming
eb67855
0x0A-argc_argv/2-args.c
C
www.github.com/monakassem99/alx-low_level_programming/tree/main/0x0A-argc_argv/2-args.c
https://raw.githubusercontent.com/monakassem99/alx-low_level_programming/eb67855/0x0A-argc_argv/2-args.c
monakassem99/alx-low_level_programming eb67855 0x0A-argc_argv/2-args.c
true
200
318
#include "main.h" /** * main - prints all arguments it receives. * @argc: arguement count * @argv: argument value, a strings that come after calling function * Return: Always 0 (Success) */ int main(int argc, char *argv[]) { int i; for (i = 0; i < argc; i++) { printf("%s\n", argv[i]); } return (0); }
2
ErMohdMohsinKhan/Emblogic
d592bc0
LinkedList/LinkedList_Operations/deleteNodeBeg.c
C
www.github.com/ErMohdMohsinKhan/Emblogic/tree/main/LinkedList/LinkedList_Operations/deleteNodeBeg.c
https://raw.githubusercontent.com/ErMohdMohsinKhan/Emblogic/d592bc0/LinkedList/LinkedList_Operations/deleteNodeBeg.c
ErMohdMohsinKhan/Emblogic d592bc0 LinkedList/LinkedList_Operations/deleteNodeBeg.c
true
200
427
#include "headers.h" #include "dataStruct.h" #include "declarations.h" void* deleteNodeBeg (void* arg) { Node *start = (Node*)arg; printf("%s : %s : Begin\n", __FILE__, __func__); Node *crr = start; Node *tmp = start->next; crr->next = tmp->next; free(tmp); tmp = NULL; printf("%s : %s : A node is removed succes...
5
EGCO112-progtech/queue-puthipongyomabut
781ff93
.ccls-cache/@home@runner@queue-puthipongyomabut/main.c
C
www.github.com/EGCO112-progtech/queue-puthipongyomabut/tree/main/.ccls-cache/@home@runner@queue-puthipongyomabut/main.c
https://raw.githubusercontent.com/EGCO112-progtech/queue-puthipongyomabut/781ff93/.ccls-cache/%40home%40runner%40queue-puthipongyomabut/main.c
EGCO112-progtech/queue-puthipongyomabut 781ff93 .ccls-cache/@home@runner@queue-puthipongyomabut/main.c
true
200
1,227
#include <stdio.h> #include <stdlib.h> #include <string.h> #include "Node.h" #include "Queue.h" int main(int argc , char **argv) { NodePtr headPtr=NULL; NodePtr tailPtr=NULL; int order_number; /* For struct Queue*/ Queue q; q.headPtr=NULL; q.tailPtr=NULL; q.size=0; int i,x,customer=1; for(i=1;i<...
1
Timur-khan96/advent2024
b6489e0
advent_day_twelve/twelve.c
C
www.github.com/Timur-khan96/advent2024/tree/main/advent_day_twelve/twelve.c
https://raw.githubusercontent.com/Timur-khan96/advent2024/b6489e0/advent_day_twelve/twelve.c
Timur-khan96/advent2024 b6489e0 advent_day_twelve/twelve.c
true
200
2,616
#include <stdio.h> #include <stdlib.h> #define HEIGHT 140 #define WIDTH 140 long calculate_price(int y, int x, char map[HEIGHT][WIDTH]); void process_plot(int y, int x, char curr_char, int* area, int* perimeter, char map[HEIGHT][WIDTH]); int main() { FILE* file_ptr = fopen("input.txt", "r"); char* buffer = NU...
3
Solartraveler/UniversalboxArm
cd42e88
src/apps/13-battery-capacity-tester/capTester.c
C
www.github.com/Solartraveler/UniversalboxArm/tree/main/src/apps/13-battery-capacity-tester/capTester.c
https://raw.githubusercontent.com/Solartraveler/UniversalboxArm/cd42e88/src/apps/13-battery-capacity-tester/capTester.c
Solartraveler/UniversalboxArm cd42e88 src/apps/13-battery-capacity-tester/capTester.c
true
200
8,987
/* Battery capacity tester (c) 2024 by Malte Marwedel SPDX-License-Identifier: GPL-3.0-or-later Input pins to use for ADC ADC Channel STM32L452 1 PC0 first port with a 10:1 divider 2 PC1 second port witth a 10:1 divider Relay 1 PA9 enables discharge on first port Relay 2 PB...
4
LuisMIguelFurlanettoSousa/C
9e9ddff
trabalhoN2/ex20.c
C
www.github.com/LuisMIguelFurlanettoSousa/C/tree/main/trabalhoN2/ex20.c
https://raw.githubusercontent.com/LuisMIguelFurlanettoSousa/C/9e9ddff/trabalhoN2/ex20.c
LuisMIguelFurlanettoSousa/C 9e9ddff trabalhoN2/ex20.c
true
200
358
#include <stdio.h> int main() { int numero, maior = 0; do { printf("Digite um número inteiro positivo (-1 para sair): "); scanf("%d", &numero); if (numero > maior && numero != -1) { maior = numero; } } while (numero != -1); printf("O maior número digitado ...
0
erithrocyte/alx-low_level_programming
ee3e9fb
0x01-variables_if_else_while/2-print_alphabet.c
C
www.github.com/erithrocyte/alx-low_level_programming/tree/main/0x01-variables_if_else_while/2-print_alphabet.c
https://raw.githubusercontent.com/erithrocyte/alx-low_level_programming/ee3e9fb/0x01-variables_if_else_while/2-print_alphabet.c
erithrocyte/alx-low_level_programming ee3e9fb 0x01-variables_if_else_while/2-print_alphabet.c
true
200
326
#include <stdio.h> /** * * main - print if the number is postive, zero, or negative * * * * Description: using the main function * * this program prints "Programming is positive, zero, or negative * * Return: 0 */ int main(void) { char ch; for (ch = 'a' ; ch <= 'z' ; ch++) { putchar(ch); } putchar('\n'); return (...
6
KristhianCacho/holbertonschool-low_level_programming
1310ea6
structures_typedef/2-print_dog.c
C
www.github.com/KristhianCacho/holbertonschool-low_level_programming/tree/main/structures_typedef/2-print_dog.c
https://raw.githubusercontent.com/KristhianCacho/holbertonschool-low_level_programming/1310ea6/structures_typedef/2-print_dog.c
KristhianCacho/holbertonschool-low_level_programming 1310ea6 structures_typedef/2-print_dog.c
true
200
334
#include <stdio.h> #include <stdlib.h> #include "dog.h" /** * print_dog - dog * @d: struct */ void print_dog(struct dog *d) { if (d == NULL) { return; } if (d->name == NULL) { d->name = "(nil)"; } if (d->owner == NULL) { d->owner = "(nil)"; } printf("Name: %s\nAge: %f\nOwner: %s\n", d->name, d->age,...
7
Pushpita-Dey/C_programs
2c95996
Array in C/3d array user input.c
C
www.github.com/Pushpita-Dey/C_programs/tree/main/Array in C/3d array user input.c
https://raw.githubusercontent.com/Pushpita-Dey/C_programs/2c95996/Array%20in%20C/3d%20array%20user%20input.c
Pushpita-Dey/C_programs 2c95996 Array in C/3d array user input.c
true
200
844
#include <stdio.h> int main() { int R,C,T,i,j,k,arr[5][5][5]; printf("enter the numbers of tables, rows and columns: "); scanf(" %d %d %d",&T,&R,&C); printf("enter the values in the array-> \n\n"); for(i=1;i<=T;i++) ///for tables { for(j=1;j...
3
rodas404/P2024
02150f2
Ficha3/ex5.c
C
www.github.com/rodas404/P2024/tree/main/Ficha3/ex5.c
https://raw.githubusercontent.com/rodas404/P2024/02150f2/Ficha3/ex5.c
rodas404/P2024 02150f2 Ficha3/ex5.c
true
200
644
#include <stdio.h> void procuraDupla(int *tab, int tam, int *prim, int *seg){ for(int i=0; i<tam; i++){ if(tab[i] > (*prim)) { (*seg) = (*prim); (*prim) = tab[i]; } else if(tab[i] > *seg && tab[i] != *prim ) (*seg) = tab[i]; } } int main(){ int t...
4
Rojay10/alx-low_level_programming
181e635
0x01-variables_if_else_while/0-positive_or_negative.c
C
www.github.com/Rojay10/alx-low_level_programming/tree/main/0x01-variables_if_else_while/0-positive_or_negative.c
https://raw.githubusercontent.com/Rojay10/alx-low_level_programming/181e635/0x01-variables_if_else_while/0-positive_or_negative.c
Rojay10/alx-low_level_programming 181e635 0x01-variables_if_else_while/0-positive_or_negative.c
true
200
407
#include <stdlib.h> #include <time.h> #include <stdio.h> /** * main - assigns a random number to int n everytime * it executes, and prints it * Return: Always 0 (Success) */ int main(void) { int n; srand(time(0)); n = rand() - RAND_MAX / 2; if (n > 0) printf("%d is positive\n", n); else if (n == 0) print...
0