Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Google Search Keyboard Navigation
// @namespace http://tampermonkey.net/
// @version 0.7
// @description Navigate Google search results using 'j' (down), 'k' (up), and Enter (open) keys
// @author Your name
// @match https://www.google.com/search?*
// @grant GM_addStyle
// @downloadURL https://gist.github.com/udaken/72334ce6086a47eb746fa3a6a8cc777a/raw/google_search_keyboard_navigation.user.js
// @updateURL https://gist.github.com/udaken/72334ce6086a47eb746fa3a6a8cc777a/raw/google_search_keyboard_navigation.user.js

googletestの高度なトピック

イントロダクション

さて、googletest Primer を読んで、googletest を使ったテストの書き方を学びました。 を読み、googletest を使ってテストを書く方法を学んだので、今度は新しいトリックを学びましょう。このドキュメント このドキュメントでは、より多くのアサーションと、複雑な失敗メッセージの作成方法、致命的な失敗の伝搬について説明します。 メッセージの作成方法、致命的な失敗の伝搬、テストフィクスチャの再利用と高速化、そしてテストでのさまざまなフラグの使用方法です。 様々なフラグをテストに使用する方法を紹介します。


Network Working Group G. Clark Request for Comments: 2217 Cisco Systems, Inc. Category: Experimental October 1997

@udaken
udaken / Program.cs
Created April 21, 2022 06:21
StrConv(VbStrConvNarrow/VbStrConvWide)で変換される文字
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
using Microsoft.VisualBasic;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Diagnostics;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
@udaken
udaken / ublacklist-online-shopping.txt
Last active October 27, 2021 08:01
uBlacklist 用のショッピングサイト除去フィルター
*://*.amazon.co.jp/*
*://*.rakuten.co.jp/*
*://www.yodobashi.com/*
*://www.monotaro.com/*
*://*.shopping.yahoo.co.jp/*
*://shopping.yahoo.co.jp/*
*://store.guessjapan.com/*
*://www.yoshiki-trading.co.jp/*
*://*.store.sony.jp/*
*://*.shop.rohto.co.jp/*
foreach($f in Get-ChildItem "*.cs" -Recurse) {
if ( Test-Path -Path "$($f.FullName).meta" ) {
continue;
}
$guid = [Guid]::NewGuid().ToString("N");
Write-Output "fileFormatVersion: 2
guid: ${guid}
*://hk.uwenku.com/*
*://aviatorwatch.jp/*
*://rowkey.net/*
*://lakulaku-life.jp/*
*://www.codetd.com/*
*://*.dns2.us/*
*://entityframework.net/*
*://nd9uyd0.onmypc.org/*
*://simy.dip.jp/*
*://ja.ojit.com/*

#~

コメント

# -*- coding: utf-8 -*-

1行目もしくは2行目に配置することで、ソースコードのデフォルトエンコーディングの指定。(この例だとutf-8)

Python 3以降では、ソースコードのデフォルトエンコーディングは UTF-8になったので、 他のエンコーディングを使用する場合に記述する。

using System;
using System.Linq;
using System.Collections.Generic;
using System.ComponentModel;
#nullable enable
struct NotifiableProperty<T>
{
private readonly IEqualityComparer<T> _EqualityComparer;