Skip to content

Instantly share code, notes, and snippets.

View djekl's full-sized avatar
:octocat:
Working from home

Alan Wynn djekl

:octocat:
Working from home
View GitHub Profile

Bootstrap 3 Slider for new site

This is still a work in progress, hoping to get this finished tonight

A Pen by Alan Wynn on CodePen.

License.

Keybase proof

I hereby claim:

  • I am djekl on github.
  • I am djekl (https://keybase.io/djekl) on keybase.
  • I have a public key whose fingerprint is 928E 4816 1767 01CF 726B 9FD1 96DD EEDA 9DCA 2ECF

To claim this, I am signing this object:

Did I hear you wanted AJAX charts instead of hard coded? You got it.

Follow this guide to integrate bar chart reports into your Laravel application with AJAX. Reports like the following come with this guide:

  • Total number of Orders by day
  • Total number of Users subscribed by day
  • etc

The library used for the charts is: http://www.oesmith.co.uk/morris.js/

Follow this guide to integrate bar chart reports into your Laravel application. Reports like the following come with this guide:

  • Total number of Orders by day
  • Total number of Users subscribed by day
  • etc

The library used for the charts is: http://www.oesmith.co.uk/morris.js/

First put this into your page that will have the reports (in the Blade view) to include Morris library:

@djekl
djekl / valid_nhs_number.php
Created June 26, 2014 08:37
Simple function to check for a valid NHS number (with example usage)
<?php
// start with our test NHS number
$nhs_no = '401 023 2137';
function validNhsNumber($nhs_no)
{
// save the input number for the exception
$input_nhs_no = $nhs_no;
@djekl
djekl / sm-annotated.js
Created July 1, 2014 16:31 — forked from hdragomir/sm-annotated.html
The deferred font loading logic for Smashing Magazine. http://www.smashingmagazine.com/
(function() {
"use strict";
// once cached, the css file is stored on the client forever unless
// the URL below is changed. Any change will invalidate the cache
var css_href = './index_files/web-fonts.css';
// a simple event handler wrapper
function on(el, ev, callback) {
if (el.addEventListener) {
<?php
namespace Acme\Html;
use Illuminate\Html\FormBuilder as IlluminateFormBuilder;
class FormBuilder extends IlluminateFormBuilder {
/**
* An array containing the currently opened form groups.
Verifying that +djekl is my Bitcoin username. You can send me #bitcoin here: https://onename.io/djekl

Ubuntu 14.04+ 32bit (ubuntu-mate.org)

Simple steps for installing required tools after fresh Ubuntu install.
Or use installer and uninstaller scripts, they won't break anythng!!

Included

  • Licensed Sublime Text 3 (build 3065)
  • Nginx 1.6.2 (stable version)
  • PHP 5.6.3 (stable version)
  • NVM v0.20.0 (for Node.js and NPM)
# Tail Laravel and Webserver (NGINX & Apache 2) log files
# Compatible with Laravel 4 & 5
#
alias tl="ls -d /var/log/nginx/* /var/log/apache2/* storage/logs/* app/storage/logs/* storage/laravel.log | grep -v 'gz$' | grep -v '1$' | xargs tail -f"