Skip to content

Instantly share code, notes, and snippets.

View fukusaka's full-sized avatar

Shoichi Fukusaka fukusaka

View GitHub Profile
@fukusaka
fukusaka / benchmarkIteratorAndSequence.kt
Last active January 11, 2020 13:57
ちょっと Kotlin の Iterator と Sequence の比較をしてみた
import kotlin.system.measureNanoTime
fun buildUseList(list: List<Int>, half: Int): List<String> {
return list
.filter { it < half }
.filter { it % 2 == 0 }
.map { it.toString() }
.take(3)
}
@fukusaka
fukusaka / gist:8247865
Last active January 2, 2016 03:59
rework patch ssl_pass_phrase_dialog for nginx 1.4.4 ref http://forum.nginx.org/read.php?2,214641,214641
# ref http://forum.nginx.org/read.php?2,214641,214641
diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c
index 62ce12c14355267b2031c8cad52abcb77d462b1e..f9e0ea4532557a5895f8c9a9ada42e8ab7884b94 100644
--- a/src/event/ngx_event_openssl.c
+++ b/src/event/ngx_event_openssl.c
@@ -42,6 +42,9 @@ static void *ngx_openssl_create_conf(ngx_cycle_t *cycle);
static char *ngx_openssl_engine(ngx_conf_t *cf, ngx_command_t *cmd, void *conf);
static void ngx_openssl_exit(ngx_cycle_t *cycle);
+static int ngx_http_ssl_pass_phase_callback(char *buf, int bufsize,
diff --git a/lisp/cus-start.el b/lisp/cus-start.el
index 964c11859710defd36330b6e909b9efb49099638..44f6df7ef4277816f736446f711dd191b52eb21e 100644
--- a/lisp/cus-start.el
+++ b/lisp/cus-start.el
@@ -385,6 +385,7 @@ Leaving \"Default\" unchecked is equivalent with specifying a default of
(const super)) "23.1")
(ns-antialias-text ns boolean "23.1")
(ns-auto-hide-menu-bar ns boolean "24.0")
+ (ns-use-native-fullscreen ns boolean "24.4")
;; process.c
MP=/tmp/ramdisk
WP=${MP}/${USER}
if [ $(stat -f %d /tmp) -ne $(stat -f %d ${MP}) ]; then
MNTRD=yes
else
MNTRD=no
fi
#TGTD_ENABLE=no
TGTD_ENABLE=yes
#import <stdio.h>
#import <stdlib.h>
#import <unistd.h>
#import <Cocoa/Cocoa.h>
#import "CGSPrivate.h"
char *param_window;
char *param;
int show_pid;
diff --git a/src/frame.c b/src/frame.c
index 5915c00..e353b7a 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -114,6 +114,9 @@ Lisp_Object Qwindow_id;
#ifdef HAVE_X_WINDOWS
Lisp_Object Qouter_window_id;
#endif
+#ifdef HAVE_NS
+Lisp_Object Qns_window_id;
;; -*- coding: utf-8 -*-
(when (locate-library "flymake")
(require 'flymake)
;;シンタックスチェックは次のコマンドが呼ばれる
;;make -s -C . CHK_SOURCES=hoge.cpp SYNTAX_CHECK_MODE=1 check-syntax
;;
;; Makefile があれば、次のルールを追加
;;PHONY: check-syntax
% Reference Card for GNU Emacs
% Copyright (C) 1987, 1993, 1996, 1997, 2001, 2002, 2003, 2004, 2005,
% 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
% Author: Stephen Gildea <gildea@stop.mail-abuse.org>
% This file is part of GNU Emacs.
% GNU Emacs is free software: you can redistribute it and/or modify
(x-popup-dialog
t
'("Sample Popup"
("OK" . t))
t)