Skip to content

Instantly share code, notes, and snippets.

@guyfedwards
guyfedwards / PHP: casset img URL
Last active December 24, 2015 01:59
casset img
<?php echo Casset::img('test.jpg', 'alt text', array('width' => 200)); ?>
<?php echo Lang::get('my_account') ?>
<?= \Uri::create('assets/img/preloaders/large-search-preloader.gif');?>
export FUEL_ENV=production
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@guyfedwards
guyfedwards / OSX: Xampp fix
Created January 28, 2014 21:57
OSX: Xampp fix
sudu su
ps aux | grep mysql
kill -9 [process id]
background: #6cab26;
background-image: url(IMAGE_URL); /* fallback */
background-image: url(IMAGE_URL), -webkit-gradient(linear, left top, left bottom, from(#6cab26), to(#6ceb86)); /* Saf4+, Chrome */
background-image: url(IMAGE_URL), -webkit-linear-gradient(top, #6cab26, #6ceb86); /* Chrome 10+, Saf5.1+ */
background-image: url(IMAGE_URL), -moz-linear-gradient(top, #6cab26, #6ceb86); /* FF3.6+ */
background-image: url(IMAGE_URL), -ms-linear-gradient(top, #6cab26, #6ceb86); /* IE10 */
background-image: url(IMAGE_URL), -o-linear-gradient(top, #6cab26, #6ceb86); /* Opera 11.10+ */
background-image: url(IMAGE_URL), linear-gradient(top, #6cab26, #6ceb86); /* W3C */
<script id="list" type="text/x-handlebars-template">
{{#each items}}
<li>
{{name}}
{{#if items}}
<ul>
{{> list}}
</ul>
{{/if}}
</li>
@guyfedwards
guyfedwards / lodash-fp-documentation.md
Created January 19, 2018 11:16 — forked from jfmengels/lodash-fp-documentation.md
Generated docs for Lodash/fp. Help make them better at https://github.com/jfmengels/lodash-fp-docs