Skip to content

Instantly share code, notes, and snippets.

@renyuanL
renyuanL / imagenet1000_clsidx_to_labels.txt
Created September 8, 2020 23:55 — forked from yrevar/imagenet1000_clsidx_to_labels.txt
text: imagenet 1000 class idx to human readable labels (Fox, E., & Guestrin, C. (n.d.). Coursera Machine Learning Specialization.)
{0: 'tench, Tinca tinca',
1: 'goldfish, Carassius auratus',
2: 'great white shark, white shark, man-eater, man-eating shark, Carcharodon carcharias',
3: 'tiger shark, Galeocerdo cuvieri',
4: 'hammerhead, hammerhead shark',
5: 'electric ray, crampfish, numbfish, torpedo',
6: 'stingray',
7: 'cock',
8: 'hen',
9: 'ostrich, Struthio camelus',
@renyuanL
renyuanL / ryCamera.py
Last active March 8, 2016 06:37 — forked from amueller/mlp.py
This program use 4 types of classifiers to do classification task of MNist Database.
#!/usr/bin/env python3
'''
ryCamera.py
using pygame's camera module
you can capture a picture from the camera
and then it is possible
to make MNist task become real-time system
Renyuan, 2014/12/12
import pygame, random, sys
from pygame.locals import *
視窗寬度 = 1200
視窗高度 = 700
初始標題顏色 = (0, 0, 0)
背景顏色 = (255, 255, 255)
敵方速度 = 40
敵方體型最小值 = 30
敵方體型最大值 = 80
import random, sys, time, math, pygame
from pygame.locals import *
FPS = 30
視窗寬 = 640
視窗高 = 480
半視窗寬 = int(視窗寬 / 2)
半視窗高 = int(視窗高 / 2)
草地顏色 = (24, 255, 0)
"""
遊戲名稱:推星星
學號:B01290621
姓名:賴琮仁
作業編號:期末專題報告
完成時間:2014.6.20
"""
import random, sys, copy, os, pygame
from pygame.locals import *
import pygame, random, sys
from pygame.locals import *
視窗寬度 = 1200
視窗高度 = 700
初始標題顏色 = (0, 0, 0)
背景顏色 = (255, 255, 255)
敵方速度 = 40
敵方體型最小值 = 30
敵方體型最大值 = 80
'''
學號:B0129002
姓名:周鈺婷
作業編號:期末project
程式名稱:Simulate
完成時間:
'''
import random, sys, time, pygame
from pygame.locals import *
# Wormy (a Nibbles clone)
# By Al Sweigart al@inventwithpython.com
# http://inventwithpython.com/pygame
# Released under a "Simplified BSD" license
#B0129051 施竣凱 增加了一些原本沒有的功能
import random, pygame, sys
from pygame.locals import *
#B0129063
#資工二
#陳立崇
# Squirrel Eat Squirrel (a 2D Katamari Damacy clone)
# By Al Sweigart al@inventwithpython.com
# http://inventwithpython.com/pygame
# Released under a "Simplified BSD" license
import random, sys, time, math, pygame

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.