Skip to content

Instantly share code, notes, and snippets.

View thepatrickniyo's full-sized avatar
:octocat:
Building & Mentoring

Patrick Niyogitare thepatrickniyo

:octocat:
Building & Mentoring
View GitHub Profile
// Create Instruction
// Method: POST
// Endpoint: localhost:8200/api/v1/e-approval/instruction
{
"subject": "UCI Site Event at Amahoro 2",
"description": "The step-by-step execution of event setup and operations, starting from the arrival of teams and equipment until the event runs smoothly.",
"priority": "HIGH",
"assignedTo": [
"56cd695a-d872-42ec-9523-37bb0c67a6bd"
],
@thepatrickniyo
thepatrickniyo / kernels-and-convolution.ipynb
Created June 30, 2025 09:34
Kernels and Convolution.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Fetch 1
2025-04-14 15:20:28.763 DEBUG 536 --- [nio-8051-exec-1] org.hibernate.SQL :
select
business0_.id as id1_46_0_,
business0_.created_at as created_2_46_0_,
business0_.created_by_audit as created_3_46_0_,
business0_.created_date as created_4_46_0_,
business0_.last_modified_by as last_mod5_46_0_,
business0_.last_modified_date as last_mod6_46_0_,
business0_.state as state7_46_0_,
// Postman Test Script for Automatic Token Decryption
// Add this script to the "Tests" tab in your Postman request
// Configuration - Change this to match your secret key
const secretKey = "SECRET_KEY";
// Parse the response body
const responseBody = pm.response.json();
let decryptedData = null;
/**
* Prints text with support for bold sections (marked with **) and automatic line breaks
* @param {object} doc - The PDF document object
* @param {number} startY - The starting Y position
* @param {string} text - The input text with ** marking bold sections
* @param {object} options - Additional options for formatting
* @param {number} options.pageMargin - Page margin (default: 40)
* @param {number} options.innerPadding - Inner padding (default: 10)
* @param {number} options.lineSpacing - Spacing between lines (default: 10)
* @param {number} options.fontSize - Font size (default: 10)
Table User {
Id uuid [pk]
FirstName varchar
LastName varchar
Email varchar
Phone varchar
Password varchar
Role Role
Status UserStatus
CreatedAt datetime [default: `now()`]
import { createAsyncThunk, createSlice } from '@reduxjs/toolkit'
import type { RootState } from 'src/store/store'
import { SuccessListAPIResponse } from 'src/types/api-response';
import { MessageCategory } from 'src/types/category';
import { msgCategoriesService } from '@services/msg-categories.service';

// declaring the types for our state
export type MsgCategoriesState = {
    categories: Array<MessageCategory>,
import axios from 'axios';
import {IResponse} from '@interfaces/IResponse';

const upload = async (file: File): Promise<IResponse> => {
    const UPLOAD_PRESET: string = (import.meta.env.VITE_CLOUDINARY_UNSIGNED_UPLOAD_PRESET as string);
    const CLOUDINARY_NAME: string = (import.meta.env.VITE_CLOUDINARY_CLOUDNAME as string);
    const CLOUDINARY_API_KEY: string = (import.meta.env.VITE_CLOUDINARY_API_KEY as string);
    const CLOUDINARY_SECRET: string = (import.meta.env.VITE_CLOUDINARY_SECRET as string);
    const CLOUDINARY_IMAGES_FOLDER: string = (import.meta.env.VITE_CLOUDINARY_IMAGES_FOLDER as string);
@thepatrickniyo
thepatrickniyo / gist:992a3b705d8b0b26d97d9781d03767c9
Created September 28, 2022 18:08 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue: