python のパッケージ Pygments をインストール。
$ sudo easy_install Pygments
pygmentize -f rtf -O 'fontface=Monaco,style=monokai' path/to/file.html | pbcopy
| require 'parallel' | |
| class Dummy | |
| def initialize | |
| @cnt = 0 | |
| end | |
| def increment | |
| @cnt += 1 | |
| end |
python のパッケージ Pygments をインストール。
$ sudo easy_install Pygments
pygmentize -f rtf -O 'fontface=Monaco,style=monokai' path/to/file.html | pbcopy
| import Vue from 'vue' | |
| import { Route } from 'vue-router' | |
| import { Store } from 'vuex' | |
| import { MetaInfo } from 'vue-meta' | |
| import { AxiosInstance } from 'axios' | |
| interface NuxtContext { | |
| isClient: boolean | |
| isServer: boolean | |
| isStatic: boolean |
| on: [push] | |
| name: Test | |
| jobs: | |
| test: | |
| strategy: | |
| matrix: | |
| go-version: [1.13.x] | |
| platform: [ubuntu-latest] | |
| runs-on: ${{ matrix.platform }} | |
| steps: |
| function doPost(e) { | |
| // slack appsのEvent Subscriptionsのchallenge。同期する時に利用。 | |
| var params = JSON.parse(e.postData.getDataAsString()); | |
| if('challenge' in params) | |
| { | |
| return ContentService.createTextOutput(params.challenge); | |
| } | |
| // ユーザ名とtextを取得 | |
| var userName = params.event.user; |