Skip to content

Instantly share code, notes, and snippets.

View MonteLogic's full-sized avatar
♂️

Dennis (MonteLogic) Chavours MonteLogic

♂️
View GitHub Profile
<?php
/**
* Starting update via different method.
*
* @param object $transient The update request for plugin.
*/
function myplugin_check_for_update( $transient ) {
error_log( 'hello' );

todo-chamber-cb-work-notes-3

Read

Make sure you understand the tasks before starting it to understand the scope of the task.

When you are done with the tasks, write the branch name, the task id and the date accomplish, so

schedule-page, 0x2 Thu 23 May 2024 10:35:27 AM CDT

@MonteLogic
MonteLogic / crud-app-nextjs13-prisma-part1.md
Last active April 23, 2024 15:50
CRUD App Next.js 13, Prisma - Part 1
'use client'
import { useState, MouseEventHandler, useEffect } from 'react'; // Import MouseEventHandler
import Button from './button';
import { updateSummary } from '#/app/api/search-shift/network-fns';
import TextareaAutosize from 'react-textarea-autosize';
import { UploadButton } from "#/app/utils/uploadthing";
import { ImageString } from './image-slider';
import StandardModal from './standard-modal';
import { FormattedRouteType } from "#/types/RouteTypes";
import { useSearchParams, usePathname, useRouter } from 'next/navigation';
@MonteLogic
MonteLogic / cb-work-notes-4.md
Last active June 16, 2024 22:06
Part 4 - Contractor Buddy Work Notes

Contractor Buddy Work Notes - Part 4

Start: Tue 23 Apr 2024 10:48:29 AM CDT

Now, I have to turn those input results into object which will then be saved to the DB.

I need to pipe a setState into:

@MonteLogic
MonteLogic / example-toDo-chamber.md
Last active April 23, 2024 16:33
Example toDo work chamber

Example toDo Chamber

[

  • 2x Get the route and date to be in a URL.

  • Date?

  • 2x - Enter a URL and have the search form bring up the route and/or Date which is in the URL.

  • Date?

'use client';
import { type WorkTime, type Routes, Prisma } from '@prisma/client';
import { useEffect, useState } from 'react';
import Button from './button';
import { set } from 'date-fns';
interface shiftsType {
name: string;
startTime: string;
'use client';
import { useState, MouseEventHandler, useEffect } from 'react'; // Import MouseEventHandler
import Button from './button';
import { updateSummary, createRecordForSummary } from '#/app/utils/network-fns';
import TextareaAutosize from 'react-textarea-autosize';
import { UploadButton } from '#/app/utils/uploadthing';
import { ImageString } from './image-slider';
import StandardModal from './standard-modal';
import { FormattedRouteType } from '#/types/RouteTypes';
import { useSearchParams, usePathname, useRouter } from 'next/navigation';
export const updateSummary = async (
entryID: string,
date: string,
routeID: string,
setSummaryObject: React.Dispatch<React.SetStateAction<any>>,
summaryObject: any,
) => {
alert('8, updateSummary');
// I'm pretty sure that BS id creation is coming from here:
try {
Useful vim commands:
Insert the date but this date would be in the format of MM/DD/YY
:r !echo -n $(date +\%m/\%d/\%y)