はてブコメントに日時を書くと hCalendar を生成する Greasemonkey スクリプト - memo88
https://memo88.hatenablog.com/entry/20101120/1290219501
This file contains hidden or 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
defmodule Context do | |
defstruct noise_timer: nil, | |
period: nil, | |
shift_register: <<0b000_0000_0000_0001::size(15)>> | |
end | |
defmodule NesNoise do | |
import Bitwise | |
defp master_clock_hz, do: 236_250_000.0 / 11 |
This file contains hidden or 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
require "json" | |
require "logger" | |
REQUEST_TABLE = {} | |
NOTIFICATION_TABLE = {} | |
LOGGER = Logger.new(File.join(__dir__, "debug.log")) | |
def log(msg) LOGGER.info(msg) end | |
def read_header |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>GainNode test</title> | |
<script src="test.js"></script> | |
</head> | |
<body style="background: #f8f8f8; padding: 1rem;"> | |
<p>ページのどこかをクリック、またはスペースキー押下で再生開始</p> | |
<pre style=" |
This file contains hidden or 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>align-regexp</title> | |
<style> | |
* { | |
font-family: Firge, monospace; | |
} |
This file contains hidden or 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
rem -*- mode: basic -*- | |
Option Explicit | |
rem -------------------------------- | |
function parse_json(json) | |
dim parse_result | |
parse_result = _parse_json(json) | |
parse_json = parse_result(0) |
LibreOffice Drawのodgファイルから図形の情報を抜き出して使う - memo88
https://memo88.hatenablog.com/entry/2019/12/03/003517
ああああ \ いいいい
ああああ いいいい
— うううう
This file contains hidden or 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/env ruby | |
# coding: utf-8 | |
require "pp" | |
CS_JAR_PATH = "checkstyle-8.12-all.jar" | |
CS_CONFIG_PATH = "google_checks.xml" | |
class DiffRange | |
def initialize(from, len) |
This file contains hidden or 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
class ErbContext | |
def initialize params | |
@params = params | |
end | |
def method_missing name, *args | |
if @params.has_key? name | |
@params[name] | |
else | |
raise "unknown key (#{name})" |
NewerOlder