Skip to content

Instantly share code, notes, and snippets.

View LeShadow's full-sized avatar
💭
¯\_(ツ)_/¯

Sebastiaan Provost LeShadow

💭
¯\_(ツ)_/¯
View GitHub Profile
#
# Cookbook Name:: mysql
# Recipe:: default
#
# Copyright 2008-2011, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
=> default: [2014-07-10T13:24:34+00:00] INFO: Setting the run_list to ["recipe[apt]", "recipe[vagrant_1]", "recipe[mysql::server]", "recipe[extras]"] from JSON
==> default: [2014-07-10T13:24:34+00:00] INFO: Run List is [recipe[apt], recipe[vagrant_1], recipe[mysql::server], recipe[extras]]
#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QProcess>
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent),
ui(new Ui::MainWindow)
{
this->process = new QProcess(this);
ui->setupUi(this);
<?php
class Schedule extends Eloquent {
/**
* The database table used by the model.
*
* @var string
*/
protected $table = 'schedule';
@LeShadow
LeShadow / gist:9457610
Created March 10, 2014 00:55
laravel baseController function to be able to pass on standard settings defined in an array to your view.
BaseController.php, add the following:
protected function show_view($view, $tempData="")
{
$settings = array('setting1'=>'value');
$data = array();
if($tempData != "")
{
$data['data'] = $tempData;
}
@LeShadow
LeShadow / Simple blade view
Created February 1, 2014 18:25
This is an example of a simple blade view
@section('content')
@if (count($sets) == 0)
<p>There are no sets defined yet!</p>
@else
@foreach ($sets as $set)
<p>{{ $set->name }}</p>
@endforeach
@endif
@stop