Instantly share code, notes, and snippets.

View navigation.php
return [
'Installation' => [
'Installation' => 'installation',
'Configuration' => 'configuration',
'Colors' => 'colors',
'Responsive Design' => 'responsive-design',
'Adding New Utilities' => 'adding-new-utilities',
'Extracting Components' => 'extracting-components',

Hacktoberfest logo

Every year Digital Ocean runs Hacktoberfest, which is a fun program that rewards developers for making pull requests to open source software. This year you could get stickers and a free t-shirt for participating!

Looking for some code you can write on Laravel-related applications for Hacktoberfest? Here are a few issues we have open. :)


  • Test the automatic-split tester called "Collector" to see if we can move to doing automatic splits per #2


function slugify {
echo "$1" | iconv -t ascii//TRANSLIT | sed -E s/[^a-zA-Z0-9]+/-/g | sed -E s/^-+\|-+$//g | tr A-Z a-z
# -------------------------------
echo Creating a new blog post.

Keybase proof

I hereby claim:

  • I am mattstauffer on github.
  • I am mattstauffer ( on keybase.
  • I have a public key whose fingerprint is AD6F 7CE7 553D A9C7 89A6 07C9 ED60 D8FD 9359 6537

To claim this, I am signing this object:


Ed Finkler (Funkatron) asked me, in response to my recent article introducing Statamic, whether you could change Statamic's settings to serve from something other than the local disk.

I checked with Jason & Jack at Statamic, and they told me three things:

  1. Statamic already has the ability (if configured a certain way) to compile all the files down to HTML. It's possible (I don't know how yet, but I know it is) to configure Nginx to serve those files directly.
  2. Statamic v1 has a static site generator built-in, and v2 will get one soon.
  3. Since Statamic's .env file effects the behavior of its Laravel core, you can change the cache driver that your Statamic app is using just like you would in any Laravel app. Just add a CACHE_DRIVER key in .env file and set it to any of the options: 'file', the default; 'database'; 'memcached'; 'redis';
View app.js
new Vue({
el: '#assignment-creator',
data: {
trainee: {}
ready: function () {
this.trainee = TrainRemote.trainee;
View env.helper.php
* Gets the value of an environment variable. Supports boolean, empty and null.
* @param string $key
* @param mixed $default
* @return mixed
function env($key, $default = null)
View gist:a2376484ea2e19325e3c

(just a test, this is written by @rtablada not me)

After working with a lot of node modules I'm a bit angered by the fact that for a lot of these packages you have to pass around and keep track of a single shared instance throughout your application.

This works fine for small proxy servers and apps where the whole thing fits into a single app.js or maybe a handful of route files. But as things start to grow this model really breaks down and becomes cumbersome.

Just think about a resource file for app/resources/users.js which needs the current Redis or RabbitMQ connection to publish events like user registration, a database connection to persist things, and probably a instance because it's Real Time: it's so hot right now! If you export a function that allows these to be injected, your resource has boilerplate.


It's great that Gistlog makes it easy to write Gist-powered, Markdown-formatted, blog posts. But what if you want to use it as your entire blogging platform? We're working on it, and here's a first step: user landing pages.

Any Github user that has any public gists that contain a file named gistlog.yml now have a landing page on Gistlog at So, since I have (more than) one, you can view my landing page at It's very simple right now, but we have a ton of ideas to improve it over time. So go check it out.

How do you get your own Gistlog landing page?

  1. Create a new Gistlog Gist (or edit an old one)
  2. Create two files: one for the markdown (I recommend for the name) and one for the Gistlog settings (which must be named gistlog.yml)
  3. Write your blog post in
  4. Since there are no actual settings being parsed from gistlog.yml yet, just create it with the fol

CHECK ME OUT I'm writing blog posts in Markdown sucka! IN MARKDOWN IN A GIST OMG I AM SO EXCITE

Maybe I should fill this post up with cat GIFs just in case anyone ever visits it. Huh? Yah?