Skip to content

Instantly share code, notes, and snippets.

Avatar
🚢
Shipping

Elliot raisonon

🚢
Shipping
View GitHub Profile
@raisonon
raisonon / dependabot.yml
Created Jul 26, 2021
Example Dependabot yml file
View dependabot.yml
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "daily"
View keybase.md

Keybase proof

I hereby claim:

  • I am raisonon on github.
  • I am ejntaylor (https://keybase.io/ejntaylor) on keybase.
  • I have a public key ASAu6CghDrDJ7IuwViXTe6GRoqpNRtqzchn1IOIvdF1rkAo

To claim this, I am signing this object:

@raisonon
raisonon / web.php
Created Jun 26, 2020
Statamic Nova Test 2
View web.php
<?php
// Auth
Auth::routes();
// Statamic
Route::name('statamic.')->group(function () {
/**
* Glide
@raisonon
raisonon / web.php
Created Jun 24, 2020
Statamic and Nova route example problem
View web.php
<?php
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Route;
use Statamic\Facades\OAuth;
use Statamic\Statamic;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
View CodeGeneratorCommand.php
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use VictorYoalli\LaravelCodeGenerator\Facades\CodeGenerator;
use VictorYoalli\LaravelCodeGenerator\Facades\CodeHelper;
use VictorYoalli\LaravelCodeGenerator\Facades\ModelLoader;
function printif($type, $filename, $msg = '✖ Not generated ')
View keybase.md

Keybase proof

I hereby claim:

  • I am raisonon on github.
  • I am ejntaylor (https://keybase.io/ejntaylor) on keybase.
  • I have a public key ASAzxgSxZCJiGVOAnZsjnXcbOPso3bK3SjpWLcNt9Ljegwo

To claim this, I am signing this object:

@raisonon
raisonon / functions.php
Created Dec 2, 2017
Rename cart to bag
View functions.php
<?php
function woo_custom_change_cart_string($translated_text, $text, $domain) {
$translated_text = str_replace("cart", "bag", $translated_text);
$translated_text = str_replace("Cart", "Bag", $translated_text);
$translated_text = str_replace("View Cart", "View Bag", $translated_text);
View cmb2_front_end_test.php
<?php
function ss_settings_form( $atts = array() ) {
global $post;
// var_dump($atts);
/**
* Depending on your setup, check if the user has permissions to edit_posts
View ss_list_array.php
<?php
function ss_list_array() {
// Set Vars
$current_user = get_current_user();
$username = $current_user->user_login;
$post = get_the_ID();
View cmb2.php
<?php
// cmb2
// hook the function to the cmb2_init action
add_action( 'cmb2_init', 'cmb2_sample_metaboxes' );
// create the function that creates metaboxes and populates them with fields
function cmb2_sample_metaboxes() {