Skip to content

Instantly share code, notes, and snippets.

View WyattCast44's full-sized avatar
👨‍🚀
Space is the place 🚀

Wyatt Castaneda WyattCast44

👨‍🚀
Space is the place 🚀
View GitHub Profile
@WyattCast44
WyattCast44 / filesystem-create-folder.vba
Last active January 6, 2021 00:05
A collection of VBA for MS Access functions related to dealing with the filesystem
Option Compare Database
Option Explicit
''
'' Function: createFolder
'' ===========================================
''
'' Params
'' ===========================================
'' - path (string|required): The path to create the folder
Public Function getSheetByName(name)
Set getSheetByName = ActiveWorkbook.Sheets(name)
End Function
Public Function getCellBackgroundColor(sheet, cell)
getCellBackgroundColor = getSheetByName(sheet).Range(cell).Interior.Color
@WyattCast44
WyattCast44 / robocopy.sh
Created October 29, 2020 17:30
Copy project folders while excluding node_modules, vendor, and .git directories
robocopy "source" "dest" //mir //xd node_modules vendor ".git"
import time
import random
def getBaroAlts():
baroAlt1 = random.randint(0, 10)
baroAlt2 = random.randint(0, 10)
baroAlt3 = random.randint(0, 10)
#!/bin/bash
laravel new $1
# Change Dir
cd $1
# Update .env
sed -i "s/APP_NAME=Laravel/APP_NAME=$1/g" .env
sed -i "s/DB_DATABASE=laravel/DB_DATABASE=$1/g" .env
@WyattCast44
WyattCast44 / aux-functions.php
Created March 21, 2020 21:56 — forked from eduwass/aux-functions.php
Programmatically adding a Page item to a Wordpress nav menu
<?php
/**
* Adds Page to a WordPress navmenu
* @param [int] $page_id The ID of the page you want to add
* @param [str] $page_title Title of menu item
* @param [int] $menu_id NavMenu ID
* @param [int] $parent (Optional) Menu item Parent ID
*/
function add_page_to_menu($page_id, $page_title, $menu_id, $parent = 0){
Public Function rotateImage(filepath As String, Optional angleToRotate As Integer = 90) As Boolean

On Error GoTo handleError

    Dim WIA As Object
    Dim imageProcess As Object
    Dim FSO As FileSystemObject
    Dim originalFileName As String
    Dim newFileName As String
@WyattCast44
WyattCast44 / Push.php
Created June 13, 2019 03:45 — forked from rufhausen/Push.php
Laravel Artisan command for pushing to remotes via git
<?php
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
class Push extends Command {
/**
* The console command name.
<?php
namespace App\Jobs;
use Vimeo;
use Illuminate\Bus\Queueable;
use Illuminate\Queue\SerializesModels;
use Illuminate\Queue\InteractsWithQueue;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Foundation\Bus\Dispatchable;