Skip to content

Instantly share code, notes, and snippets.

Yi Wang wangkuiyi

  • Ant Financial USA
  • San Francisco Bay Area, CA
Block or report user

Report or block wangkuiyi

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wangkuiyi
wangkuiyi / majel-package-deps.bash
Created May 8, 2017
Plot Majel's package dependencies
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 |
uniq;
fi;
@wangkuiyi
wangkuiyi / paddlepaddle-new-api-blog-draft.md
Created Mar 8, 2017
PaddlePaddle New API Launching Blog Draft
View paddlepaddle-new-api-blog-draft.md

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.

@wangkuiyi
wangkuiyi / check_late_response_to_issues.sh
Last active Feb 4, 2017
This bash script checks if some issues of a Github repo has been there without comments in more than 30 minutes.
View check_late_response_to_issues.sh
project="wangkuiyi/mapreduce-lite"
if [[ $# -ne 0 ]]; then
project=$1
fi
issues_per_page=25
page=1
until [ $issues_per_page -lt 25 ]; do
echo Parsing page: $page >&2
@wangkuiyi
wangkuiyi / download_issue_dates.sh
Last active Jan 31, 2017
Issues by month -- Open Source Deep Learning Platforms
View download_issue_dates.sh
project="paddlepaddle/paddle"
if [[ $# -ne 0 ]]; then
project=$1
fi
file=${project/\//-}
> $file.issues
issues_per_page=25
page=1
@wangkuiyi
wangkuiyi / ci-arch.dot
Last active Nov 8, 2016
An example GraphViz image
View ci-arch.dot
digraph CI {
github [label="github.com"];
ngrok1 [label="ngrok tunnel 1"];
ngrok2 [label="ngrok tunnel 2"];
config1 [label="configuration 1"];
config2 [label="configuration 2"];
github -> ngrok1 -> config1;
github -> ngrok2 -> config2;
}
@wangkuiyi
wangkuiyi / gist:d5547ec0231a6e39cec3e7180c7cec08
Created Aug 1, 2016
Retrieve Docker image's tags and run corresponding version
View gist:d5547ec0231a6e39cec3e7180c7cec08
curl -u _token:$(gcloud auth print-access-token) https://gcr.io/v2/tensorflow/tensorflow/tags/list
docker run --rm -it gcr.io/tensorflow/tensorflow:r0.9rc0 /bin/bash
@wangkuiyi
wangkuiyi / goaws-sqs.go
Created Feb 3, 2016
How to use https://github.com/AdRoll/goamz/tree/master/s3 to create SQS queues as well as read/write with it.
View goaws-sqs.go
package main
import (
"fmt"
"time"
"github.com/AdRoll/goamz/aws"
"github.com/AdRoll/goamz/sqs"
"github.com/davecgh/go-spew/spew"
@wangkuiyi
wangkuiyi / goaws-s3.go
Created Feb 3, 2016
Shows how to use https://github.com/AdRoll/goamz/tree/master/s3 to access an AWS bucket created on AWS console.
View goaws-s3.go
package main
import (
"bytes"
"image"
"image/jpeg"
"io"
"github.com/AdRoll/goamz/aws"
"github.com/AdRoll/goamz/s3"
@wangkuiyi
wangkuiyi / learn-gob.go
Created Jan 14, 2016
This sample program shows how to read Gob-encoded records out from a file.
View learn-gob.go
package main
import (
"encoding/gob"
"io"
"log"
"os"
)
func main() {
@wangkuiyi
wangkuiyi / learn-mpi.go
Created Dec 18, 2015
Build and run an MPI program in Go
View learn-mpi.go
// This is a sample MPI program in Go.
//
// To build and run it, we need to install MPI. I downloaded and built
// Open MPI 1.8.8:
//
// wget https://www.open-mpi.org/software/ompi/v1.8/downloads/openmpi-1.8.8.tar.bz2
// tar xjf openmpi-1.8.8.tar.bz2
// cd openmpi-1.8.8
// ./configure --prefix=/home/yi/openmpi
// make -j2 install
You can’t perform that action at this time.