Skip to content

Instantly share code, notes, and snippets.

Ruth meto4d

Block or report user

Report or block meto4d

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View thread_regexp.js
//汎用URLパターン
var URL_PATTERN = /^(\w+):\/\/((\w|\.|:)+)(\/(.*))?$/
//したらば
var SHITARABA_URL_PATTERN = /^https?:\/\/jbbs\.shitaraba\.net.*$/
var SHITARABA_THREAD_URL_PATTERN = /^https?:\/\/jbbs\.shitaraba\.net\/bbs\/read\.cgi\/(\w+)\/(\d+)\/(\d+)(:?|\/.*)$/;
var SHITARABA_BOARD_URL_PATTERN = /^https?:\/\/jbbs\.shitaraba\.net\/(\w+)\/(\d+)\/?$/;
//2ch系列
var NICHAN_THREAD_URL_PATTERN = /^https?:\/\/(?!jbbs\.shitaraba\.net)(.+)\/test\/read\.cgi\/(\w+)\/(\d+)\/(:?|\/.*)$/;
@meto4d
meto4d / anakag.rb
Created Sep 4, 2019
かがみんのログを解析
View anakag.rb
#!/usr/bin/env ruby
# coding: utf-8
module Anakag
module_function
@encoding = 'cp932'
@csv_file = {}
attr_reader :encoding, :csv_file
def main
if ARGV.size > 2
@meto4d
meto4d / mindiscordbot.py
Last active Aug 22, 2019
https://github.com/meto4d/NanVDiscordbot/ のDiscordbotの最小限の機能を適当に残したもの
View mindiscordbot.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import discord # インスコした discord.py
import re # 正規表現
import asyncio
##### NEED FILL IN THIS BLANK #####
auth_token = ""
print('ログイン中...')
You can’t perform that action at this time.