Skip to content

Instantly share code, notes, and snippets.

View r1235613's full-sized avatar

Yan-Ru Huang r1235613

  • Hsinchu City
  • 05:52 (UTC +08:00)
View GitHub Profile
@r1235613
r1235613 / Data of send to bigraphtalk
Last active October 28, 2021 13:02
Iottalk bugs report
{
"Join_List": [
{
"Join_Id": 21,
"Join_Fn": {
"Fn_Id": null,
"Fn_Input": [
null
],
"Fn_Output": [
@r1235613
r1235613 / Cert
Created July 14, 2020 14:02
台東大學所出示的證書
-----BEGIN CERTIFICATE-----
MIIKtzCCCZ+gAwIBAgIIMJD3hdQxZAcwDQYJKoZIhvcNAQELBQAwgakxCzAJBgNVBAYTAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRIwEAYDVQQHDAlTdW5ueXZhbGUxETAPBgNVBAoMCEZvcnRpbmV0MR4wHAYDVQQLDBVDZXJ0aWZpY2F0ZSBBdXRob3JpdHkxGTAXBgNVBAMMEEZHMTBFMFRCMjA5MDA0NDExIzAhBgkqhkiG9w0BCQEWFHN1cHBvcnRAZm9ydGluZXQuY29tMB4XDTE5MDEyMjAwMDAwMFoXDTIxMDMzMTEyMDAwMFowggdAMYIG0zCCBs8GA1UEBhOCBsZVUyAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAg
@r1235613
r1235613 / Error
Last active May 26, 2020 06:38
segmentation
Python 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit (AMD64)]
Type 'copyright', 'credits' or 'license' for more information
IPython 7.14.0 -- An enhanced Interactive Python. Type '?' for help.
PyDev console: using IPython 7.14.0
Python 3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit (AMD64)] on win32
runfile('E:/Python Project/cutpure/unet.py', wdir='E:/Python Project/cutpure')
2020-05-26 14:36:36.465555: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library cudart64_101.dll
2020-05-26 14:36:38.148867: I tensorflow/stream_executor/platform/default/dso_loader.cc:44] Successfully opened dynamic library nvcuda.dll
2020-05-26 14:36:38.218411: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1561] Found device 0 with properties:
pciBusID: 0000:02:00.0 name: GeForce GTX TITAN X computeCapability: 5.2
@r1235613
r1235613 / accordions-zh_TW.po
Created February 10, 2019 05:09
accordions
# Translation of Plugins - Accordion - Development (trunk) in Chinese (Taiwan)
# This file is distributed under the same license as the Plugins - Accordion - Development (trunk) package.
msgid ""
msgstr ""
"PO-Revision-Date: 2019-02-10 13:07+0800\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=1; plural=0;\n"
"X-Generator: Poedit 2.2.1\n"
@r1235613
r1235613 / error
Created February 5, 2019 15:32
SQLALCHEMY error
sqlalchemy.exc.InternalError: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if this flush is occurring prematurely) (pymysql.err.InternalError) (1366, "Incorrect string value: '\\xE4\\xB8\\x80\\xE5\\xAE\\xBF' for column `dorm-dev`.`TaskChicken`.`dorm` at row 1") [SQL: 'INSERT INTO `TaskChicken` (bed_id, dorm, room, bed, unit, stuff_id, name, sex, credentials, is_lived, live_time, who_do_it) VALUES (%(bed_id)s, %(dorm)s, %(room)s, %(bed)s, %(unit)s, %(stuff_id)s, %(name)s, %(sex)s, %(credentials)s, %(is_lived)s, %(live_time)s, %(who_do_it)s)'] [parameters: {'bed_id': 1635, 'dorm': '一宿', 'room': 'B205', 'bed': 'A', 'unit': '應該四', 'stuff_id': 10925171, 'name': '謝O翰', 'sex': '男', 'credentials': 'F999999999', 'is_lived': None, 'live_time': None, 'who_do_it': None}] (Background on this error at: http://sqlalche.me/e/2j85)
@r1235613
r1235613 / main.py
Created December 5, 2018 06:01
Peterson算法
do_flag = [False, False]
turn = 0
# 以上是Peterson’s Solution的結構
exp = 0 # 共同存取的變數,預期他應該在執行完後等於20
def pro_0(): # 程序0
global do_flag, turn, exp
do_flag[0] = True
@r1235613
r1235613 / main.py
Last active November 8, 2018 13:19
作業系統作業
import copy
class Work:
def __init__(self, name: int, todo: int, weight: int = 1, arrive_time: int = 0):
self.name = name
self.todo = todo
self.weight = weight
self.arrive = arrive_time
@r1235613
r1235613 / errormsg
Created October 11, 2018 14:34
不能動的sqlalchemy
AttributeError: Neither 'InstrumentedAttribute' object nor 'Comparator' object associated with BedHistory.user has an attribute 'tag_histories'
@r1235613
r1235613 / index.html
Last active August 7, 2018 08:16
失敗的Firebase簡訊驗證
<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml">
<head>
<meta charset="UTF-8">
<title>臺東大學宿舍報到系統</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/tocas-ui/2.3.3/tocas.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/tocas-ui/2.3.3/tocas.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.3.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/5.3.0/firebase-auth.js"></script>
<script src="https://unpkg.com/vue/dist/vue.js"></script>
# -*- coding: utf-8 -*-
#
# Author: oldj
# Email: oldj.wu@gmail.com
# Blog: http://oldj.net
#
import os
import re
import StringIO