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
du . -c -h |
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
a.zip(b).map{|n,p| n*p} | |
#or | |
a.sort_by{ |b0, b1|b0} |
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
Package Version | |
---------------------------------- --------- | |
alabaster 0.7.10 | |
anaconda-client 1.6.14 | |
anaconda-navigator 1.8.7 | |
anaconda-project 0.8.2 | |
asn1crypto 0.24.0 | |
astroid 1.6.3 | |
astropy 3.0.2 | |
attrs 18.1.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
*** LOCAL GEMS *** | |
actioncable (5.2.1) | |
actionmailer (5.2.1) | |
actionpack (5.2.1, 4.2.6) | |
actionview (5.2.1, 4.2.6) | |
activejob (5.2.1) | |
activemodel (5.2.1) | |
activerecord (5.2.1) |
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
alabaster==0.7.10 | |
anaconda-client==1.6.14 | |
anaconda-navigator==1.8.7 | |
anaconda-project==0.8.2 | |
asn1crypto==0.24.0 | |
astroid==1.6.3 | |
astropy==3.0.2 | |
attrs==18.1.0 | |
Babel==2.5.3 | |
backcall==0.1.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
企画名orサークル名 | ハンドル | 板 | URL_1 | URL_2 | 区分 | サークル番号 | |
---|---|---|---|---|---|---|---|
1/12展示交流会 | はんそで | 二次元裏img | http://usw-event.com/ | https://twitter.com/donimassa | (null) | ||
女○喫茶 | 女○「」と女装あき | 二次元裏img | (null) | (null) | (null) | ||
虹裏格ゲー対戦会 | 虹格「」 | 二次元裏img | http://www.tok2.com/home/nijikaku/ | (null) | (null) | ||
ねんどろ撮影会 | サトあき | 二次元裏may | (null) | (null) | (null) | ||
バチ魂バット屋さん | タブンネ屋 | 二次元裏img | https://ameblo.jp/yureru-kusamura | https://twitter.com/manaka_ski | (null) | ||
ふたばお習字 | 黒墨「」 | 二次元裏img | (null) | (null) | (null) | ||
ふたば学園祭ホビーコンテスト | 研究者「」 | 二次元裏img | http://futaba-hobby-contest.cocolog-nifty.com/blog/ | https://twitter.com/uwemon | (null) | ||
ふたば☆スタンプラリー実行委員会 | しょこら屋アメフラシ | 二次元裏img | http://ninetails.heteml.jp/wiki/chocolat_shop/index.php?%E3%81%B5%E3%81%9F%E3%81%B0%E5%AD%A6%E5%9C%92%E7%A5%AD%EF%BC%91%EF%BC%94 | http://www.pixiv.net/member.php?id=30495 | (null) | ||
サークル名 | ハンドル | 板 | (null) | (null) |
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
require 'open-uri' | |
open("https://futaba-only.net/list01.html"){|l| | |
$data=l.read.force_encoding("UTF-8") | |
} | |
c=Array.new(7).map{Array.new} | |
7.times{|i| | |
re=Regexp.compile(%Q(<td class="clist2-#{i+1}">(.*?)<\/td>)) | |
c[i]<< $data.scan(re) | |
} | |
#c={:0->企画名orサークル名,:1->ハンドル,:2->板,:3->URL_1,:4->URL_2,:5->区分,:6->配置(サークル番号)} |
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
#list(n-D) "data".flatten | |
sum(data,[]) | |
#uniq | |
import numpy as np | |
np.unique(ans, axis=0) | |
#<< | |
data.append(line.split()) | |
#chomp | |
str.strip() | |
#scan->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
#00 | |
import numpy as np | |
data,ans=[],[] | |
with open("00-test-input.txt","r") as inp: | |
for line in [s.strip() for s in inp.readlines()]: | |
data.append(line.split()) | |
data=sum(data,[]) | |
for word in data: | |
ans.append([word,data.count(word)]) | |
for a in np.unique(ans, axis=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
require "open-uri" | |
require 'htmlentities' | |
require 'benchmark' | |
result = Benchmark.realtime do | |
data=[] | |
for i in 10000..25000 | |
puts "now:#{i}" | |
printf "\e[1A" | |
STDOUT.flush | |
begin |
OlderNewer