This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ '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), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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'}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |