Skip to content

Instantly share code, notes, and snippets.

@sonota88
sonota88 / volatile-highlight.el
Last active June 10, 2023 04:18
volatile-highlight.el
;; (c) 2011 sonota486 <yosiot8753@gmail.com>
;; license: GPL
;; ;; .emacs.el example
;; (require 'volatile-highlight)
;; (set-face-background 'volatile-highlight-face "#ffff00") ; optional
(copy-face 'highlight 'volatile-highlight-face)
@sonota88
sonota88 / 1.adoc
Last active March 23, 2023 22:37
asciidoc test
ああああ \
いいいい
ああああ いいいい
— うううう
@sonota88
sonota88 / align_regexp.html
Created December 3, 2022 05:24
HTML + JavaScript で Emacs の align-regexp
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>align-regexp</title>
<style>
* {
font-family: Firge, monospace;
}
@sonota88
sonota88 / Json.bas
Last active November 5, 2020 00:19
vm2gol-v2-libreoffice-basic
rem -*- mode: basic -*-
Option Explicit
rem --------------------------------
function parse_json(json)
dim parse_result
parse_result = _parse_json(json)
parse_json = parse_result(0)
@sonota88
sonota88 / README.md
Created June 18, 2020 11:52
bhatena-hcalendar.user.js
@sonota88
sonota88 / README.md
Last active December 28, 2019 05:05
LibreOffice Drawのodgファイルから図形の情報を抜き出して使うサンプル
@sonota88
sonota88 / detect-patterns.user.js
Created January 29, 2011 15:24
Greasemonkey script which detect patterns in html source.
// ==UserScript==
// @name detect-patterns
// @namespace anbt
// @include *
// ==/UserScript==
(function(){
if (window != unsafeWindow.top) { return; }
package dbunitsample;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;
public class Memebers {
#!/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)
@sonota88
sonota88 / gist:911285
Created April 9, 2011 10:00
hatebu-more.user.js
// ==UserScript==
// @name hatebu-more
// @namespace anbt
// @include http://b.hatena.ne.jp/entry/*
// @exclude http://b.hatena.ne.jp/entry?mode=more&url=*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.5/jquery.js
// ==/UserScript==
var moreURL = "http://b.hatena.ne.jp" + $("#more-link > a").attr("href");