This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
''' | |
Created on 2015/05/08 | |
@author: user | |
''' | |
import sys | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Chrome = @when((ctx) => | |
{ | |
return ctx.ForegroundWindow.ModuleName == "chrome.exe"; | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var args = WScript.Arguments; | |
var craving = new ActiveXObject("CravingExplorer.Api"); | |
if (args.length == 0) { | |
WScript.Quit(1); | |
} | |
if (craving == null) { | |
WScript.Quit(2); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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== |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
''' | |
Created on 2015/07/30 | |
@author: user | |
''' | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media screen and (orientation: portrait) { | |
html { | |
font-size: 12px; | |
} | |
} | |
@media screen and (orientation: landscape) { | |
html { | |
font-size: 10px; |