This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(* https://www.math.nagoya-u.ac.jp/~garrigue/lecture/2017_AW/coq2.pdf *) | |
Section Coq2. | |
Variables P Q R : Prop. | |
Theorem imp_trans : (P -> Q) -> (Q -> R) -> P -> R. | |
Proof. | |
intros pq qr p. | |
apply qr; apply pq; assumption. | |
Qed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import copy | |
import i2v | |
import numpy as np | |
from PIL import Image | |
from skimage.transform import resize | |
image_size = 224 | |
channel_size = 3 | |
noise_size = 56 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import re | |
import time | |
import arxiv | |
from slackclient import SlackClient | |
slack_token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" | |
sc = SlackClient(slack_token) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
image = cv2.imread("test.png") | |
imgray = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY) | |
ret, thresh = cv2.threshold(imgray, 0, 255, cv2.THRESH_BINARY+cv2.THRESH_OTSU) | |
image2, contours, hierarchy = cv2.findContours(thresh,cv2.RETR_TREE,cv2.CHAIN_APPROX_SIMPLE) | |
result = cv2.drawContours(image, contours, -1, (0,255,0), 5) | |
cv2.imwrite("result.png", result) |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
#-*- coding: utf-8 -*- | |
from requests_oauthlib import OAuth1Session | |
import json | |
import HTMLParser | |
CK = 'XXXXXXXXXXXXXXXXXXXXXX' # Consumer Key | |
CS = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' # Consumer Secret | |
AT = 'XXXXXXXXX-XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' # Access Token |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import requests | |
from requests_oauthlib import OAuth1Session | |
from requests_oauthlib import OAuth1 | |
from urlparse import parse_qs | |
# アプリのページから取得したkey, secretを入力 | |
client_key = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* You can modify and use this source freely | |
* only for the development of application related Live2D. | |
* <p> | |
* (c) Live2D Inc. All rights reserved. | |
*/ | |
package jp.live2d.sample; | |
import jp.live2d.utils.android.FileManager; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Chainer sample code to predict labels for a given image based on pre-trained CaffeNet model | |
Before running this code, you must execure | |
$ ./download_model.py caffenet | |
$ ./download_mean_file.py | |
$ wget http://dl.caffe.berkeleyvision.org/caffe_ilsvrc12.tar.gz | |
$ tar zxvf caffe_ilsvrc12.tar.gz |