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
π¨βπ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Compare Database | |
Option Explicit | |
'' | |
'' Function: createFolder | |
'' =========================================== | |
'' | |
'' Params | |
'' =========================================== | |
'' - path (string|required): The path to create the folder |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Function getSheetByName(name) | |
Set getSheetByName = ActiveWorkbook.Sheets(name) | |
End Function | |
Public Function getCellBackgroundColor(sheet, cell) | |
getCellBackgroundColor = getSheetByName(sheet).Range(cell).Interior.Color |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
robocopy "source" "dest" //mir //xd node_modules vendor ".git" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import random | |
def getBaroAlts(): | |
baroAlt1 = random.randint(0, 10) | |
baroAlt2 = random.randint(0, 10) | |
baroAlt3 = random.randint(0, 10) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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){ |
- https://stackoverflow.com/questions/517006/is-there-a-need-to-set-objects-to-nothing-inside-vba-functions
- https://docs.microsoft.com/en-us/office/vba/api/overview/
'---------------------------------------------------------------------------------------
' Procedure : printAllFormNames
' Author : Wyatt Castaneda
' Date : 10/19/2018
' Purpose : This function is called to debug all form names
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
NewerOlder