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
#Install mysql 5.7.16 | |
\curl -sSL https://raw.githubusercontent.com/codeship/scripts/master/packages/mysql-5.7.sh | bash -s | |
export PATH=/home/rof/mysql-5.7.17/bin:$PATH | |
# Optional: Set the php version | |
phpenv local 7.1 | |
mkdir -p ./bootstrap/cache | |
mysql --defaults-file="/home/rof/mysql-5.7.17/my.cnf" -u "${MYSQL_USER}" -p"${MYSQL_PASSWORD}" -e "create database codeship"; |
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 math import floor | |
class Heap: | |
def __init__(self): | |
self.nodes = list() | |
self.heap_size = -1 | |
def __left(self, i): | |
return i * 2 + 1 |
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
body { | |
white-space: pre; | |
font-family: monospace; | |
font-size: 1.2em; /* I like big fonts, if you don't remove this line */ | |
background: #272822; | |
color: #f8f8f2; | |
} | |
.property { | |
font-weight: auto; |
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
networking |