Skip to content

Instantly share code, notes, and snippets.

@moneya
moneya / 4sq-tutorial skeleton HTML
Created July 28, 2017 07:16 — forked from colinfwren/4sq-tutorial skeleton HTML
A skeleton HTML template for my foursquare tutorial
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8"/>
<title>Awesome Foursquare app</title>
<style>
body{
background-color: white;
font-size: 100%;
font-family: helvetica, arial, sans-serif;
}
@moneya
moneya / index.html
Created November 24, 2017 07:21 — forked from anonymous/index.html
Testimonials Slider for Computer Doctor
<link href='https://fonts.googleapis.com/css?family=Ubuntu:400,700' rel='stylesheet' type='text/css'>
<div class="owl-carousel testimonial-carousel">
<!-- Start Testimonials -->
<!-- Testimonial 1 -->
<div class="single-testimonial">
<div class="testimonials-wrapper">
<h4>Habitasse lobortis cum malesuada nullam cras odio venenatis nisl at turpis sem in porta consequat massa a mus massa nascetur elit vestibulum a.</h4>
<div class="testimonials-blob"></div>
<div class="testimonials-img"><img src="https://randomuser.me/api/portraits/women/21.jpg"></div>
@moneya
moneya / bootstrap-form.css
Created January 2, 2018 07:06 — forked from sultann/bootstrap-form.css
Bootstrap 3.3.7 form elements css only
.plvr fieldset {
padding: 0;
margin: 0;
border: 0;
min-width: 0;
}
.plvr legend {
display: block;
width: 100%;
@moneya
moneya / wp-autopopulate-taxonomy
Created January 29, 2018 09:16 — forked from brenna/wp-autopopulate-taxonomy
WordPress function to auto-populate a taxonomy with a custom post type's entries.
function custom_tax_init(){
//set some options for our new custom taxonomy
$args = array(
'label' => __( 'My Custom Taxonomy' ),
'hierarchical' => true,
'capabilities' => array(
// allow anyone editing posts to assign terms
'assign_terms' => 'edit_posts',
/* but you probably don't want anyone
@moneya
moneya / Handler.php
Created February 14, 2018 10:47 — forked from collegeman/Handler.php
Boilerplated files for Lumen-based WordPress plugins
<?php
namespace App\Exceptions;
use Exception;
use Illuminate\Validation\ValidationException;
use Illuminate\Auth\Access\AuthorizationException;
use Illuminate\Database\Eloquent\ModelNotFoundException;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Laravel\Lumen\Exceptions\Handler as ExceptionHandler;
@moneya
moneya / awesm.md
Created February 14, 2018 22:09 — forked from matula/awesm.md
Awesome PHP stuff in one Gist
@moneya
moneya / key.md
Created January 8, 2019 14:23
FREE IntelliJ IDEA key 2018.2!

READ or DIE

  • put 0.0.0.0 account.jetbrains.com into your hosts file (C:\Windows\System32\drivers\etc\hosts or /etc/hosts)
  • for GayOS macOS read that
  • use the key below
K71U8DBPNE-eyJsaWNlbnNlSWQiOiJLNzFVOERCUE5FIiwibGljZW5zZWVOYW1lIjoibGFuIHl1IiwiYXNzaWduZWVOYW1lIjoiIiwiYXNzaWduZWVFbWFpbCI6IiIsImxpY2Vuc2VSZXN0cmljdGlvbiI6IkZvciBlZHVjYXRpb25hbCB1c2Ugb25seSIsImNoZWNrQ29uY3VycmVudFVzZSI6ZmFsc2UsInByb2R1Y3RzIjpbeyJjb2RlIjoiSUkiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJSUzAiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJXUyIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IlJEIiwicGFpZFVwVG8iOiIyMDE5LTA1LTA0In0seyJjb2RlIjoiUkMiLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJEQyIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IkRCIiwicGFpZFVwVG8iOiIyMDE5LTA1LTA0In0seyJjb2RlIjoiUk0iLCJwYWlkVXBUbyI6IjIwMTktMDUtMDQifSx7ImNvZGUiOiJETSIsInBhaWRVcFRvIjoiMjAxOS0wNS0wNCJ9LHsiY29kZSI6IkFDIiwicGFpZFVwVG8iOiIy
@moneya
moneya / bootstrap4.blade.php
Created March 5, 2019 16:32 — forked from the94air/bootstrap4.blade.php
Bootstrap 4 voyager menu template
@php
if (Voyager::translatable($items)) {
$items = $items->load('translations');
}
@endphp
<ul class="navbar-nav ml-auto">
@foreach($items as $item)
#Blade
<form id="delete-company" action="{{ route('company.destroy', $company->id) }}" method="post">
{{csrf_field()}}
{{method_field('delete')}}
<button type="button" class="btn btn-xs btn-primary" data-toggle="modal" data-target="#agent{{$company->id}}">Edit</button>
<button type="button" class="btn btn-danger btn-xs" onclick="confirmDelete('delete-company')">delete</button>
</form>
@moneya
moneya / Instructions.md
Created May 14, 2019 16:38 — forked from msurguy/Instructions.md
Daily reports in 5 minutes with Laravel and 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: