Skip to content

Instantly share code, notes, and snippets.

View ivanvermeyen's full-sized avatar
🇧🇪
Never stop learning!

Ivan Vermeyen ivanvermeyen

🇧🇪
Never stop learning!
View GitHub Profile

How to remove hide the <select> arrow in Firefox using -moz-appearance:none;

tl;dr (or, the fix)

  1. Set -moz-appearance to none. This will "reset" the styling of the element;
  2. Set text-indent to 0.01px. This will "push" the text a tiny bit[1] to the right;
  3. Set text-overflow to '' (an empty string). This will change anything that extends beyond the element's width to... nothing - and this includes the infamous arrow!

Firefox select element with no arrow

@ivanvermeyen
ivanvermeyen / UUID.php
Last active August 29, 2015 14:12
Generate a Unique ID
<?php
class UUID {
/**
* @var
*/
public $prefix;
/**
@ivanvermeyen
ivanvermeyen / .htaccess
Created July 25, 2015 12:58
Enable file uploads
<IfModule mod_suphp.c>
suphp_configpath /path/to/custom/php.ini
</IfModule>
@ivanvermeyen
ivanvermeyen / tenant-middleware
Created January 17, 2016 13:43 — forked from taylorotwell/tenant-middleware
Magical tenant middleware thing
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Auth\Access\AuthorizationException;
class VerifyTenants
{
/**
@ivanvermeyen
ivanvermeyen / BlogController.php
Created March 27, 2016 15:19 — forked from tobysteward/BlogController.php
Laravel AJAX Pagination with JQuery
<?php
class BlogController extends Controller
{
/**
* Posts
*
* @return void
*/
public function showPosts()
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
class SomeRequest extends FormRequest
{
/**
* Validate conditional rules.
*
<?php
/**
* Generate a secure token.
*
* @url http://stackoverflow.com/questions/18910814/best-practice-to-generate-random-token-for-forgot-password
*/
function generateToken($length = 40)
{
return bin2hex(random_bytes($length));
@ivanvermeyen
ivanvermeyen / LocalValetDriver.php
Created June 30, 2017 16:04
Custom Valet Driver (place in project root)
<?php
class LocalValetDriver extends ValetDriver
{
private $site_folder = '/public';
/**
* Determine if the driver serves the request.
*
@ivanvermeyen
ivanvermeyen / Vessel.md
Last active December 19, 2018 11:32
Docker Project Setup with Vessel
@ivanvermeyen
ivanvermeyen / webpack.mix.js
Created March 19, 2019 17:51 — forked from calebporzio/webpack.mix.js
A webpack.mix.js file for writing NPM packages the way you write JS in a Laravel app.
let mix = require('laravel-mix');
mix.js('src/index.js', 'dist/foo.js').sourceMaps();
mix.webpackConfig({
output: {
libraryTarget: 'umd',
}
})