This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// I can achieve a background image with a semi-transparent overlay by using multiple CSS backgrounds... | |
.cover { | |
background: linear-gradient(rgba(255, 0, 0, 0.45), rgba(255, 0, 0, 0.45)), url(image.jpg); | |
} | |
// This works fine, but I'm specifying what image to use on my covers like this: | |
<div class="cover" style="background-image: url('<?php the_field('homepage_cover_image'); ?>');"> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function filterWorkRequests() | |
{ | |
if ($this->workIsInappropriate()) { | |
return $this->absolutelyNot(); | |
} | |
if ($this->workIsNeutral()) { | |
return $this->possibly(); | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[supervisord] | |
nodaemon=true | |
[program:php5-fpm] | |
command=/usr/sbin/php5-fpm --nodaemonize | |
[program:nginx] | |
command=/usr/sbin/nginx -g "daemon off;" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
MAINTAINER "Chris White" <chris@cwhite.me> | |
# Use bash instead of sh | |
RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
# Install required packages | |
RUN apt-get update | |
RUN apt-get install -y curl git nginx php5-cli php5-fpm php5-mysql php5-mcrypt php5-curl php5-gd supervisor | |
RUN php5enmod mcrypt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Lykit\Transformers; | |
use League\Fractal\TransformerAbstract; | |
use Lykit\Models\User; | |
use Tymon\JWTAuth\Facades\JWTAuth; | |
class UserTransformer extends TransformerAbstract | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $f=$b=0;foreach(str_split(file('i')[0])as$p=>$d)($f-=$d=='('?-1:1)>=0|$b?:$b=$p+1;echo"$f $b"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $b=99;$d=" bottles of beer";$c="$d on the wall";$f="file";do{echo "$b$c, $b$d.\n";if(!--$b){echo $f('http://is.gd/sKW90b')[0];$b=99;}else echo $f('http://is.gd/2m5PYo')[0];echo ", $b$c.\n\n";}while($b<99); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php $b=99;$d=" bottles of beer";$c=$d." on the wall";$f="file";do{echo $b.$c.", ".$b.$d.".\n";if(--$b==0){echo $f('http://is.gd/sKW90b')[0];$b=99;}else echo $f('http://is.gd/2m5PYo')[0];echo ", ".$b.$c.".\n\n";}while($b<99); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Take one down and pass it around |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Go to the store and buy some more |