Skip to content

Instantly share code, notes, and snippets.

diff --git a/window-copy.c b/window-copy.c
index ac29e6d..6e8bb91 100644
--- a/window-copy.c
+++ b/window-copy.c
@@ -797,43 +797,6 @@ window_copy_key_input(struct window_pane *wp, int key)
memcpy(data->inputstr + inputlen, pb->data, n);
data->inputstr[inputlen + n] = '\0';
break;
- case MODEKEYEDIT_ENTER:
- np = data->numprefix;

この拡張ライブラリの使用手順

  • このサンプルをダウンロードして解凍したディレクトリで以下を実行
 $ ruby extconf.rb
 $ make
 $ ruby test.rb

ファイルについて

# -*- coding: utf-8 -*-
require 'sqlite3'
class LocalStorage
def initialize(db)
@db = db
@map = {}
load
end
union UserData{
unsigned char code[15];
struct Book {
unsigned char item1:4 ; /* 0-14 */
unsigned char item2:4 ; /* 0-14 */
unsigned char flag2:1 ; /* 戦士の指輪を装備しているか? */
unsigned char name2:6 ; /* 0-63 */
unsigned char flag1:1 ; /* 竜の鱗を装備したことがあるか? */
JSON.parseWithDate = function(str){
function reviver(key, val){
if (typeof(val) == "string" &&
val.match(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}Z$/)){
return new Date(Date.parse(val));
}
return val;
}
return JSON.parse(str, reviver);
};
include Math
I = Complex(0,1)
N = 2**4
def dft(x)
x2 = []
N.times{|k|
x2[k] = N.times.inject(0){|sum, n|
sum + x[n] * E**(-I*2*PI*k*n/N)
#!/usr/bin/perl
# $XTermId: 256colors2.pl,v 1.10 2009/10/10 14:45:26 tom Exp $
# -----------------------------------------------------------------------------
# this file is part of xterm
#
# Copyright 1999-2007,2009 by Thomas E. Dickey
# Copyright 2002 by Steve Wall
# Copyright 1999 by Todd Larason
#
# All Rights Reserved
function FindProxyForURL(url, host){
return dnsDomainIs(host, "example.com") ? "PROXY localhost:18080" : "DIRECT";
}
require 'webrick/httpproxy'
require 'pathname'
require 'fileutils'
require 'time'
class HrmyProxy < WEBrick::HTTPProxyServer
def initialize(cache_dir="hrmy", doc_root="public", port=18080)
@cache_dir = cache_dir
opt = {
:DocumentRoot => doc_root,
def the_answer
42
end