This script searches terminfo entries and print its information.
Technically, it does the same as the 1-liner below does.
# -*- coding: utf-8 -*- | |
# | |
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
# Version 2, December 2004 | |
# Copyright (C) 2015 Hiroshi Yamamoto <[email protected]> | |
# Everyone is permitted to copy and distribute verbatim or modified | |
# copies of this license document, and changing it is allowed as long | |
# as the name is changed. | |
# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION |
package main | |
import ( | |
"fmt" | |
"strings" | |
"bytes" | |
"io" | |
"io/ioutil" | |
"golang.org/x/text/transform" | |
// "code.google.com/p/go.text/transform" // deprecated |
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> | |
<script src="jq_imgs_onload.js"></script> | |
</head> | |
<body> | |
<div class='imgs-onload' onload="window.alert('all resources loaded')"> | |
<img src="http://i.imgur.com/PWSOy.jpg" /> | |
<img src="http://i.imgur.com/PWSOy.jpg" /> |
package main | |
import ( | |
"time" | |
"math/rand" | |
"strconv" | |
) | |
// The main function | |
func main() { |
#!/bin/bash | |
# ------------------------------------------------------- | |
# Sequentially Named File Generator. | |
# | |
# Create a new numbered file based on the given filename. | |
# | |
# Example: | |
# | |
# * "test.txt" -> "test####.txt" | |
# * "test" -> "test####" |
case class IntClassBug[A <: Int]() { | |
def test(init:A) = { | |
println("type=" + init.getClass) | |
} | |
} |
// To add these functions to your Google Doc documents, | |
// see https://developers.google.com/apps-script/guides/sheets/functions | |
/** | |
* @fileOverview Google Doc Apps Script: LENB() / LENH() functions for Spreadsheet. | |
* @author Hiroshi Yamamoto ([email protected]) | |
* @license <a href="http://www.wtfpl.net/">WTFPL version 2.0</a> | |
* @version 0.2.0 | |
*/ |
#!/bin/bash | |
# | |
# Reverse the order of lines in a file or stfin | |
# | |
# A tac-equivalent command for every environment. | |
# This script is needed because some environments | |
# like OS X and MingW lack tac command. | |
# | |
# Scriptd by Hiroshi Yamamoto ([email protected]) | |
# Licensed under WTFPL version 2.0 (http://www.wtfpl.net/) |
Map<String, List<String>> _DICT_KEYBOARD_KEY_CONNECTION = { | |
"!": ["`~", null, null, "2@", "qQ", null], | |
'"': [";:", "[{", "]}", null, null, "/?"], | |
"#": ["2@", null, null, "4\$", "eE", "wW"], | |
"\$": ["3#", null, null, "5%", "rR", "eE"], | |
"%": ["4\$", null, null, "6^", "tT", "rR"], | |
"&": ["6^", null, null, "8*", "uU", "yY"], | |
"'": [";:", "[{", "]}", null, null, "/?"], | |
"(": ["8*", null, null, "0)", "oO", "iI"], | |
")": ["9(", null, null, "-_", "pP", "oO"], |