Skip to content

Instantly share code, notes, and snippets.

@rubyu
rubyu / search_file_with_google.py
Last active July 29, 2016 19:51
ファイル名でググッてFirefoxで開く
# -*- coding: utf-8 -*-
'''
Created on 2015/05/08
@author: user
'''
import sys
import os
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CreviceApp.WinAPI.CoreAudio;
using CreviceApp.WinAPI.Window;
using static CreviceApp.WinAPI.Constants.WindowsMessages;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CreviceApp.WinAPI.CoreAudio;
using CreviceApp.WinAPI.Window;
using static CreviceApp.WinAPI.Constants.WindowsMessages;
@rubyu
rubyu / file0.cs
Last active July 8, 2017 12:12
マウスジェスチャツールの作り方 ref: http://qiita.com/rubyu/items/88b9f93b39951252a0c1
var Chrome = @when((ctx) =>
{
return ctx.ForegroundWindow.ModuleName == "chrome.exe";
});
@rubyu
rubyu / ForM546.csx
Last active October 29, 2016 13:35
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CreviceApp.WinAPI.Window;
using static CreviceApp.WinAPI.Constants.WindowsMessages;
using static CreviceApp.WinAPI.Constants.VirtualKeys;
var args = WScript.Arguments;
var craving = new ActiveXObject("CravingExplorer.Api");
if (args.length == 0) {
WScript.Quit(1);
}
if (craving == null) {
WScript.Quit(2);
}
using System;
using System.Runtime.InteropServices;
namespace Display
{
class Display
{
const int HWND_BROADCAST = 0xffff;
const int WM_SYSCOMMAND = 0x0112;
const int SC_MONITORPOWER = 0xF170;
// ==UserScript==
// @name ApplyPrintingStyleToAnimetranscripts
// @namespace https://github.com/rubyu/ApplyePrintingStyleToAnimetranscripts
// @version 2
// @description Apply styles for printing.
// @author rubyu
// @match http://animetranscripts.wikispaces.com/*
// @grant none
// ==/UserScript==
@rubyu
rubyu / ss_classifier.py
Created December 21, 2016 21:44
Web小説をルールベースで適当に分類するスクリプト
#!/usr/bin/python
# -*- coding: utf-8 -*-
'''
Created on 2015/07/30
@author: user
'''
import sys
@media screen and (orientation: portrait) {
html {
font-size: 12px;
}
}
@media screen and (orientation: landscape) {
html {
font-size: 10px;