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 random | |
def main(): | |
hiragana_list = ( | |
"あいうえお", "かきくけこ", "さしすせそ", "たちつてと", "なにぬねの", "はひふへほ", "まみむめも", "らりるれろ" | |
"がぎぐげご", "ざじずぜぞ", "だぢづでど", "ばびぶべぼ", "ぱぴぷぺぽ" | |
) | |
list_size = len(hiragana_list) |
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
{ | |
"result":{ | |
"id":92558551, // track-o-botが一意に生成するマッチID | |
"mode":"ranked", | |
"hero":"Priest", | |
"hero_deck":null, // デッキタイプは、POST時にcard_historyを指定すれば、そこから推測してくれると思われる | |
"opponent":"Druid", | |
"opponent_deck":null, | |
"coin":false, | |
"result":"win", |
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
<?php | |
/* お手本:https://gist.github.com/stevschmid/120adcbc5f1f7cb31bc5 */ | |
$api = 'https://trackobot.com/profile/results.json'; | |
$username = 'username'; | |
$token = 'YOUR_API_TOKEN'; | |
$headers = array( | |
'Content-Type: application/json', | |
'Authorization: Basic ' . base64_encode("{$username}:{$token}") /* BASIC認証用のヘッダを生成 */ | |
); |
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
history:[ // 対戦履歴の配列 | |
{ | |
id: 92131081, // track-o-botによって設定される一意のマッチID | |
mode: "casual", // casual, ranked, arena, friendly | |
hero: "Rogue", // ユーザーの使ったヒーロー | |
hero_deck: null, // card_historyから推測されたデッキタイプ。推測できなかった時はnull | |
opponent: "Priest", // 対戦相手のヒーロー | |
opponent_deck: "Dragon", // 対戦相手のデッキタイプ | |
coin: true, // コインの有無。先行であればfalse, 後攻であればtrue になる | |
result: "win", // 対戦結果。lose/winのみ? |
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
/dev/sda1 /mnt/windows ntfs-3g defaults,locale=ja_JP.UTF-8 0 0 |
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
sudo /sbin/rmmod ndiswrapper | |
sudo depmod -a | |
sudo modprobe ndiswrapper |
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
case "${1}" in | |
hibernate) | |
if [ -e $SHUTDOWN_HELPER ]; then | |
/sbin/rmmod ndiswrapper | |
python $SHUTDOWN_HELPER | |
fi | |
;; | |
resume|thaw) | |
/sbin/depmod -a | |
/sbin/modprobe ndiswrapper |
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
GRUB_CMDLINE_LINUX_DEFAULT="nomodeset nosplash noapic nolapic" | |
GRUB_TERMINAL=console |
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
Mozilla/5.0 (X11; U; Linux armv7l like Android; en-us) AppleWebKit/531.2+ (KHTML, like Gecko) Version/5.0 Safari/533.2+ Kindle/3.0+ |
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
Mozilla/5.0 (Linux; U; en-US) AppleWebKit/528.5+ (KHTML, like Gecko, Safari/528.5+) Version/4.0 Kindle/3.0 (screen 600x800; rotate) |
NewerOlder