Skip to content

Instantly share code, notes, and snippets.

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 / 2016-programig-list.md
Last active November 20, 2016 04:34
2016-programig-list.md

w3c push API

  • push の歴史
  • w3c の push API
    • デバイス対応状況
    • すごいとこ(android にも push)
  • service worker とは
#!/usr/bin/python
# -*- coding: utf-8 -*-
from time import sleep
import sys
import Adafruit_DHT
import ambient
pin = 23
ambi = ambient.Ambient(970, "bb04bfa265692394")
@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",