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
#!/usr/bin/env ruby | |
#coding:utf-8 | |
require 'mechanize' | |
alice = Mechanize.new | |
page = alice.get ARGV[0] | |
url = CGI.unescape page.root.xpath('//*[@id="flash-player-embed"]')[0]['flashvars'].split('&flv_url=').last.split('&').first | |
title = page.root.xpath('//td/strong')[0].inner_text.gsub(/\//, '๏ผ')+'.flv' |
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
NOUN_PREFIX = %w|ใใใใใใ ๆฅใใใใใใช ใใใใซๅฎใ ็ใใ | |
็ใใ ๆฟกใใ ้ปๅ ใใใ ใณใฃใใใจๅฏ็ใใ ใใใใใฃใ | |
็็พใช ใณใใๆฟกใใฎ ใใใๆฟกใใฎ ใใฃใกใใจใใ ใใฃใกใใใ ๆใใใช | |
็ช่ตทใใ ็ใไธใใฃใ ๅๅฝใซใไผผใ ใใณใฏ่ฒใฎ ่็ดซ่ฒใฎ | |
ไธ็ณธ็บใใฌ ๅ ๆฒขใฎใใ ็ฑใฎใใใฃใ ใใกใใกใจใใ ใใซใใซใจใใ | |
| | |
VERB_PREFIX = %w|ใใใใใจ ๆฅใใใใชใใ ๆฅใใใใใใซ ใใใใซๅฎใใใฆ | |
ใใฃใใใใจ ใณใฃใใใใจ ใใใใซ ๅพฎใใซ ๅคง่ใซใ ใใใใใจ | |
| |
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
--- | |
:consumer_key: consumer_key | |
:consumer_secret: consumer_secret | |
:oauth_token: oauth_token | |
:oauth_token_secret: oauth_token_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
// 2 space ใฎๅ ดๅ | |
// cond_c ใฎๅใฎindent, ใใใชๆใใง่ชฟ็ฏใงใใ!! | |
if ((cond_a || cond_b || | |
cond_c || cond_d) || cond_e) { | |
} | |
// ๅผๆฐใฎๅ ดๅใจใใงใ | |
test(value1, value2, | |
value3, value4); |
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
(defun _zizo (begin end format) | |
(let ( | |
(str (buffer-substring-no-properties begin end)) | |
(rules '((" " "+") ("|" "%7C") ("\n" "|") ("?" "%3F") ("&" "%26"))) | |
(rule nil)) | |
(while rules | |
(setq rule (car rules)) | |
(setq rules (cdr rules)) | |
(let ( | |
(a (car rule)) |
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
#ifndef __macrounit_h__ | |
#define __macrounit_h__ | |
#define mu_prn_failed(file,line,expr) printf( "%s:%u: failed assertion `%s'\n",file,line,expr) | |
#define mu_prn_test(test,passed) printf( " Test: %s ... %s\n",test,(passed)?"passed":"FAILED") | |
#define mu_prn_suite(suite) printf( "Suite: %s\n",suite) | |
#define mu_assert(file,line,expr) do { ++mu_asserts; if (!(expr)) { ++mu_failures; mu_prn_failed(file,line,#expr); }} while (0) | |
#define MU_ASSERT(expr) mu_assert(__FILE__,__LINE__,expr) | |
#define mu_run_test(test) do { int f=mu_failures; ++mu_tests; test(); mu_prn_test(#test,(f==mu_failures)); } while (0) |
NewerOlder