Skip to content

Instantly share code, notes, and snippets.

+ 'hasLivePosts' => [
+ 'facebook' => $this->hasSocialPostTemplatesWithDesignerStatus(TemplateType::FACEBOOK_POST),
+ 'linkedin' => $this->hasSocialPostTemplatesWithDesignerStatus(TemplateType::LINKEDIN_POST),
+ 'twitter' => $this->hasSocialPostTemplatesWithDesignerStatus(TemplateType::TWITTER_POST),
+ ],
+ 'hasLivePosts' => new LivePostCountView([
+ 'facebook' => $this->hasSocialPostTemplatesWithDesignerStatus(TemplateType::FACEBOOK_POST),
# Update and install basic dependencies
cd ~
sudo yum update -y
sudo yum install -y git
sudo yum install -y zlib-devel
sudo yum install -y ncurses-devel
server {
server_name ~^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$;
listen 81;
root /home/pm2/load-balancer;
index completed.html;
client_max_body_size 1k;
server_tokens off;
access_log off;
error_log off;
// http://stackoverflow.com/a/13419367/224004
describe('parseQuery', function() {
it('parses a simple query string that starts with a ?', function() {
expect(parseQuery('?a=z')).toEqual({'a': 'z'});
});
it('parses a simple query string that doesn\'t start with a ?', function() {
expect(parseQuery('a=z')).toEqual({'a': 'z'});
});
Operating system: Linux
0.0.0 Linux 3.8.0-39-generic #57~precise1-Ubuntu SMP Tue Apr 1 20:04:50 UTC 2014 x86_64
CPU: amd64
family 6 model 69 stepping 1
1 CPU
Crash reason: SIGSEGV
Crash address: 0x49
Thread 0 (crashed)