Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View assembledadam's full-sized avatar
⚒️
Working on Claimer.com

Adam McCann assembledadam

⚒️
Working on Claimer.com
View GitHub Profile
Hi, welcome to TalkTalk. One of our agents will be with you shortly.
Changes to your account will only be made when confirmed in this chat. If for any reason your chat ends before receiving confirmation, please chat back.
This conversation will be recorded for training and monitoring purposes and may be used in the future to help us deal with your queries quicker. To find out how we will use your data, visit talktalk.co.uk/privacy.
Info at 11:18, May 16:
You are now through to Jesusa from Technical Support.
Jesusa at 11:18, May 16:
Good morning, Adam. I hope you're well today. How can I help?
@assembledadam
assembledadam / getenv.sh
Last active April 25, 2018 23:41
Return name of elasticbeanstalk environment based on keyword
#!/usr/bin/env bash
REQ_ENV=$1
if [ $# -ne 1 ]
then
echo "Autodetects the name of the desired elasticbeanstalk environment based on a keyword (e.g. staging)."
echo " "
echo " Usage: getenv.sh [staging|prod]"
exit 1
fi
@assembledadam
assembledadam / convert.md
Last active July 24, 2020 21:38
Function to convert snake case to camelCase (ES6+)
/**
 * Change string from snake case to camelCase
 *
 * @param {string} str Input snake case string
 * @return {string} Output camel case string
 */
function toCamelCase(str) {
  str = str.replace(/[-_\s]+(.)?/g, (match, ch) => // eslint-disable-line no-param-reassign
 (ch ? ch.toUpperCase() : ''),
2016-02-27T00:32:16Z [CRITICAL] ====== STACKTRACE ======
2016-02-27 00:32:16.22684745 +0000 UTC
goroutine 13 [running]:
github.com/aws/amazon-ecs-agent/agent/sighandlers.func·001()
/go/src/github.com/aws/amazon-ecs-agent/agent/sighandlers/debug_handler.go:33 +0xcc
created by github.com/aws/amazon-ecs-agent/agent/sighandlers.StartDebugHandler
/go/src/github.com/aws/amazon-ecs-agent/agent/sighandlers/debug_handler.go:38 +0x18e
goroutine 1 [select, 19 minutes]:
github.com/aws/amazon-ecs-agent/agent/acs/handler.func·006(0x0, 0x0)
@assembledadam
assembledadam / emberaTestCase.php
Created December 18, 2015 11:19
Embera bug testcase
<?php
$text = "For anyone that's unaware, 2003's Mario & Luigi: Superstar Saga is one of the best Mario games you've never played. The franchise as a whole has been consistently entertaining too, which makes its relatively quiet buzz every time a new one is released slightly confusing. Its fan base has remained solid and, to a point, niche rather than grow into an excited mob. It's perhaps with this in mind that Mario & Luigi: Paper Jam Bros. has looked to evolve without ignoring its roots.
For those not aware, the DS (and now 3DS) run of games have always focused around the two brothers and how you as the player can make them work together. Battles are turn-based and every action from puzzling to platforming involves both Mario and Luigi. You even control how they jump independently.
The key to its success has been how well Nintendo has made this work over the years. As seamless as it is satisfying, it gives the series a unique feel whose only real comparison is Paper Mario. Hence why the two have now fin
content
---------------
| id | name |
---------------
| 1 | news |
| 2 | review |
---------------
games
-------------
// get the ID (integer) of the site I want
$site = $em->createQuery('SELECT s.id FROM Entity\Site s WHERE s.name = ?1')->setParameter(1, 'My Site')->getResult();
// get the site reference based on the ID
$obj->setJoiningSite($em->getReference('Entity\Site', $site[0]['id']));`