Skip to content

Instantly share code, notes, and snippets.

View alnutile's full-sized avatar

Alfred Nutile alnutile

View GitHub Profile
<div class="form-group">
<div class="form-group">
<label for="name">Email</label>
<input markdown="1" type="text" name="email" class="form-control" value="@if($user->email){{ $user->email }}@endif"/>
</div>
</div>
@include('feature_flags::twitter_name_input')
<div class="form-group">
@alnutile
alnutile / Feature.php
Created November 2, 2015 12:34
example feature for test
<?php
/**
* @Then I can add a new Meta Data type with values and validations
*/
public function iCanAddANewMetaDataTypeWithValuesAndValidations()
{
try
{
//Name Version
<!DOCTYPE html>
<html ng-app="app">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Fop</title>
@include('shared.assets_css')
@alnutile
alnutile / print.js
Created July 27, 2015 18:51
Print the page this is influenced by the library that Laravel made for Cashier.
// PhantomJS Screenshot Capture...
var page = require('webpage').create();
//page.viewportSize = {width: 600, height: 600};
page.paperSize = {format: 'A4', orientation: 'portrait', margin: '1cm'};
page.open('http://startup-scorecard.com/core/functions/answers_pdf4.php', function() {
setTimeout(function() {
page.render('output.pdf');
phantom.exit()
@alnutile
alnutile / reviewer_uams_index.json
Created July 6, 2015 11:18
Maintainer View: User Interface to manage reviewers
{
"data":
{
"countries": [ { "id": "foo", "name": "bar" }, { "id": "foo", "name": "bar" } ],
"products": [ { "id": "foo", "name": "bar" }, { "id": "foo", "name": "bar" } ],
"review_type": [ { "id": "foo", "name": "bar" }, { "id": "foo", "name": "bar" } ],
"doc_type": [ { "id": "foo", "name": "bar" }, { "id": "foo", "name": "bar" } ],
"sub_type": [ { "id": "foo", "name": "bar" }, { "id": "foo", "name": "bar" } ],
"classifications": [ { "id": "foo", "name": "bar" }, { "id": "foo", "name": "bar" } ],
"audience": [ { "id": "foo", "name": "bar" }, { "id": "foo", "name": "bar" } ],
@alnutile
alnutile / composer.json
Created June 29, 2015 01:24
Starting Demo Composer.json
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"type": "project",
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.1.*",
"cviebrock/eloquent-sluggable": ">=3.0.0-beta"
@alnutile
alnutile / Plans.php
Last active September 20, 2017 14:21
Theme files
<?php
//app/Plans.php
namespace App;
class Plans {
public static $ONE_SHOW_A_MONTH = '1SHOW';
public static $TWO_SHOWS_A_MONTH = '2SHOWS';
public static $FAN = 'FAN';
<?php
/**
* @Then /^I fill in wysiwyg on field "([^"]*)" with "([^"]*)"$/
*/
public function iFillInWysiwygOnFieldWith($arg, $arg2)
{
$this->getSession()->executeScript("CKEDITOR.instances.$arg.setData(\"$arg2\");");
}
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
@alnutile
alnutile / ComparisonsTableSeeder.php
Created May 1, 2015 14:56
Events to listen to and steps
<?php
// Composer: "fzaninotto/faker": "v1.3.0"
use Approve\Comparisons\Comparison;
use Faker\Factory as Faker;
class ComparisonsTableSeeder extends BaseSeeder {
public $states = [
'Error',