Skip to content

Instantly share code, notes, and snippets.

View Nyoho's full-sized avatar
:octocat:
GitHubing

北䑓如法 Nyoho

:octocat:
GitHubing
View GitHub Profile
@norio-nomura
norio-nomura / README.md
Last active March 24, 2017 05:18
Swift REPL crashes on launch if `~/.lldb/lldb-repl-history` contains emoji. https://bugs.swift.org/browse/SR-4338

Reproducing steps:

  1. launch Swift REPL in terminal
  2. paste enum 🤔 { case 👶🏻, 👴🏻 }
  3. exit Swift REPL
  4. launch Swift REPL again

Actual log:

➜  11:48:39  TOOLCHAINS=org.swift.3020170323a swift
Welcome to Apple Swift version 3.1-dev (LLVM a95654d887, Clang 4a3ce873fe, Swift 3061ba06f8). Type :help for assistance.
version: "2"
services:
node:
build:
context: ./
dockerfile: docker/node/Dockerfile
volumes:
- ./client:/app/client
- ./yarn.lock:/app/yarn.lock
- node_modules:/app/node_modules
@nishimotz
nishimotz / py35-161002.ipynb
Last active October 2, 2016 15:57
如法会 2 (⊃ LT駆動開発30) http://nyoho.connpass.com/event/39977/
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@niwatako
niwatako / CodePiece.swift
Created September 14, 2016 12:49
実際書くと今まで聞いてきたものはだいたいこんな感じにかける。普段書くものでSwift3を書いていけば良いと思う #CodePiece #iphonekyoto
struct ProfileResponse: APIResponse {
let name: String
let age: Int
init(json: JSONObject) throws {
name = try json.get("name")
age = try json.get("age")
}
}
protocol APIEndpoint {
@takaxp
takaxp / update-cask.sh
Created September 3, 2016 10:59
update-cask.sh
#!/bin/sh
# exec cd ~/.emacs.d && cask upgrade-cask if you upgrade cask itself.
CASKPATH=~/.emacs.d/.cask
#VERSION=24.5.1
#VERSION=25.0.95.1
VERSION=25.1.1
SUBDIR=package
BACKUPDIR=~/Dropbox/backup
@takaxp
takaxp / my:init-loading-time.el
Last active March 30, 2020 00:46
my:init-loading-time
;; .emacs/init.el の先頭に記述
(defconst before-load-init-time (current-time))
(defun my:init-loading-time ()
"Loading time of user init files including time for `after-init-hook'."
(let ((time1 (float-time
(time-subtract after-init-time before-load-init-time)))
(time2 (float-time
(time-subtract (current-time) before-load-init-time))))
(message (concat "Loading init files: %.0f [msec], "
"of which %.f [msec] for `after-init-hook'.")
@nishimotz
nishimotz / readme.md
Last active January 10, 2018 06:11 — forked from nobonobo/spectrum.py
Python で音響信号処理:オリジナルの Python スペクトルアナライザーに入力デバイス選択の処理、ケプストラム分析の実験を追加。

Python で音響信号処理 spectrum.py

2016-07-16 Takuya Nishimoto (@24motz)

広島版IoT縛りの勉強会! IoTLT広島 vol.2

$ sudo apt-get install portaudio19-dev python-dev
$ curl https://bootstrap.pypa.io/get-pip.py | sudo python
@stevenschobert
stevenschobert / load_remote_content_mail_dot_app.scpt
Last active January 12, 2022 11:19
Apple Script to click the "Load Remote Content" button. I like to disable all remote content in Mail.app, and then bind this script to a keyboard shortcut using Keyboard Maestro. https://www.keyboardmaestro.com
tell application "System Events" to tell process "Mail"
set mainWindow to a reference to the first window
set rootSplitter to a reference to the first splitter group of the mainWindow
set firstSplitter to a reference to the last splitter group of the rootSplitter
set scrollArea to a reference to the last scroll area of the firstSplitter
set scrollGroup to a reference to the first group of the scrollArea
if number of groups of the scrollGroup is greater than 1 then
set maybeRemoteContentGroup to a reference to the first group of the scrollGroup
@myuon
myuon / Yoneda.lean
Created November 29, 2015 05:07
Yoneda Lemma
import init.setoid
import data.set
open set
structure category [class] :=
(obj : Type)
(hom : obj → obj → Type)
(id : ∀ (x : obj), hom x x)
(comp : ∀ {a b c : obj}, hom b c → hom a b → hom a c)
(assoc : ∀ {a b c d} {f : hom a b} {g : hom b c} {h : hom c d},