Skip to content

Instantly share code, notes, and snippets.

View davidhemphill's full-sized avatar
☠️
WIP

Hemp davidhemphill

☠️
WIP
View GitHub Profile
<?
// <readme>
/*
This is a lite version of Olark's and Intercom's functionality (without the chat part).
It lets you get feedback from users on your site to your email.
And you won't have to rely on another company anymore!
#killyourdependencies
@davidhemphill
davidhemphill / timezone.php
Created October 26, 2016 05:44 — forked from xeoncross/timezone.php
The perfect TimeZone selectbox list for PHP 5.3+
<?php
$regions = array(
'Africa' => DateTimeZone::AFRICA,
'America' => DateTimeZone::AMERICA,
'Antarctica' => DateTimeZone::ANTARCTICA,
'Aisa' => DateTimeZone::ASIA,
'Atlantic' => DateTimeZone::ATLANTIC,
'Europe' => DateTimeZone::EUROPE,
'Indian' => DateTimeZone::INDIAN,
'Pacific' => DateTimeZone::PACIFIC
<?php
if (!function_exists('timezone_list')) {
function timezone_list()
{
static $regions = [
DateTimeZone::AFRICA,
DateTimeZone::AMERICA,
DateTimeZone::ANTARCTICA,
DateTimeZone::ASIA,
<?
public function show($id)
{
return User::findOrFail($id)
->present(ApiPresenter::class);
}
@davidhemphill
davidhemphill / jsbin.burut.html
Created August 17, 2016 15:43 — forked from mojaray2k/jsbin.burut.html
CSS only custom-styled select Todd Parker - Filament Group Inc. How this works: This styles a native select consistently cross-platform with only minimal CSS. The native select is then styled so it is essentially invisible (no appearance, border, bg) leaving only the select's text visible. There is a wrapper around the select that has the majori…
<html>
<head>
<title>Select styles with CSS only</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
background-color: #fff;
font-family: helvetica, sans-serif;
margin: 4% 10%
}
<?php
use Illuminate\Foundation\Testing\WithoutMiddleware;
use Illuminate\Foundation\Testing\DatabaseMigrations;
class RegistrationControllerTest extends TestCase
{
use DatabaseMigrations;
public function setUpTeam()
<?php
namespace App\Http\Controller;
use App\User;
use App\Users\UserPresenter;
class UserController
{
@davidhemphill
davidhemphill / _colors.scss
Created July 4, 2016 04:15
Marvelapp.com pallete in Beard 2.0
@include new-color('1', #1FB6FF);
@include new-color('1--light', #85D7FF);
@include new-color('1--dark', #009EEB);
@include new-color('2', #A389F4);
@include new-color('2--light', #7E5BEF);
@include new-color('2--dark', #592DEA);
@include new-color('3', #FF7CE5);
@include new-color('3--light', #FF49DB);
<?php
namespace App\Merge;
class Marge
{
protected $data = [];
public function setData($data)
{
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"laravel/framework": "5.1.*",
"ramsey/uuid": "~2.8",
"hashids/hashids": "1.0.5",