Skip to content

Instantly share code, notes, and snippets.

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

mohemohe mohemohe

🍣
さーもん
View GitHub Profile
<Window x:Class="Fylgja.Snipping"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
WindowStyle="None" Topmost="True"
Margin="0" Padding="0" AllowsTransparency="True"
Background="Transparent" ShowInTaskbar="False" Title="Snipping"
Loaded="Window_Loaded" Cursor="Cross">
<Canvas Name="LayoutRoot" Background="Transparent" Margin="0">
<Path Stroke="Red" StrokeThickness="1" Fill="#BBFFFFFF"
Margin="0"
// ==UserScript==
// @name covconv
// @namespace net.ghippos.covconv
// @description いまアッシュヒョークいるんだけどっいけそうならいこうっ!
// @version 1
// @include *
// @grant none
// ==/UserScript==
(function () {
package net.ghippos.arraytest;
import java.util.*;
public class Main {
private static final int elements = 5000;
private static List<List<Double>> array01;
private static double[][] array02;
@mohemohe
mohemohe / Program.cs
Created April 9, 2016 03:45
WMIを使用したOSバージョンチェック
static void Main(string[] args)
{
var version = GetOsVersion();
if (version.Major < 10)
{
Console.WriteLine(@"死ね");
}
else
{
Console.WriteLine(@"キミには人権がある");
@mohemohe
mohemohe / nowplaying.gmusic.js
Created March 29, 2016 11:16
Google Play Musicでなうぷれするやつ
javascript:window.open('https://twitter.com/home?status='+encodeURIComponent('Now playing%3a '+document.getElementById('currently-playing-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 / softether.service
Last active March 12, 2021 08:00
netctlで固定IPにしてsoftetherしようとしたらVPNインターフェースの生成より先にnetctlが上がってきてクッソ困ったでござるの巻 ExecUpPreがないからhookできないでござるよ ニンニン
[Unit]
Description=exec softether
BindsTo=sys-subsystem-net-devices-enp2s0.device
After=sys-subsystem-net-devices-enp2s0.device
[Service]
Type=simple
ExecStart=/sh/softether.sh
[Install]
// AnimeFaceDetect.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//
#include "stdafx.h"
using namespace std;
using namespace cv;
const string CLASSIFIERFILENAME = "lbpcascade_animeface.xml";
@mohemohe
mohemohe / Program.cs
Created January 31, 2016 19:33
Primeなんとか
using System;
using System.IO;
using System.Runtime.InteropServices;
namespace PrimeBitmap
{
class Program
{
static void Main(string[] args)
{
using System;
namespace Example
{
class Program
{
static void Main(string[] args)
{
var name = iTunesLibrary.Library.CurrentSong.Name;
var album = iTunesLibrary.Library.CurrentSong.Album.Name;
(function() {
Object.defineProperty(console, 'log', {
value: console.__proto__.log
});
})();