Skip to content

Instantly share code, notes, and snippets.

View nullpos's full-sized avatar
🤢

nullpos nullpos

🤢
View GitHub Profile
@nullpos
nullpos / ip-dns.ps1
Created May 7, 2019 20:48
LAN内の端末に対してDNSクエリを出してみるやつ
Param(
[parameter(mandatory=$true)][String]$InputAddress
)
$Interval = 500
# Parse IPの参考
# https://gist.github.com/stknohg/711293bbfa69fd2499b3#file-calculate-ipaddress-ps1
@nullpos
nullpos / dice.py
Created September 24, 2018 13:47
otogi
# coding: utf-8
from fractions import Fraction
FLOORS = [
13, 17, 24, 20, 24, 10, 24, 27, 24, 24,
13, 27, 24, 34, 24, 10, 27, 34, 28, 24,
13, 31, 27, 34, 31, 27, 27, 34, 31, 13
]
@nullpos
nullpos / portfolio.md
Last active July 15, 2018 00:44
ポートフォリオ

作ったもの

  • 2015年ごろ
  • Monacaを使ってJavaScript, HTMLで作成
  • カメラと連携してQRコード読み込むとかだった気がする

ロボコンのやつ

  • 2015年ごろ
  • ロボットの位置をARメガネ(MOVERIO)にリアルタイム表示させたりするようなヤツ
  • Bluetoothで通信
@nullpos
nullpos / pptp.js
Created February 19, 2018 09:16
ポプテピ声優が何の組み合わせか調べる的なヤツ(適当)
var client = require('cheerio-httpcli');
var r = /^[^\^].+(.+?).*$/ig;
var r2 = /(.+)((.+?)).*/;
if(!process.argv[3]) {
console.error('arguments error');
return -1;
}
var person = [process.argv[2], process.argv[3]];
@nullpos
nullpos / getlog.py
Created October 18, 2015 07:03
天鳳の牌譜URLから.mjlogを取得するpythonスクリプト
# -*- coding: utf-8 -*-
import re
import urllib
import gzip
import os
archive_url = 'http://e.mjv.jp/0/log/archived.cgi?'
plain_url = 'http://e.mjv.jp/0/log/plainfiles.cgi?'
def gz(filename):