Skip to content

Instantly share code, notes, and snippets.

@mid0111
mid0111 / README.md
Last active October 3, 2019 03:50
Nuxt express debug with VS Code

Nuxt js を express で SSR している構成の場合、サーバサイドのデバッグが必要になるけど、ネット上の情報は古いのか、ルート以外の URL にアクセスすると 404 Not Found となってしまった。

そこで、node から nuxt を実行するのではなく、通常の dev の定義と同じく server/index.js を起動してそこにアタッチするやり方にしてみたところ動いた。

package.json

  "scripts": {
    "debug": "cross-env NODE_ENV=development nodemon --inspect-brk=9229 server/index.js --watch server",
 "dev": "cross-env NODE_ENV=development nodemon server/index.js --watch server",
#!/usr/bin/python
# -*- coding: utf-8 -*-
from time import sleep
import sys
import Adafruit_DHT
import ambient
pin = 23
ambi = ambient.Ambient(970, "bb04bfa265692394")

w3c push API

  • push の歴史
  • w3c の push API
    • デバイス対応状況
    • すごいとこ(android にも push)
  • service worker とは
@mid0111
mid0111 / 2016-programig-list.md
Last active November 20, 2016 04:34
2016-programig-list.md

test

This Gist was automatically created by Carbide, a free online programming environment.

[You can view a live, interactive version of this Gist here](h

@mid0111
mid0111 / docker-machine-for-proxy.md
Last active August 23, 2016 01:58
Create Docker machine for authentication proxy.

Set environment variables.

$ http_proxy=http://{user_name}:{user_password}@{proxy_host}:{proxy_port}
$ dns_host={dns_host_ip}

Create docker-machine.

@mid0111
mid0111 / dump.md
Created May 17, 2016 03:34
express dump response body
@mid0111
mid0111 / git-empty.md
Created February 10, 2015 12:03
git での空ディレクトリ

git での空ディレクトリ

※git では本当の意味での空ディレクトリは作成できない。

git 上で空ディレクトリを管理する運用としては、以下のパターンがある。

  1. こんなフォルダ構成でやってきたいけど、まだ中身は空だよ。
@mid0111
mid0111 / rename.sh
Created February 21, 2016 08:16
特定ディレクトリ配下のファイル置換
for i in `ls -1`; do mv $i ${i/navbar/sidebar} ; done