Skip to content

Instantly share code, notes, and snippets.

View mohemohe's full-sized avatar
🍣
さーもん

mohemohe mohemohe

🍣
さーもん
View GitHub Profile

やばくない しらす炒め

Imgur Original by watti.

材料

  • しらす 1パック
  • ベーコン それなり
@mohemohe
mohemohe / fucker.user.js
Last active December 22, 2015 15:19
自分用UserScript 連続<br>の削除 全角英数を半角に
// ==UserScript==
// @name fucker
// @namespace net.ghippos.fucker
// @description yep, im page fucker.
// @include *
// @version 1
// ==/UserScript==
(function() {
//<br>
@mohemohe
mohemohe / MainWindow.xaml.cs
Created October 8, 2013 14:43
だって検索したいじゃん
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
@mohemohe
mohemohe / Program.cs
Last active December 25, 2015 23:09
Omanko!
using System;
namespace Omanko_
{
internal class Program
{
private static void Main(string[] args)
{
string[] omanko = { "お", "ま", "ん", "こ" };
string iku = "おぉぉお゛~っ!!イグゥウ!!イッグゥウウ!!";
@mohemohe
mohemohe / mute.kq
Last active December 27, 2015 09:09
mute.kq
!() |
user.name contains "まとめ" |
user.name contains "速報" |
user.name contains "情報" |
user.name contains "攻略" |
via contains "auto" |
(via contains "bot" & !(via contains "tweetbot")) |
via contains "robo" |
@mohemohe
mohemohe / RegisterEvent.cs
Last active December 31, 2015 06:19
notify
public static void RegisterEvent(BackstageEventBase ev)
{
System.Diagnostics.Debug.WriteLine("EVENT: " + ev.Title + " - " + ev.Detail);
EventRegistered.SafeInvoke(ev);
var tev = ev as TwitterEventBase;
if (tev == null) return;
lock (_twitterEvents.SyncRoot)
{
_twitterEvents.Insert(0, tev);
if (_twitterEvents.Count > TwitterEventMaxHoldCount)
@mohemohe
mohemohe / Program.cs
Last active August 29, 2015 13:55
Example of how to use covconv API in C#.NET .
using System;
namespace example_covlangAPI
{
internal class Program
{
private static void Main(string[] args)
{
string uri = "http://api.ghippos.net/covlang/";
@mohemohe
mohemohe / Program.rb
Last active August 29, 2015 13:55
Example of how to use covconv API in Ruby .
# coding: utf-8
require 'net/http'
require 'uri'
response = Net::HTTP.post_form(URI.parse('http://api.ghippos.net/covlang/'),
{'ja_JP'=> 'ここに原文を入力すると、こふ語になります。'})
puts response.body
@mohemohe
mohemohe / kovkovkov.md
Created February 14, 2014 19:39
あまり真面目に捉えるな

こふ語学概論B

注意

こふ語自体が発展途上であるため,正確性には疑問がある.

まえがき

このドキュメンヨは,こふ語の単語変化の規則を,実例を交えながら紹介するものである.

/// <summary>
/// 方向を返します
/// </summary>
/// <returns>0.0〜3.5までで表される方向</returns>
/// <param name="dx">x軸方向の移動量(右が正)</param>
/// <param name="dy">y軸方向の移動量(下が正)</param>
static double ReturnDirection(int dx, int dy)
{
if (dx == 0 && dy == 0) // 移動してないなら
{