Skip to content

Instantly share code, notes, and snippets.

View juukie's full-sized avatar

Jürgen juukie

  • Active Creations
  • Netherlands
View GitHub Profile
// Media Queries in Sass 3.2
//
// These mixins make media queries a breeze with Sass.
// The media queries from mobile up until desktop all
// trigger at different points along the way
//
// And important point to remember is that and width
// over the portrait width is considered to be part of the
// landscape width. This allows us to capture widths of devices
// that might not fit the dimensions exactly. This means the break
<?php
trait Gettable {
/**
* Retrieve private attributes.
* Attributes should be protected
* so they cannot be *set* arbitrarily.
* This allows us to *get* them as if they
* were public.
<?php
/*
|--------------------------------------------------------------------------
| Other Routes
|--------------------------------------------------------------------------
|
| Routes for the sub-domains
|
*/
@juukie
juukie / gist:8327427
Created January 9, 2014 00:40
Little Laravel / Symfony Translation playground
// app/lang/en/global.php
return array(
'apples' => '{0} Zero apples|one: Single apple|more: :count apples',
'beers' => '{0} Drama|Single beer|more: Cheers',
'soup' => '[-Inf,0] No soup|{1,2,5} One, two or five soups|[3,Inf] The amount of soup is :count',
);