Skip to content

Instantly share code, notes, and snippets.

💭
Delivering Giblets

Andrew Howden andrewhowdencom

💭
Delivering Giblets
Block or report user

Report or block andrewhowdencom

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View require.html
<!-- SUPER HACKY FAST WRITEUP -->
<!-- This does nothing -->
<script data-main="path/main.js" />
<!-- Not so good, as it blocks DOM -->
<script type="text/javascript" src="require.js" />
<script type="text/javascript" src="path/main.js" />
<!-- Not so good, as main.js may include require(['foo', 'bar'], function(f, b) {}); which has no meaning outside require.js -->
View factory.js
/**
* Copyright (c) 2015 littleman.co
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
@andrewhowdencom
andrewhowdencom / setcookie.php
Last active Aug 29, 2015
Nginx alpha batch cookie bug
View setcookie.php
<?php
/**
* This works fine without the http2 directive. However, if the http2 directive is enabled, all cookies after
* the first cookie are lost.
*
* Working | listen: 443 ssl;
* Broken | listen: 443 ssl http2;
*/
// Set three cookies
View minimal monolog attachment.
<?php
/**
* Howdenio Monolog extension
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
You can’t perform that action at this time.