Skip to content

Instantly share code, notes, and snippets.

$job = Start-Job -ScriptBlock {
Add-Type -AssemblyName System.Windows.Forms
[System.Windows.Forms.Screen]::AllScreens
}
Wait-Job $job
Receive-Job $job
JAESCHKE_PRIMES = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37]
def is_prime_miller_rabin(n):
if n in JAESCHKE_PRIMES:
return True
if (n == 1) or (n & 1 == 0):
return False
d = n - 1
while (d & 1 == 0):
* /dashboard/
* list
* edit
* follow
* /novel/
* <id>
* /episodes/
* r/<id>
* rm/<id>

エキスパ戦力比の推定値

20190529にエキスパの条件が更新されるにあたり、戦力比の推定値を手持ちの数字から算出してメモしておく。

注:

  • DPSチェッカとか使わずに、クエストの結果から計算する
  • サンプル数は多くない

201812メリクリスコア

# 長編、chapterなし、作者名リンクあり
https://ncode.syosetu.com/n9517fc/
# 長編、chapterあり
https://ncode.syosetu.com/n0611em/
# 短編、作者名リンクなし
https://ncode.syosetu.com/n8054fm/
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" class_helper.py
"""
import sys
FROM wataken44/ubuntu-latest-sshd:latest
LABEL maintainer "wataken44"
ENV DOCKER "YES"
ENV LANG C.UTF-8
RUN set -xe \
&& apt update \
&& apt install -y lsb-release curl gnupg python3
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
# recursive.rb
require 'logger'
require 'open-uri'
require 'uri'
$logger = Logger.new(STDOUT)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
""" getdeb.py
"""
import os
import sys