./pytwitcasting
├── user.py
├── tumbnail.py
├── movie.py
├── comment.py
├── supporter.py
├── category.py
├── search.py
├── webhook.py
This file contains hidden or 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
#include <stdio.h> | |
int main(int argc, char *argv[]){ | |
int n[] = {3, 4, 7}; | |
if (n == &n[0]) { | |
printf("同じ!\n"); | |
} else { | |
printf("違う!\n"); |
This file contains hidden or 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
def diff_time_hmmss(unixtime1, unixtime2): | |
""" 2つのunixタイムスタンプの差を返す(h:mm:ss) | |
""" | |
# 絶対値の取得 | |
diff = abs(unixtime2 - unixtime1) | |
h = int((diff / 60) / 60) | |
m = int((diff / 60) % 60) | |
s = int(diff % 60) |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="ja"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Twitterにログイン</title> | |
</head> | |
<body> | |
<!-- header要素の使用 --> | |
<!-- header>a*2+a>span --> | |
<header> |
This file contains hidden or 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
Sub test() | |
Dim regObj As Object | |
Set regObj = CreateObject("VBScript.RegExp") | |
Dim matchs As Object | |
Dim match As Object | |
Dim sTest As String | |
sTest = "(AA) and (BB) and (CC)" | |
This file contains hidden or 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
http://diveintopython3-ja.rdy.jp/table-of-contents.html#special-method-names |
WebAPIで認証を行うときのサーバーは一時的にPython内のやつを起動すればいいのでは?と思ったけどどうなんだろ
SpotipyでもやっぱりリダイレクトURLとか入力しないといけないっぽいし
レスポンスのオブジェクトを作らない利点は、API側が変わってもソースを変えなくてもいいこと 懸念点は、APIを見ないとプロパティがわからないこと
https://github.com/plamere/spotipy/blob/master/spotipy/oauth2.py#L197-L202
def get_access_token(self, code):
""" Gets the access token for the app given the code
Parameters:
- code - the response code
"""
def test(a=1, **kwargs=None):
print(a, **kwargs)
これを実行するとSyntaxError: invalid syntax
がでる
**
をつけた引数にはデフォルト値を設定することができないから!