Skip to content

Instantly share code, notes, and snippets.

<html><head>
<meta charset="utf-8">
<title>Full page screen catpure</title>
<!-- there are rendering bugs when styles aren't inline... -->
<style>
body {
font: normal 12px/16px helvetica,aria,sans-serif;
}
div,p { margin: 0; padding: 0; }
@randomdrake
randomdrake / gist:a2fb46409e62de7fd9ce
Last active August 29, 2015 14:00
Bootstrap 3 SASS Mixins to Make Life Easier
// From https://gist.github.com/peschee/5734414
// Modified for current version of bootstrap and added to by @randomdrake
@mixin respond-to($media) {
/* Landscape phones and down */
@if $media == phone {
@media (max-width: 480px) { @content; }
}
/* Non-phone */
@else if $media == non-phone {
@media (min-width: 481px) { @content; }
git:(master) ✗ gulp
[gulp] Using file /Users/randomdrake/Sites/Goldmine/gulpfile.js
[gulp] Working directory changed to /Users/randomdrake/Sites/Goldmine
[gulp] Live reload server listening on: 35729
[gulp] Running 'css'...
[gulp] Finished 'css' in 6.86 ms
[gulp] Running 'coffee'...
[gulp] Finished 'coffee' in 1.7 ms
[gulp] Running 'phpunit'...
[gulp] Finished 'phpunit' in 718 μs
@randomdrake
randomdrake / gulpfile.js
Last active January 25, 2016 11:38
My Current Gulp File for Making Development Awesome
// Our Gulp packages we want to use
var gulp = require('gulp'),
gutil = require('gulp-util'),
notify = require('gulp-notify'),
sass = require('gulp-ruby-sass'),
coffee = require('gulp-coffee'),
autoprefix = require('gulp-autoprefixer'),
phpunit = require('gulp-phpunit'),
rename = require('gulp-rename'),
liveReload = require('gulp-livereload');
{{ Form::open(['url' => '/tasks', 'class' => 'form']) }}
<div class="form-group {{ $errors->first('title', 'has-error') }}">
{{ Form::label('title', 'Title:', ['class' => 'control-label']) }}
{{ Form::text('title', null, ['class' => 'form-control']) }}
{{ $errors->first('title', '<span class=alert-danger>:message</span>') }}
</div>
<div class="form-group {{ $errors->first('body', 'has-error') }}">
{{ Form::label('body', 'Body:', ['class' => 'control-label' ]) }}
<?php
// This is a test.
$var = 'something';