Skip to content

Instantly share code, notes, and snippets.

View MadMikeyB's full-sized avatar
🎯
mikeylicio.us

Michael Burton MadMikeyB

🎯
mikeylicio.us
View GitHub Profile
@MadMikeyB
MadMikeyB / default.tpl
Created December 3, 2011 20:35
HtmlHelper getCrumbs() / addCrumb()
{{ html.getcrumbs() }}
@MadMikeyB
MadMikeyB / show_topic.tpl
Created December 19, 2011 13:56
/views/forums/mobile/show_topic.tpl
<div class="forumPostBit">
<ul>
<li>
<a onclick="togglePostCtrls()">
<div style="clear:both;"></div>
{{ post['User']['username'] }}
<img src="{{ post['User']['gravatarurl'] }}?s=45" style="float:right !important;" />
<hr />
{{ bb->parse(post['ForumPost']['message']) }}

Keybase proof

I hereby claim:

  • I am madmikeyb on github.
  • I am madmikeyb (https://keybase.io/madmikeyb) on keybase.
  • I have a public key whose fingerprint is B15C B231 602A D576 22B4 7C01 9C49 CABE 80D0 40F1

To claim this, I am signing this object:

<!DOCTYPE HTML>
<html>
<head>
<title></title>
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript" src="script.js"></script>
</head>
<body>
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use File;
class MakeViewCommand extends Command
{
/**
@MadMikeyB
MadMikeyB / MakeModelCommand
Last active April 14, 2016 20:21
thinking out loud
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Filesystem\Filesystem;
use Illuminate\Foundation\Console\ModelMakeCommand as ModelMakeCommand;
class MakeModelCommand extends ModelMakeCommand
{
@MadMikeyB
MadMikeyB / _form.scss
Created February 22, 2019 12:18
Select Box - Custom Font Awesome Arrow
.form__select {
-webkit-appearance: none; /*autoprefixer*/
appearance: none;
background-image: url("scss/vendor/fontawesome/svgs/light/chevron-down.svg");
background-position-x: 98%;
background-position-y: center;
background-repeat: no-repeat;
background-size: 3rem;
}
@MadMikeyB
MadMikeyB / INSTALL-SHOPWARE-SIX.md
Last active June 20, 2024 13:11
Shopware 6 - Laravel Valet Driver

Install Shopware 6 (For Development)

cd ~/sites
valet park
# clone shopware
git clone -b 6.1 https://github.com/shopware/development.git shopware
# change directory
cd shopware
# install dependencies
@MadMikeyB
MadMikeyB / select.html
Created January 20, 2020 09:46
List of ISO 3166 country codes in <select> element
<select id="country" name="country" class="form__select">
<option value="ABW">Aruba</option>
<option value="AFG">Afghanistan</option>
<option value="AGO">Angola</option>
<option value="AIA">Anguilla</option>
<option value="ALA">Åland Islands</option>
<option value="ALB">Albania</option>
<option value="AND">Andorra</option>
<option value="ARE">United Arab Emirates</option>
<option value="ARG">Argentina</option>
@MadMikeyB
MadMikeyB / csv-to-array.php
Created March 2, 2020 11:00
Create an array from a CSV with headers as array keys.
<?php
if ( (isset($_POST['submit'])) && (!empty($_POST['submit'])) && (! empty($_FILES['csv_upload']['name'])) ):
/**
* Map CSV items to rows.
* @see php.net/array_map
* @see php.net/file
*/
$rows = array_map('str_getcsv', file($_FILES['csv_upload']['tmp_name']));