Skip to content

Instantly share code, notes, and snippets.

View ypwhs's full-sized avatar
:octocat:
Focusing

杨培文 (Yang Peiwen) ypwhs

:octocat:
Focusing
View GitHub Profile
@ypwhs
ypwhs / neural.c
Created September 13, 2016 05:18 — forked from hollance/neural.c
Playing with BNNS on macOS 10.12. The "hello world" of neural networks.
/*
The "hello world" of neural networks: a simple 3-layer feed-forward
network that implements an XOR logic gate.
The first layer is the input layer. It has two neurons a and b, which
are the two inputs to the XOR gate.
The middle layer is the hidden layer. This has two neurons h1, h2 that
will learn what it means to be an XOR gate.
@ypwhs
ypwhs / mnist_dnn.ipynb
Created September 23, 2016 17:34
tflearn vs tensorflow
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ypwhs
ypwhs / delete_disable.js
Last active October 1, 2016 06:54
在苹果官网上删除 disabled 属性,方便购买 iPhone 7 Plus,可添加至书签栏方便使用。
javascript:setInterval('$("[disabled]").removeAttr("disabled");$(".unavailable").removeClass("unavailable");',100);
@ypwhs
ypwhs / check_iPhoneX.py
Last active September 19, 2023 05:56
检查 iPhone 是否有货,有货则语音播报,适用于 macOS
# coding: utf-8
import requests
import time
import os
store_url = 'https://reserve-prime.apple.com/CN/zh_CN/reserve/iPhoneX/stores.json'
stores = [('R388', '西单'), ('R448', '王府井')]
product = 'MQA82CH/A'
availability_url = 'https://reserve-prime.apple.com/CN/zh_CN/reserve/iPhoneX/availability.json'
@ypwhs
ypwhs / dataset.bag.info
Last active October 10, 2016 09:44
dataset.bag.info
path: dataset.bag
version: 2.0
duration: 12:40s (760s)
start: Sep 30 2016 06:09:25.49 (1475186965.49)
end: Sep 30 2016 06:22:06.30 (1475187726.30)
size: 39.4 GB
messages: 1248992
compression: none [45637/45637 chunks]
types: dataspeed_can_msgs/CanMessageStamped [33747cb98e223cafb806d7e94cb4071f]
dbw_mkz_msgs/BrakeInfoReport [fc88af128b5b3213ea25ab325a9b3bbb]
@ypwhs
ypwhs / dataset-2-2.bag.info
Created October 10, 2016 09:44
dataset-2-2.bag.info
path: /media/psf/Backup/dataset-2-2.bag
version: 2.0
duration: 58:53s (3533s)
start: Oct 04 2016 02:53:10.30 (1475520790.30)
end: Oct 04 2016 03:52:03.91 (1475524323.91)
size: 182.8 GB
messages: 5800842
compression: none [211980/211980 chunks]
types: dataspeed_can_msgs/CanMessageStamped [33747cb98e223cafb806d7e94cb4071f]
dbw_mkz_msgs/BrakeInfoReport [fc88af128b5b3213ea25ab325a9b3bbb]
@ypwhs
ypwhs / mxnet_mnist.ipynb
Created December 8, 2016 12:14
mxnet_mnist
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ypwhs
ypwhs / config.mk
Last active January 23, 2017 17:25
macOS 10.11.6 with cuda 8.0.55, cudnn 8.0 5.1, openblas, opencv 3.2.0
#-------------------------------------------------------------------------------
# Template configuration for compiling mxnet
#
# If you want to change the configuration, please use the following
# steps. Assume you are on the root directory of mxnet. First copy the this
# file so that any local changes will be ignored by git
#
# $ cp make/config.mk .
#
# Next modify the according entries, and then compile by
@ypwhs
ypwhs / fire_detect.ipynb
Created December 30, 2016 08:28 — forked from mlhy/fire_detect.ipynb
fire detect
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ypwhs
ypwhs / Pets.ipynb
Created December 30, 2016 16:45
定位宠物的面部位置
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.