This file contains hidden or 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 python:2.7 | |
MAINTAINER Leeroy Ding <[email protected]> | |
EXPOSE 8080 | |
# Nodejs is required for npm, which will be used to install less | |
RUN apt-get update && apt-get install -y curl | |
RUN curl -sL https://deb.nodesource.com/setup | bash - | |
RUN apt-get update && apt-get install -y \ | |
nodejs libpq-dev libjpeg-dev ca-certificates python-openssl |
This file contains hidden or 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
test789 |
This file contains hidden or 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
constrain(iView, view, view.superview!) { i, v, s in | |
i.center == s.center | |
i.width == s.width / 2 | |
v.top == s.top | |
v.bottom == i.top | |
v.height == s.height / 4 | |
i.height == s.height / 2 | |
} |
This file contains hidden or 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
gtar -c somefolder | pv | lz4 -B4 | ssh example.com "lz4 -d | tar x" |
This file contains hidden or 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
# First style | |
if something is not None: # or whatever condition | |
big_block_of_code() | |
# Second style | |
if something is None: # or whatever condition | |
continue # or return None or whatever | |
big_block_of_code() |
This file contains hidden or 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
In file included from RequestGroupMan.cc:35: | |
In file included from ./RequestGroupMan.h:50: | |
./IndexedList.h:67:37: error: no type named 'size_type' in | |
'std::__1::__deque_iterator<std::__1::pair<std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::pair<unsigned | |
long long, aria2::SharedHandle<aria2::RequestGroup> >, std::__1::__tree_node<std::__1::pair<unsigned long long, | |
aria2::SharedHandle<aria2::RequestGroup> >, void *> *, long> >, aria2::SharedHandle<aria2::RequestGroup> >, | |
std::__1::pair<std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::pair<unsigned long long, | |
aria2::SharedHandle<aria2::RequestGroup> >, std::__1::__tree_node<std::__1::pair<unsigned long long, | |
aria2::SharedHandle<aria2::RequestGroup> >, void *> *, long> >, aria2::SharedHandle<aria2::RequestGroup> > *, | |
std::__1::pair<std::__1::__map_iterator<std::__1::__tree_iterator<std::__1::pair<unsigned long long, |