Skip to content

Instantly share code, notes, and snippets.

View meto4d's full-sized avatar

Ruth meto4d

View GitHub Profile
@meto4d
meto4d / mindiscordbot.py
Last active August 22, 2019 10:51
https://github.com/meto4d/NanVDiscordbot/ のDiscordbotの最小限の機能を適当に残したもの
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import discord # インスコした discord.py
import re # 正規表現
import asyncio
##### NEED FILL IN THIS BLANK #####
auth_token = ""
print('ログイン中...')
@meto4d
meto4d / anakag.rb
Created September 4, 2019 02:09
かがみんのログを解析
#!/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
//汎用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+)\/(:?|\/.*)$/;
using System;
using System.IO;
using System.Text;
using System.Linq;
using System.Security.Cryptography;
public class OpenTweenEncrypt{
public static void Main(){