Skip to content

Instantly share code, notes, and snippets.

View oscaralexander's full-sized avatar

Alexander Griffioen oscaralexander

View GitHub Profile
@charset 'utf-8';
@font-face {
font-family: 'Graphik';
font-style: normal;
font-weight: 400;
src: url('https://cdn4.tnwcdn.com/assets/fonts/graphik/graphik-regular.woff2') format('woff2'),
url('https://cdn4.tnwcdn.com/assets/fonts/graphik/graphik-regular.woff') format('woff');
}
@font-face {
font-family: 'Graphik';
font-style: normal;
font-weight: 400;
src: url('https://cdn4.tnwcdn.com/assets/fonts/graphik/graphik-regular.woff') format('woff'),
url('https://cdn4.tnwcdn.com/assets/fonts/graphik/graphik-regular.woff2') format('woff2');
}
@font-face {
font-family: 'Graphik';
Array
(
[m1162740602] => Array
(
[attributes] => Array
(
[0] => 2012
[1] => 127.631 km
)
@oscaralexander
oscaralexander / get.php
Last active March 9, 2017 14:33
Get a value from an associative array or object, or return default.
<?php
/**
* Get a value from an associative array or object, or return default.
*
* @param string $key Dot-separated path to key you wish to extract.
* @param array|object $hash Associative array or object.
* @param mixed $default Value to return if key is non-existent.
* @param bool $is_int Only return key if value is integer.
* @return mixed