Skip to content

Instantly share code, notes, and snippets.

@ponkore
ponkore / .eslintrc
Created Apr 15, 2018
.eslintrc (厳しい感じ)
View .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 Mar 18, 2017
jetty-config-memo.txt
View jetty-config.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 Mar 15, 2017
Mac で CPU の情報を取得
View mac-cpuinfo.txt
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 Oct 26, 2016
名前空間付きキーワードを持つ map の binding
View binding_memo.cljs
;;
;; 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"
View 贈る言葉.md

贈る言葉

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

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

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


@ponkore
ponkore / core.clj
Last active Aug 29, 2015
instaparse example 1 (clojure sexp grammer)
View core.clj
(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 Mar 30, 2015
Da Vinci boards.txt for Arduino IDE 1.6.0
View boards.txt
# 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 Feb 25, 2014
postgis install memo (FreeBSD pkg)
View postgis-memo.txt
$ 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 Aug 29, 2015
CocoaPods 導入メモ
View memo.markdown
  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

@ponkore
ponkore / freebsd-zfs-memo.txt
Last active Jan 3, 2016
FreeBSD 9.2 RELEASE を zfs boot でいれたときのメモ。installer から shell で入って、順次作業していく。
View freebsd-zfs-memo.txt
gpart create -s gpt da0
gpart add -s 64K -t freebsd-boot da0
gpart add -s 4G -t freebsd-swap -l swap0 da0
gpart add -t freebsd-zfs -l disk0 da0
gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0
kldload /boot/kernel/opensolaris.ko
kldload /boot/kernel/zfs.ko
gnop create -S 4096 /dev/gpt/disk0
You can’t perform that action at this time.