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
| Shader "Custom/Mono" | |
| { | |
| Properties | |
| { | |
| _MainTex ("Texture", 2D) = "white" {} | |
| _X ("Normalized X",Range(0,1)) = 0.2 | |
| _Y ("Normalized Y",Range(0,1)) = 0.2 | |
| _W ("Normalized Width",Range(0,1)) = 0.6 | |
| _H ("Normalized Height",Range(0,1)) = 0.6 | |
| } |
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
| from twitter import Api | |
| from requests_oauthlib import OAuth1Session | |
| import requests | |
| from pprint import pprint | |
| import os | |
| import json | |
| def fav_word(c_key, c_secret, a_key, a_secret,query): | |
| api = Api(c_key,c_secret,a_key,a_secret) |
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 analyze_mp4(filename, out_filename, comments, ok_time=3100): | |
| """ | |
| filename : 元となる動画ファイル名 | |
| out_filename : 生成した動画の保存ファイル名 | |
| comments : get_comments 関数で作成したコメント配列 | |
| ok_time : 3100 なら 31 * 100 で 開始31秒 | |
| """ | |
| comments.sort(key=lambda x: x[1]) | |
| max_time = ok_time / 100.0 | |
| video = VideoFileClip(filename).subclip(0, max_time) |
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
| import twitter72 | |
| import requests | |
| import re | |
| import pickle | |
| from urllib.parse import parse_qs | |
| from pprint import pprint | |
| from moviepy.editor import * | |
| import random | |
| import sys | |
| import os |
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
| from PIL import Image | |
| import sys | |
| from colormath.color_objects import sRGBColor, LabColor | |
| from colormath.color_conversions import convert_color | |
| from colormath.color_diff import delta_e_cie2000 | |
| piet_colors = [ | |
| "000", "222", | |
| "211", "221", "121", "122", "112", "212", | |
| "200", "220", "020", "022", "002", "202", |
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 <bits/stdc++.h> | |
| using namespace std; | |
| #define REP(i, n) for (int i = 0; i < static_cast<int>(n); ++i) | |
| #define FOR(i, a, b) \ | |
| for (int i = static_cast<int>(a); i < static_cast<int>(b); ++i) | |
| #define ALL(f, x, ...) \ | |
| ([&](decltype(x)& ALL) { \ | |
| return (f)(begin(ALL), end(ALL), ##__VA_ARGS__); \ | |
| })(x) |
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
| from twitter import Api | |
| from requests_oauthlib import OAuth1Session | |
| from urllib.parse import parse_qs | |
| from pprint import pprint | |
| import requests | |
| import re | |
| import sys | |
| def search_many(api, search_str, limit): |
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
| import requests | |
| import os | |
| import shutil | |
| from bs4 import BeautifulSoup | |
| your_id = "xx_xxxxxx" | |
| your_pass = "xxxxxxxx" | |
| s = requests.session() | |
| login = s.get("https://bookroll.let.media.kyoto-u.ac.jp/bookroll/login") |
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
| /* thanks for http://sesenosannko.hatenablog.com/entry/2017/01/11/171756 */ | |
| .centerize + * { | |
| text-align: center; | |
| } | |
| .pillar + * { | |
| color: #1A3353; | |
| position: absolute; | |
| top: 0px; | |
| right: 0px; | |
| float: right; |
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
| log 1 cat bench.sh | |
| source ~/.bashrc | |
| set -e | |
| echo "build go" | |
| gvm use go1.9.2 --global | |
| cd ~/webapp/go/ | |
| git pull origin master | |
| go build -o app |