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
$job = Start-Job -ScriptBlock { | |
Add-Type -AssemblyName System.Windows.Forms | |
[System.Windows.Forms.Screen]::AllScreens | |
} | |
Wait-Job $job | |
Receive-Job $job | |
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
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): |
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
* /dashboard/ | |
* list | |
* edit | |
* follow | |
* /novel/ | |
* <id> | |
* /episodes/ | |
* r/<id> | |
* rm/<id> |
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
# 長編、chapterなし、作者名リンクあり | |
https://ncode.syosetu.com/n9517fc/ | |
# 長編、chapterあり | |
https://ncode.syosetu.com/n0611em/ | |
# 短編、作者名リンクなし | |
https://ncode.syosetu.com/n8054fm/ |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" class_helper.py | |
""" | |
import sys |
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
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 |
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
#!/usr/bin/env ruby | |
# -*- coding: utf-8 -*- | |
# recursive.rb | |
require 'logger' | |
require 'open-uri' | |
require 'uri' | |
$logger = Logger.new(STDOUT) |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" getdeb.py | |
""" | |
import os | |
import sys |