Skip to content

Instantly share code, notes, and snippets.

View asgrim's full-sized avatar
😈
Doing evil things, probably. Sorry...

James Titcumb asgrim

😈
Doing evil things, probably. Sorry...
View GitHub Profile
@asgrim
asgrim / trollface on skype
Created August 27, 2015 13:31
as it says
:):):)(bandit)(bandit)(bandit)(bandit)(bandit)(bandit)(bandit)(bandit)(bandit):):):)
:)(bandit)(bandit):)(swear)(swear)(swear)(swear)(swear)(swear):):)(bandit):):)
(bandit):)(swear)(swear)(swear):):):):)(swear)(swear)(swear):)(bandit):)
(bandit):)(swear)(bandit)(bandit):):):):)(bandit)(bandit)(bandit)(swear)(bandit):)
(bandit)(swear)(bandit)(bandit)(bandit)(bandit):):)(bandit)(bandit)(bandit)(bandit)(bandit)(swear)(bandit)
(bandit)(swear):):):)(emo):):):):):):):)(swear)(bandit)
(bandit)(swear):):)(emo):):):)(emo):):):)(bandit)(swear)(bandit)
(bandit)(swear):):):)(emo)(emo)(emo):):)(bandit)(bandit)(bandit)(swear)(bandit)
(bandit):)(bandit)(bandit):):):):)(bandit)(bandit)(bandit)(~)(bandit)(swear)(bandit)

Keybase proof

I hereby claim:

  • I am asgrim on github.
  • I am asgrim (https://keybase.io/asgrim) on keybase.
  • I have a public key whose fingerprint is 9561 1CC3 ABF3 B80A 0646 9529 A9FA 0974 0C21 7917

To claim this, I am signing this object:

<?php
// gumf at the top
class Foo extends AbstractActionController
{
public function someCommonLogic()
{
if ($something) {
return $this->redirect()->toRoute('someRoute');
}
@asgrim
asgrim / gist:3445d0977ca0d7839372
Created June 9, 2014 08:58
So apparently, this is what happens when you update Composer at the same moment as you're running a composer update...
update-deps:
[echo] Composer update
[exec] Warning: This development build of composer is over 30 days old. It is recommended to update it by running "/usr/local/bin/composer self-update" to get the latest version.
[exec] Loading composer repositories with package information
[exec] Updating dependencies (including require-dev)
[exec] e)
[exec] {
[exec] $this->addReason($rule->getId(), array(
[exec] 'rule' => $rule,
[exec] 'job' => $rule->getJob(),
@media (min-width: 1100px) {
.site-header {
min-width: 230px;
min-width: 23rem;
width: 30%;
padding-left: 5%;
padding-top: 3rem;
position: fixed;
float: left;
max-width: 520px; /* <--- this should do the job :) */
<?php
$flockHandle = fopen('/tmp/blah.lock', 'w');
if (!flock($flockHandle, LOCK_EX | LOCK_NB))
{
echo "Cannot get lock.";
die();
}
// do something
@asgrim
asgrim / .etc.opt.chrome.policies.managed.show_modal_dialog_policy.json
Created September 8, 2014 10:19
Temporary fix for Chrome removing showModalDialog (breaking OWA)
{
"EnableDeprecatedWebPlatformFeatures": ["ShowModalDialog_EffectiveUntil20150430"]
}
@asgrim
asgrim / .gitignore
Last active August 29, 2015 14:14
My stack interpreter from Cute Little Interpreters tutorial at phpbnl15
vendor
@asgrim
asgrim / blah.php
Last active August 29, 2015 14:14
function foo($value)
{
return ['hello', $value];
}
#include <iostream>
using namespace std;
int main()
{
int v;
int *ptr = &v;
*ptr = 15;