Skip to content

Instantly share code, notes, and snippets.

@ponkore
ponkore / emacs-27.1.ime.diff
Last active August 13, 2020 12:07
Windows IME Patch for Emacs27.1 on Windows (derived from https://gist.github.com/rzl24ozi/b4f4b4d729035d3c439b )
diff --git a/lisp/loadup.el b/lisp/loadup.el
index 97525b2..634e6a0 100644
--- a/lisp/loadup.el
+++ b/lisp/loadup.el
@@ -311,7 +311,9 @@
(load "w32-vars")
(load "term/w32-win")
(load "disp-table")
+ (load "international/w32-ime")
(when (eq system-type 'windows-nt)
@ponkore
ponkore / .eslintrc
Created April 15, 2018 10:05
.eslintrc (厳しい感じ)
module.exports = {
"extends": "eslint:recommended",
"env": {
"browser": false,
"node": true,
"es6": true
},
"rules": {
"arrow-body-style": "error",
"arrow-parens": "error",
@ponkore
ponkore / jetty-config.txt
Last active March 18, 2017 12:50
jetty-config-memo.txt
bash$ java -jar ../jetty-distribution-9.4.2.v20170220/start.jar --add-to-start=http,deploy,ext,jvm,console-capture,logging-slf4j,slf4j-log4j --create-startd
ALERT: There are enabled module(s) with licenses.
The following 2 module(s):
+ contains software not provided by the Eclipse Foundation!
+ contains software not covered by the Eclipse Public License!
+ has not been audited for compliance with its license
Module: log4j-impl
+ Log4j is released under the Apache 2.0 license.
@ponkore
ponkore / mac-cpuinfo.txt
Last active March 15, 2017 13:39
Mac で CPU の情報を取得
bash$ system_profiler SPHardwareDataType
Hardware:
Hardware Overview:
Model Name: MacBook
Model Identifier: MacBook9,1
Processor Name: Intel Core m5
Processor Speed: 1.2 GHz
Number of Processors: 1
@ponkore
ponkore / binding_memo.cljs
Created October 26, 2016 11:33
名前空間付きキーワードを持つ map の binding
;;
;; keyword with namespace
;;
(let [{:keys [app/title]} {:app/title "aabb"}] title)
;; => "aabb"
(let [{:keys [a.p.p/title]} {:a.p.p/title "aabb"}] title)
;; => "aabb"
@ponkore
ponkore / 贈る言葉.md
Last active August 7, 2016 14:20
贈る言葉

贈る言葉

贈る言葉、としてふさわしいことが出てこないので、人生の先輩として、「こうあって欲しい」的なことを、適当にまとめてみました。

偉そうにいろいろ書いてますが、大半自分も未達成、まだまだこれからな感じですので、気楽に読んでみてください(順不同でまとまりはいまいちですが...)。というか、人生終盤にさしかかっていてまだできていない俺って...。

決して無理はしなくていいけど、俺みたいなダメ人間にはならないで、現状に満足することなくがんばってね、という思いです。


@ponkore
ponkore / core.clj
Last active August 29, 2015 14:20
instaparse example 1 (clojure sexp grammer)
(ns parser.core
(:require [clojure.java.io :as io]
[clojure.string :as str]
[clojure.edn :as edn]
[instaparse.core :as insta]))
;; TODO comment and newline support
;; newline = '\n' | '\r\n'
;; <comment-start> = ';'
;; <comment> = comment-start #'.*' newline
@ponkore
ponkore / boards.txt
Created March 30, 2015 17:00
Da Vinci boards.txt for Arduino IDE 1.6.0
# work in progress...
davinci.name=Da Vinci 32U
davinci.upload.tool=avrdude
davinci.upload.protocol=avr109
davinci.upload.maximum_size=28672
davinci.upload.maximum_data_size=2560
davinci.upload.speed=57600
davinci.upload.disable_flushing=true
davinci.upload.use_1200bps_touch=true
davinci.upload.wait_for_upload_port=true
@ponkore
ponkore / postgis-memo.txt
Created February 25, 2014 01:53
postgis install memo (FreeBSD pkg)
$ sudo pkg install postgis
Updating repository catalogue
The following 6 packages will be installed:
Installing proj: 4.8.0_2
Installing geos: 3.4.2
Installing json-c: 0.11
Installing postgresql90-client: 9.0.15
Installing postgresql90-server: 9.0.15
Installing postgis: 2.1.0_1
@ponkore
ponkore / memo.markdown
Last active August 29, 2015 13:56
CocoaPods 導入メモ
  1. gem の最新化 ===============

    bash$ sudo gem update --system Updating rubygems-update Fetching: rubygems-update-2.2.2.gem (100%) Successfully installed rubygems-update-2.2.2 Parsing documentation for rubygems-update-2.2.2 Installing ri documentation for rubygems-update-2.2.2 Installing darkfish documentation for rubygems-update-2.2.2