Skip to content

Instantly share code, notes, and snippets.

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

mohemohe mohemohe

🍣
さーもん
View GitHub Profile
@mohemohe
mohemohe / DebugHelper.cs
Created April 17, 2015 20:14
WPFでコンソールにログを表示したいときとかに
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace GomokuCharhan.Helpers
{
static class DebugHelper
{
[Conditional("DEBUG")]
[DllImport("Kernel32")]
@mohemohe
mohemohe / conky.run.py
Last active August 29, 2015 14:19
こんきーたんはぁはぁ
#! /usr/bin/env python
# coding:utf-8
import subprocess
p = subprocess.Popen(['pgrep', '--count', 'conky'], shell=False, stdout=subprocess.PIPE)
p.wait()
if p.communicate()[0] == b'0\n' :
subprocess.Popen('conky', shell=True, stdin=None, stdout=None, stderr=None, close_fds=True)
#start conky 2
@mohemohe
mohemohe / MainWindow.xaml
Created April 25, 2015 08:59
侵攻4層龍神フェーズタイマー
<Window x:Class="shinkou4f.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="龍神タイマー" SizeToContent="WidthAndHeight" Loaded="Window_Loaded">
<Grid Width="640" Height="360" Background="Black" MouseDown="Grid_MouseDown">
<MediaElement Name="MediaElement" Source="video.mp4" LoadedBehavior="Manual" UnloadedBehavior="Pause" Stretch="Uniform" MouseDown="MediaElement_MouseDown" IsHitTestVisible="False" />
<Button Name="PlayButton" Content="▷" HorizontalAlignment="Right" Margin="0,0,10,58" VerticalAlignment="Bottom" Width="32" Click="PlayButton_Click"/>
<Button Name="PauseButton" Content="▕ ▏" HorizontalAlignment="Right" Margin="0,0,10,34" VerticalAlignment="Bottom" Width="32" Click="PauseButton_Click"/>
<Button Name="StopButton" Content="□" HorizontalAlignment="Right" Margin="0,0,10,10" VerticalAlignment="Bottom" Width="32" Click="StopButton_Click"/>
<Button Nam
ファイナルファンタジーXIV: 蒼天のイシュガルド ベンチマーク
計測日時:2015/04/27 16:34:15
SCORE:5184
平均フレームレート:40.289
評価:とても快適
-とても快適な動作が見込めます。グラフィック設定をより高品質に設定しても、とても快適に動作すると思われます。
ローディングタイム:
シーン#1 1.375sec
シーン#2 5.392sec
シーン#3 4.540sec
@mohemohe
mohemohe / Program.cs
Last active August 29, 2015 14:20
エラトステネスの篩
using System;
using System.Collections.Generic;
using System.Linq;
namespace EratosthenesCsharp
{
class Program
{
static int Main()
{
@mohemohe
mohemohe / Common_settings.cfg
Created May 15, 2015 06:01
ReShade FFXIV: ARR
/*-----------------------------------------------------------.
/ Choose effects /
'-----------------------------------------------------------*/
// Effects are listed in the order that they are applied.
// Set to 1 for ON or 0 for OFF
#define RFX_UIMask 0 //[0 or 1] A mask that defines which areas of the screen will have no effects applied
#define RFX_Border 0 //[0 or 1] A mask that defines where a border effect is drawn
#define RFX_SplitScreen 0 //[0 or 1] Allows the various comparisons with the original image
#define RFX_DisplayDepth 0 //[0 or 1] Display Depth : Enables the possibility to display the depth buffer - You will still need to toogle it on/off with (F12) in-game
#define RFX_LogDepth 0 //[0 or 1] Needed to retrieve values from logarithmic depth buffer (e.g. in GTA V)
@mohemohe
mohemohe / Program.cs
Created May 20, 2015 03:43
TinpoScroll
using System;
using System.Text;
using System.Threading;
namespace TinpoScroll
{
class Program
{
static void Main(string[] args)
{
@mohemohe
mohemohe / bookmarklet.js
Created September 4, 2015 17:28
Now playing: Google Play Music
javascript:window.open('https://twitter.com/home?status='+encodeURIComponent('Now playing%3a '+document.getElementById('player-song-title').innerHTML+' - '+document.getElementById('player-artist').innerHTML+' / '+document.getElementsByClassName('player-album')[0].innerHTML+' https://play.google.com/music/listen?u=0#/album/'+document.getElementsByClassName('player-album')[0].getAttribute('data-id')));void(0);
@mohemohe
mohemohe / HUSNAVIfucker.user.css
Created September 28, 2015 09:20
はすはす大学
@namespace url(http://www.w3.org/1999/xhtml);
@-moz-document domain("navi.hus.ac.jp") {
@media screen and (min-width:1200px) {
#box-calendar > h2:nth-child(1) > img:nth-child(1),
#box-btm > h3:nth-child(1) {
display: none !important;
}
@mohemohe
mohemohe / GoogleSearch.js
Created September 30, 2015 13:10
Google検索
javascript:(function(){w=window;d=document;q=w.getSelection?w.getSelection().toString():d.getSelection?d.getSelection():d.selection?d.selection.createRange().text:'';if(!q)q=prompt('','');if(q)location.href='http://www.google.co.jp/webhp?hl=ja#safe=off&hl=ja&q='+encodeURIComponent(q);})()