Instantly share code, notes, and snippets.

View Dockerfile
FROM ubuntu:16.04
RUN apt update
RUN apt install -y python-setuptools python-dev build-essential python-pip
RUN pip install --upgrade pip
RUN pip install tangent==0.1.8
CMD ["/bin/bash"]

PaddlePaddle Contributor License Agreement

In order to clarify the intellectual property license granted with Contributions from any person or entity, the open source project PaddlePaddle ("PaddlePaddle") must have a Contributor License Agreement (CLA) on file that has been signed by each Contributor, indicating agreement to the license terms below. This license is for your protection as a Contributor as well as the protection of PaddlePaddle and its users; it does not change your rights to use your own Contributions for any other purpose.

You accept and agree to the following terms and conditions for Your present and future Contributions submitted to PaddlePaddle. Except for the license granted herein to PaddlePaddle and recipients of software distributed by PaddlePaddle, You reserve all right, title, and interest in and to Your Contributions.

  1. Definitions. "You" (or "Your") shall mean the copyright owner or legal entity authorized by the copyright owner that is making this Agreement with PaddlePaddle
View clang-format@38.rb
class ClangFormatAT38 < Formula
desc "Formatting tools for C/C++/ObjC/Java/JavaScript/TypeScript"
homepage ""
url ""
sha256 "555b028e9ee0f6445ff8f949ea10e9cd8be0d084840e21fbbe1d31d51fc06e46"
bottle do
cellar :any_skip_relocation
sha256 "239146d2fd9e73963b0c1497df74f091a386f452a2f9276a65fd63c73b27ed63" => :high_sierra
sha256 "5608a169a7b3ceb15253c693e29108acf744a4ab39b5daa51e99fd95f9a8d444" => :sierra
// To build this program: g++ -std=c++11 -o bs
#include <iostream>
#include <set>
#include <string>
#include <functional>
#include <map>
#include <utility>
#include <algorithm>
View pulls.bash
if [[ $# -ne 0 ]]; then
> $file.pulls
View .emacs
(setq-default indent-tabs-mode nil)
(show-paren-mode 1)
(require 'package)
(add-to-list 'package-archives '("melpa" . ""))
(setq-default line-spacing 5)
(add-to-list 'auto-mode-alist '("\\.h\\'" . c++-mode))
#include <iostream>
namespace strings {
void Print() {
std::cout << "strings::Print" << std::endl;
} // namespace strings
namespace uses {
namespace detail {
#include <iostream>
class Image {
class blur {
blur(double factor) : factor_(factor) {}
void operator()(Image & img) const {
View majel-package-deps.bash
for i in $(du -a | cut -f 2); do
if [[ -d $i ]]; then
echo === $i |
sed 's/\.//';
grep '#include <majel' $i/*.{h,cu,cc,cpp,hpp,hh} 2>/dev/null |
sed 's/^.*#include <majel//' |
sed 's/\/[-_a-z0-9]*.h>$//' |
sort |

PaddlePaddle is Launching New API

PaddlePaddle is a deep learning framework originally developed in Baidu four years ago. Experienced Baidu researchers and engineers have successfully applied it in 80% of Baidu products. When we open sourced PaddlePaddle in September 2016, we know it is time to make it easy-to-use by everyone who is interested in deep learning.

Today we are happy to announce the alpha release of our new API. And we updated example programs in our open source book Deep Learning with PaddlePaddle accordingly.

The following screenshot shows that a PaddlePaddle program using the new API could be much shorter than its old counterpart.