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
FROM atlassian/default-image:latest | |
RUN apt-get update -y | |
RUN apt-get install -y libqt4-dev libqtwebkit-dev |
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
FROM centos:6 | |
RUN yum update -y | |
RUN yum install epel-release -y | |
RUN yum install nginx -y | |
#=> Can not login via bash... | |
ENTRYPOINT /usr/sbin/nginx -g 'daemon off;' -c /etc/nginx/nginx.conf | |
EXPOSE 22 80 443 |
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
<?php | |
/** | |
* Class ViewCacheCleanerBehavior | |
*/ | |
class ViewCacheCleanerBehavior extends ModelBehavior { | |
/** | |
* @var array | |
*/ |
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
<?php | |
shell_exec('/path_to_deploy.sh/deploy.sh path_to_repo'); |
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
p = 4 | |
for i in 0...(1 << p) | |
stack = Array.new(p, 0) | |
for j in 0...p | |
stack[j] = 1 if i >> j & 1 != 0 | |
end | |
puts stack.join | |
end |
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
<?php | |
$attributeValues = array( | |
'color' => array('Red', 'White', 'Blue'), | |
'size' => array(1, 2, 3, 4), | |
'fabric' => array('Cloth', 'Silk') | |
); | |
class Cartesian | |
{ |
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
def get_max_length(grid, n) | |
max_length = 0 | |
for y in 0...n | |
length = 0 | |
for x in 0...n | |
if grid[y][x] == 1 | |
length += 1 | |
max_length = length if length > max_length | |
else |
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
def get_max_length(grid, n) | |
max_length = 0 | |
for y in 0...n | |
length = 0 | |
for x in 0...n | |
if grid[y][x] == 1 | |
length += 1 | |
max_length = length if length > max_length | |
else |